Commit 7c64646f authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'caalberts-master-patch-81175' into 'master'

Label secrets created in `review-apps.sh`

See merge request gitlab-org/gitlab!20707
parents e9ee6fa5 5adc0458
......@@ -215,6 +215,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
......@@ -255,6 +270,7 @@ function deploy() {
gitlab_workhorse_image_repository="${IMAGE_REPOSITORY}/gitlab-workhorse-${edition}"
create_application_secret
label_application_secret
HELM_CMD=$(cat << EOF
helm upgrade \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment