Keep cloud-config secret after chart delete

This commit is contained in:
Matt Pryor 2021-08-23 17:35:35 +01:00
parent f46e1fa09f
commit a61a283532
2 changed files with 5 additions and 1 deletions

View File

@ -85,4 +85,4 @@ jobs:
- name: Publish charts
run: ./scripts/publish-charts.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -4,6 +4,10 @@ kind: Secret
metadata:
name: {{ include "openstack-cluster.componentName" (list . "cloud-config") }}
labels: {{ include "openstack-cluster.componentLabels" (list . "cloud-config") | nindent 4 }}
# If the cloud-config is deleted before the cluster has finished deleting, then the cluster
# deletion cannot proceed any further. So prevent Helm from deleting it.
annotations:
"helm.sh/resource-policy": keep
stringData:
# Just include the data for the cloud we will be using
clouds.yaml: |