Cleaning up after application removal

This commit adds commands that run after the armada
removal to delete the pvs that are linked to pvcs from
the openstack namespace and then deletes the namespace.

The ceph-etc configmap was also added to the rdb-provisioner
chart to remove the manual workaround.

Change-Id: I546cebee549bc3ef81693692579596d2d72ebf95
Story: 2003908
Task: 28130
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
This commit is contained in:
Tyler Smith 2018-11-28 19:58:33 -05:00
parent c555c0968d
commit 41073fff02
1 changed files with 17 additions and 1 deletions

View File

@ -178,4 +178,20 @@ spec:
- name: config-volume-{{- $root.Values.global.name }}
mountPath: {{ $mount }}
{{- end }}
{{- end }}
---
# This ConfigMap is needed because we're not using ceph's helm chart
apiVersion: v1
kind: ConfigMap
metadata:
name: ceph-etc
# This is the name of the openstack application's namespace
namespace: openstack
data:
ceph.conf: |
[global]
auth_supported = none
{{ $monitors := $defaults.monitors }}{{ range $index, $element := $monitors}}
[mon.{{- $index }}]
mon_addr = {{ $element }}
{{- end }}
{{- end }}