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
cab99a10
Commit
cab99a10
authored
Nov 12, 2019
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tiller-namespace explicitly in helm commands
parent
698ae0d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
scripts/review_apps/review-apps.sh
scripts/review_apps/review-apps.sh
+5
-4
No files found.
scripts/review_apps/review-apps.sh
View file @
cab99a10
[[
"
$TRACE
"
]]
&&
set
-x
export
TILLER_NAMESPACE
=
"
$KUBE_NAMESPACE
"
function
deploy_exists
()
{
local
namespace
=
"
${
1
}
"
...
...
@@ -49,7 +48,7 @@ function delete_release() {
echoinfo
"Deleting release '
$deploy
'..."
true
helm delete
--purge
--tiller-namespace
"
${
namespace
}
"
"
$
deploy
"
helm delete
--purge
--tiller-namespace
"
${
namespace
}
"
"
$
{
deploy
}
"
}
function
delete_failed_release
()
{
...
...
@@ -120,6 +119,7 @@ function ensure_namespace() {
}
function
install_tiller
()
{
local
TILLER_NAMESPACE
=
"
$KUBE_NAMESPACE
"
echoinfo
"Checking deployment/tiller-deploy status in the
${
TILLER_NAMESPACE
}
namespace..."
true
echoinfo
"Initiating the Helm client..."
...
...
@@ -134,11 +134,12 @@ function install_tiller() {
--override
"spec.template.spec.tolerations[0].key"
=
"dedicated"
\
--override
"spec.template.spec.tolerations[0].operator"
=
"Equal"
\
--override
"spec.template.spec.tolerations[0].value"
=
"helm"
\
--override
"spec.template.spec.tolerations[0].effect"
=
"NoSchedule"
--override
"spec.template.spec.tolerations[0].effect"
=
"NoSchedule"
\
--tiller-namespace
"
${
TILLER_NAMESPACE
}
"
kubectl rollout status
-n
"
$TILLER_NAMESPACE
"
-w
"deployment/tiller-deploy"
if
!
helm version
--debug
;
then
if
!
helm version
--debug
--tiller-namespace
"
${
TILLER_NAMESPACE
}
"
;
then
echo
"Failed to init Tiller."
return
1
fi
...
...
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