From 04cb07626e649332d3b0f1f0362ad0d0afe5e424 Mon Sep 17 00:00:00 2001 From: Tadas Sutkaitis Date: Wed, 27 Mar 2024 09:16:40 +0200 Subject: [PATCH] Horizon: Enable custom annotations Enable custom annotations for pods [deployments, daemonsets] Change-Id: I097391183c0ca2761a3691f44863b687b0a4ab98 --- horizon/Chart.yaml | 2 +- horizon/templates/deployment.yaml | 1 + horizon/values_overrides/annotations.yaml | 9 +++++++++ releasenotes/notes/horizon.yaml | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 horizon/values_overrides/annotations.yaml diff --git a/horizon/Chart.yaml b/horizon/Chart.yaml index 4b13aab5a8..f4a0343cba 100644 --- a/horizon/Chart.yaml +++ b/horizon/Chart.yaml @@ -14,7 +14,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Horizon name: horizon -version: 0.3.17 +version: 0.3.18 home: https://docs.openstack.org/horizon/latest/ icon: https://www.openstack.org/themes/openstack/images/project-mascots/Horizon/OpenStack_Project_Horizon_vertical.png sources: diff --git a/horizon/templates/deployment.yaml b/horizon/templates/deployment.yaml index 93d80d34ba..fab84924df 100644 --- a/horizon/templates/deployment.yaml +++ b/horizon/templates/deployment.yaml @@ -43,6 +43,7 @@ spec: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }} configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }} configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} +{{ tuple "horizon" . | include "helm-toolkit.snippets.custom_pod_annotations" | indent 8 }} {{- if .Values.manifests.configmap_logo }} configmap-logo-hash: {{ tuple "configmap-logo.yaml" . | include "helm-toolkit.utils.hash" }} {{- end }} diff --git a/horizon/values_overrides/annotations.yaml b/horizon/values_overrides/annotations.yaml new file mode 100644 index 0000000000..2ef9fbd000 --- /dev/null +++ b/horizon/values_overrides/annotations.yaml @@ -0,0 +1,9 @@ +--- +annotations: + pod: + default: + custom.tld/key: "value" + custom.tld/key2: "value2" + horizon: + another.tld/foo: "bar" +... diff --git a/releasenotes/notes/horizon.yaml b/releasenotes/notes/horizon.yaml index dbaee232b4..3bd5bb7f24 100644 --- a/releasenotes/notes/horizon.yaml +++ b/releasenotes/notes/horizon.yaml @@ -54,4 +54,5 @@ horizon: - 0.3.15 Update osh-selenium image used by default - 0.3.16 Add support for custom panels - 0.3.17 Set ingress annotation proxy-body-size=300m by default + - 0.3.18 Enable custom annotations for Openstack pods ...