From 3458483fab4c1433a04d4fe7037f739adf8ed94a Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Tue, 2 Apr 2024 18:45:04 -0500 Subject: [PATCH] keystone: allow custom annotations on jobs Depends-On: I5d60fe849e172c19d865b614c3c44ea618f92f20 Change-Id: I2b2b9bcf6d7dd6e7513bd76ca6714acc77eb86d1 Signed-off-by: Doug Goldstein --- keystone/Chart.yaml | 2 +- keystone/templates/job-credential-cleanup.yaml | 1 + keystone/templates/job-credential-setup.yaml | 1 + keystone/templates/job-domain-manage.yaml | 1 + keystone/templates/job-fernet-setup.yaml | 1 + keystone/values_overrides/annotations.yaml | 6 ++++++ releasenotes/notes/keystone.yaml | 1 + 7 files changed, 12 insertions(+), 1 deletion(-) diff --git a/keystone/Chart.yaml b/keystone/Chart.yaml index 7cd2071543..049e39d807 100644 --- a/keystone/Chart.yaml +++ b/keystone/Chart.yaml @@ -14,7 +14,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Keystone name: keystone -version: 0.3.9 +version: 0.3.10 home: https://docs.openstack.org/keystone/latest/ icon: https://www.openstack.org/themes/openstack/images/project-mascots/Keystone/OpenStack_Project_Keystone_vertical.png sources: diff --git a/keystone/templates/job-credential-cleanup.yaml b/keystone/templates/job-credential-cleanup.yaml index fcd7f11f8d..9f2680270f 100644 --- a/keystone/templates/job-credential-cleanup.yaml +++ b/keystone/templates/job-credential-cleanup.yaml @@ -33,6 +33,7 @@ metadata: annotations: "helm.sh/hook": pre-delete "helm.sh/hook-delete-policy": hook-succeeded, hook-failed +{{ tuple "keystone_credential_cleanup" $envAll | include "helm-toolkit.snippets.custom_job_annotations" | indent 4 }} spec: template: metadata: diff --git a/keystone/templates/job-credential-setup.yaml b/keystone/templates/job-credential-setup.yaml index 5e6edc6f53..38ff3c8ba2 100644 --- a/keystone/templates/job-credential-setup.yaml +++ b/keystone/templates/job-credential-setup.yaml @@ -62,6 +62,7 @@ metadata: "helm.sh/hook-delete-policy": before-hook-creation {{- end }} {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} +{{ tuple "keystone_credential_setup" $envAll | include "helm-toolkit.snippets.custom_job_annotations" | indent 4 }} spec: template: metadata: diff --git a/keystone/templates/job-domain-manage.yaml b/keystone/templates/job-domain-manage.yaml index 8acd192e34..a783423c25 100644 --- a/keystone/templates/job-domain-manage.yaml +++ b/keystone/templates/job-domain-manage.yaml @@ -30,6 +30,7 @@ metadata: annotations: "helm.sh/hook": post-install,post-upgrade "helm.sh/hook-delete-policy": before-hook-creation +{{ tuple $serviceAccountName $envAll | include "helm-toolkit.snippets.custom_job_annotations" | indent 4 }} spec: template: metadata: diff --git a/keystone/templates/job-fernet-setup.yaml b/keystone/templates/job-fernet-setup.yaml index 1505ffad29..ae9f42cbd4 100644 --- a/keystone/templates/job-fernet-setup.yaml +++ b/keystone/templates/job-fernet-setup.yaml @@ -62,6 +62,7 @@ metadata: "helm.sh/hook-weight": "-5" "helm.sh/hook-delete-policy": before-hook-creation {{- end }} +{{ tuple "keystone_fernet_setup" $envAll | include "helm-toolkit.snippets.custom_job_annotations" | indent 4 }} spec: template: metadata: diff --git a/keystone/values_overrides/annotations.yaml b/keystone/values_overrides/annotations.yaml index 2e6d7fcdde..55982b0feb 100644 --- a/keystone/values_overrides/annotations.yaml +++ b/keystone/values_overrides/annotations.yaml @@ -6,4 +6,10 @@ annotations: custom.tld/key2: "value2" keystone_api: another.tld/foo: "bar" + job: + default: + custom.tld/key: "value" + custom.tld/key2: "value2" + keystone_credential_setup: + another.tld/foo: "bar" ... diff --git a/releasenotes/notes/keystone.yaml b/releasenotes/notes/keystone.yaml index 4c10d62b52..dcdb7aea7d 100644 --- a/releasenotes/notes/keystone.yaml +++ b/releasenotes/notes/keystone.yaml @@ -56,4 +56,5 @@ keystone: - 0.3.7 Make keystone TLS configuration granular - 0.3.8 Enable custom annotations for Openstack pods - 0.3.9 Add 2024.1 overrides + - 0.3.10 Allow custom annotations on jobs ...