Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c2d438ec
Commit
c2d438ec
authored
Apr 05, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
293aeb9b
7a72213c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
14 deletions
+29
-14
app/assets/javascripts/clusters/clusters_bundle.js
app/assets/javascripts/clusters/clusters_bundle.js
+4
-3
changelogs/unreleased/60068-avoid-null-domain-help-text.yml
changelogs/unreleased/60068-avoid-null-domain-help-text.yml
+5
-0
changelogs/unreleased/bump_kubernetes_1_11_9.yml
changelogs/unreleased/bump_kubernetes_1_11_9.yml
+0
-5
lib/gitlab/kubernetes/helm.rb
lib/gitlab/kubernetes/helm.rb
+2
-2
spec/javascripts/clusters/clusters_bundle_spec.js
spec/javascripts/clusters/clusters_bundle_spec.js
+17
-3
spec/lib/gitlab/kubernetes/helm/pod_spec.rb
spec/lib/gitlab/kubernetes/helm/pod_spec.rb
+1
-1
No files found.
app/assets/javascripts/clusters/clusters_bundle.js
View file @
c2d438ec
...
...
@@ -288,10 +288,11 @@ export default class Clusters {
}
toggleIngressDomainHelpText
(
ingressPreviousState
,
ingressNewState
)
{
const
helpTextHidden
=
ingressNewState
.
status
!==
APPLICATION_STATUS
.
INSTALLED
;
const
domainSnippetText
=
`
${
ingressNewState
.
externalIp
}${
INGRESS_DOMAIN_SUFFIX
}
`
;
const
{
externalIp
,
status
}
=
ingressNewState
;
const
helpTextHidden
=
status
!==
APPLICATION_STATUS
.
INSTALLED
||
!
externalIp
;
const
domainSnippetText
=
`
${
externalIp
}${
INGRESS_DOMAIN_SUFFIX
}
`
;
if
(
ingressPreviousState
.
status
!==
ingressNewState
.
status
)
{
if
(
ingressPreviousState
.
status
!==
status
)
{
this
.
ingressDomainHelpText
.
classList
.
toggle
(
'
hide
'
,
helpTextHidden
);
this
.
ingressDomainSnippet
.
textContent
=
domainSnippetText
;
}
...
...
changelogs/unreleased/60068-avoid-null-domain-help-text.yml
0 → 100644
View file @
c2d438ec
---
title
:
Do not display Ingress IP help text when there isn’t an Ingress IP assigned
merge_request
:
27057
author
:
type
:
fixed
changelogs/unreleased/bump_kubernetes_1_11_9.yml
deleted
100644 → 0
View file @
293aeb9b
---
title
:
Bump Helm and kubectl used in Kubernetes integration to 2.13.1 and 1.11.9 respectively
merge_request
:
26991
author
:
type
:
other
lib/gitlab/kubernetes/helm.rb
View file @
c2d438ec
...
...
@@ -3,8 +3,8 @@
module
Gitlab
module
Kubernetes
module
Helm
HELM_VERSION
=
'2.1
3.1
'
.
freeze
KUBECTL_VERSION
=
'1.11.
9
'
.
freeze
HELM_VERSION
=
'2.1
2.3
'
.
freeze
KUBECTL_VERSION
=
'1.11.
7
'
.
freeze
NAMESPACE
=
'gitlab-managed-apps'
.
freeze
SERVICE_ACCOUNT
=
'tiller'
.
freeze
CLUSTER_ROLE_BINDING
=
'tiller-admin'
.
freeze
...
...
spec/javascripts/clusters/clusters_bundle_spec.js
View file @
c2d438ec
...
...
@@ -300,9 +300,13 @@ describe('Clusters', () => {
describe
(
'
toggleIngressDomainHelpText
'
,
()
=>
{
const
{
INSTALLED
,
INSTALLABLE
,
NOT_INSTALLABLE
}
=
APPLICATION_STATUS
;
let
ingressPreviousState
;
let
ingressNewState
;
const
ingressPreviousState
=
{
status
:
INSTALLABLE
};
const
ingressNewState
=
{
status
:
INSTALLED
,
externalIp
:
'
127.0.0.1
'
};
beforeEach
(()
=>
{
ingressPreviousState
=
{
status
:
INSTALLABLE
};
ingressNewState
=
{
status
:
INSTALLED
,
externalIp
:
'
127.0.0.1
'
};
});
describe
(
`when ingress application new status is
${
INSTALLED
}
`
,
()
=>
{
beforeEach
(()
=>
{
...
...
@@ -333,7 +337,7 @@ describe('Clusters', () => {
});
describe
(
'
when ingress application new status and old status are the same
'
,
()
=>
{
it
(
'
does not
modif
y custom domain help text
'
,
()
=>
{
it
(
'
does not
displa
y custom domain help text
'
,
()
=>
{
ingressPreviousState
.
status
=
INSTALLED
;
ingressNewState
.
status
=
ingressPreviousState
.
status
;
...
...
@@ -342,5 +346,15 @@ describe('Clusters', () => {
expect
(
cluster
.
ingressDomainHelpText
.
classList
.
contains
(
'
hide
'
)).
toEqual
(
true
);
});
});
describe
(
`when ingress new status is
${
INSTALLED
}
and there isn’t an ip assigned`
,
()
=>
{
it
(
'
does not display custom domain help text
'
,
()
=>
{
ingressNewState
.
externalIp
=
null
;
cluster
.
toggleIngressDomainHelpText
(
ingressPreviousState
,
ingressNewState
);
expect
(
cluster
.
ingressDomainHelpText
.
classList
.
contains
(
'
hide
'
)).
toEqual
(
true
);
});
});
});
});
spec/lib/gitlab/kubernetes/helm/pod_spec.rb
View file @
c2d438ec
...
...
@@ -30,7 +30,7 @@ describe Gitlab::Kubernetes::Helm::Pod do
it
'generates the appropriate specifications for the container'
do
container
=
subject
.
generate
.
spec
.
containers
.
first
expect
(
container
.
name
).
to
eq
(
'helm'
)
expect
(
container
.
image
).
to
eq
(
'registry.gitlab.com/gitlab-org/cluster-integration/helm-install-image/releases/2.1
3.1-kube-1.11.9
'
)
expect
(
container
.
image
).
to
eq
(
'registry.gitlab.com/gitlab-org/cluster-integration/helm-install-image/releases/2.1
2.3-kube-1.11.7
'
)
expect
(
container
.
env
.
count
).
to
eq
(
3
)
expect
(
container
.
env
.
map
(
&
:name
)).
to
match_array
([
:HELM_VERSION
,
:TILLER_NAMESPACE
,
:COMMAND_SCRIPT
])
expect
(
container
.
command
).
to
match_array
([
"/bin/sh"
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment