Skip to content

Commit

Permalink
remove deleting of backup secret for cacert in post upgrade job
Browse files Browse the repository at this point in the history
  • Loading branch information
koala7659 authored and kwiatekus committed Nov 26, 2020
1 parent 3d23f06 commit 9b60e92
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions resources/core/charts/gateway/files/cacert-migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,3 @@ else
echo "---> Could not read cacert from old secret ${OLD_SECRET_NAMESPACE}/${OLD_SECRET_NAME}"
fi

if [ -n "$DELETE_OLD_SECRET_FLAG" ]
then
echo "---> Delete backup secret ${OLD_SECRET_NAMESPACE}/${OLD_SECRET_NAME}"
set +e
kubectl delete secret "${OLD_SECRET_NAME}" -n "${OLD_SECRET_NAMESPACE}" --ignore-not-found
set -e
fi
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ spec:
value: {{ .Values.cacert_migrate_setup_job.secrets.newConnectorGatewaySecret.name }}
- name: NEW_SECRET_NAMESPACE
value: {{ .Values.cacert_migrate_setup_job.secrets.newConnectorGatewaySecret.namespace }}
- name: DELETE_OLD_SECRET_FLAG
value: "TRUE"
command:
- bash
- -c
Expand Down

0 comments on commit 9b60e92

Please sign in to comment.