diff --git a/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/storageclass.yaml b/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/storageclass.yaml index bba75e4..ec491d4 100644 --- a/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/storageclass.yaml +++ b/stx-platform-helm/stx-platform-helm/helm-charts/rbd-provisioner/templates/storageclass.yaml @@ -1,6 +1,6 @@ {{/* # -# Copyright (c) 2018 Wind River Systems, Inc. +# Copyright (c) 2018-2022 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # @@ -18,6 +18,8 @@ metadata: {{- if eq $defaultSC $classConfig.name}} annotations: "storageclass.kubernetes.io/is-default-class": "true" + "helm.sh/hook": "pre-upgrade, pre-install" + "helm.sh/hook-delete-policy": "before-hook-creation" {{- end }} name: {{ $classConfig.name }} provisioner: {{ $provisioner }}