From 88570d9f0539c6f3827fb708c65e5f497e5ce776 Mon Sep 17 00:00:00 2001 From: Daniel Safta Date: Thu, 11 Mar 2021 13:32:42 +0000 Subject: [PATCH] Fixed cephfs-provisioner chart update cephfs-provisioner fails to upgrade when overrides are changed due to missing annotations. This commit address an application issue with https://review.opendev.org/c/starlingx/platform-armada-app/+/758786 Closes-bug: 1918674 Signed-off-by: Daniel Safta Change-Id: I270c551d09c8b0c4440406cad68a8b5799cd9fb9 --- .../cephfs-provisioner/templates/config-provisioner.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stx-platform-helm/stx-platform-helm/helm-charts/cephfs-provisioner/templates/config-provisioner.yaml b/stx-platform-helm/stx-platform-helm/helm-charts/cephfs-provisioner/templates/config-provisioner.yaml index 1399401..0a1c763 100644 --- a/stx-platform-helm/stx-platform-helm/helm-charts/cephfs-provisioner/templates/config-provisioner.yaml +++ b/stx-platform-helm/stx-platform-helm/helm-charts/cephfs-provisioner/templates/config-provisioner.yaml @@ -35,6 +35,9 @@ kind: Job metadata: name: cephfs-storage-init namespace: {{ $defaults.cephFSNamespace }} + annotations: + "helm.sh/hook": "post-install, pre-upgrade, pre-rollback" + "helm.sh/hook-delete-policy": "before-hook-creation" spec: backoffLimit: 5 template: