Merge "Allows keep glance-images PVC once defined"

This commit is contained in:
Zuul 2023-08-31 19:17:19 +00:00 committed by Gerrit Code Review
commit fa72ba0517
4 changed files with 13 additions and 1 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Glance
name: glance
version: 0.4.11
version: 0.4.12
home: https://docs.openstack.org/glance/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Glance/OpenStack_Project_Glance_vertical.png
sources:

View File

@ -20,6 +20,10 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: glance-images
{{- if .Values.keep_pvc }}
annotations:
helm.sh/resource-policy: keep
{{- end }}
spec:
accessModes: [ "ReadWriteOnce" ]
resources:

View File

@ -1026,4 +1026,11 @@ manifests:
secret_registry: true
service_ingress_api: true
service_api: true
# NOTE: This is for enable helm resource-policy to keep glance-images PVC.
# set keep_pvc: true when allow helm resource-policy to keep for PVC.
# This will requires mannual delete for PVC.
# set keep_pvc: false when disallow helm resource-policy to keep for PVC.
# This will allow helm to delete the PVC.
keep_pvc: true
...

View File

@ -45,4 +45,5 @@ glance:
- 0.4.9 Use service tokens
- 0.4.10 Add exec probe timeouts
- 0.4.11 Bring liveness/readiness params out to values.yaml
- 0.4.12 Add flag `keep_pvc` to allows set helm resource-policy for glance-images PVC to keep.
...