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
5adc0458
Commit
5adc0458
authored
Nov 25, 2019
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Label secrets created in `review-apps.sh`
parent
fe117239
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
scripts/review_apps/review-apps.sh
scripts/review_apps/review-apps.sh
+16
-0
No files found.
scripts/review_apps/review-apps.sh
View file @
5adc0458
...
...
@@ -214,6 +214,21 @@ function create_application_secret() {
--dry-run
-o
json | kubectl apply
-f
-
}
function
label_application_secret
()
{
local
namespace
=
"
${
KUBE_NAMESPACE
}
"
local
release
=
"
${
CI_ENVIRONMENT_SLUG
}
"
echoinfo
"Labeling the
${
release
}
-gitlab-initial-root-password and
${
release
}
-gitlab-license secrets in the
${
namespace
}
namespace..."
true
kubectl label secret
--namespace
"
${
namespace
}
"
\
"
${
release
}
-gitlab-initial-root-password"
\
release
=
"
${
release
}
"
kubectl label secret
--namespace
"
${
namespace
}
"
\
"
${
release
}
-gitlab-license"
\
release
=
"
${
release
}
"
}
function
download_chart
()
{
echoinfo
"Downloading the GitLab chart..."
true
...
...
@@ -254,6 +269,7 @@ function deploy() {
gitlab_workhorse_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-workhorse-
${
edition
}
"
create_application_secret
label_application_secret
HELM_CMD
=
$(
cat
<<
EOF
helm upgrade
\
...
...
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