From a57cd78439bbaca20173e17b4ce601d616ee1189 Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Thu, 27 Jun 2019 15:09:57 -0500 Subject: [PATCH] Fix credential cleanup hook The keystone-credential-cleanup hook was previously changed to post-delete, this can cause issues where the serviceName is deleted prior to running and will cause this to fail. This change reverts the hook back to pre-delete to avoid this issue. Change-Id: I45f3e73f8a957576ef82a733c1a7b7feaba7b679 --- keystone/templates/job-credential-cleanup.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystone/templates/job-credential-cleanup.yaml b/keystone/templates/job-credential-cleanup.yaml index 2cb0a3ecfb..1470d4dc68 100644 --- a/keystone/templates/job-credential-cleanup.yaml +++ b/keystone/templates/job-credential-cleanup.yaml @@ -31,7 +31,7 @@ kind: Job metadata: name: "keystone-credential-cleanup" annotations: - "helm.sh/hook": post-delete + "helm.sh/hook": pre-delete "helm.sh/hook-delete-policy": hook-succeeded spec: template: