Skip to content

Commit 7f21cf0

Browse files
committed
Add helm.sh/resource-policy annotation to PersistentVolumeClaims
1 parent 33f79cf commit 7f21cf0

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

sonarqube/chart/templates/pvc-extensions.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
33
metadata:
44
annotations:
55
volume.beta.kubernetes.io/storage-provisioner: {{ .Values.global.storageProvisioner }}
6+
helm.sh/resource-policy: keep
67
finalizers:
78
- kubernetes.io/pvc-protection
89
labels:

sonarqube/chart/templates/pvc-postgresql-backup.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
33
metadata:
44
annotations:
55
volume.beta.kubernetes.io/storage-provisioner: {{ .Values.global.storageProvisioner }}
6+
helm.sh/resource-policy: keep
67
finalizers:
78
- kubernetes.io/pvc-protection
89
labels:

sonarqube/chart/templates/pvc-postgresql.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
33
metadata:
44
annotations:
55
volume.beta.kubernetes.io/storage-provisioner: {{ .Values.global.storageProvisioner }}
6+
helm.sh/resource-policy: keep
67
finalizers:
78
- kubernetes.io/pvc-protection
89
labels:

sonarqube/chart/templates/pvc-sonar-data.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
33
metadata:
44
annotations:
55
volume.beta.kubernetes.io/storage-provisioner: {{ .Values.global.storageProvisioner }}
6+
helm.sh/resource-policy: keep
67
finalizers:
78
- kubernetes.io/pvc-protection
89
labels:

0 commit comments

Comments
 (0)