Commit f7f42cf3 authored by Rémy Coutable's avatar Rémy Coutable

Ensure we create the secrets at the right time

In `deploy`, if the previous deployment failed, we delete/cleanup all
the objects related to the release, including secrets. The problem is
that if we create the root password before that, it will be then
recreated during the deploy with a random value!

By creatigng the secret just before actually deplying a new release, we
ensure that it won't be overriden.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent ef58a640
......@@ -954,7 +954,6 @@ review:
- download_gitlab_chart
- ensure_namespace
- install_tiller
- create_secret
- install_external_dns
- deploy
environment:
......
......@@ -126,6 +126,9 @@ function deploy() {
delete
cleanup
fi
create_secret
helm repo add gitlab https://charts.gitlab.io/
helm dep update .
......
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