[keystone] Fix fernet secret reset

This patch makes the fernet and credential secret something that gets
created only once when the deployment is first done, as when using Helm,
it's possible that it overrides it's values with an empty secret in the
runs afterwards.

By making it a hook, it will instead create it and leave an owner
reference in Helm 3 to delete it later if the release is deleted.  It
will not manage it afterwards as well.

Change-Id: I7c1c97f38877e0e54bea7fc09b37dd6f77c9dc8a
This commit is contained in:
Mohammed Naser 2020-10-21 16:12:56 -04:00
parent fe53b5e559
commit f5a757b106
3 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Keystone
name: keystone
version: 0.1.2
version: 0.1.3
home: https://docs.openstack.org/keystone/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Keystone/OpenStack_Project_Keystone_vertical.png
sources:

View File

@ -19,6 +19,8 @@ apiVersion: v1
kind: Secret
metadata:
name: keystone-credential-keys
annotations:
"helm.sh/hook": pre-install
type: Opaque
data:
{{- end }}

View File

@ -20,6 +20,8 @@ apiVersion: v1
kind: Secret
metadata:
name: keystone-fernet-keys
annotations:
"helm.sh/hook": pre-install
type: Opaque
data:
{{- end }}