
This task aims to Upversion base OSH-I to Caracal (05f2f459)
This change upversion the base commit SHA for openstack-helm-infra
to the Caracal version. Because upstream OSH-I does not track
versions the same way Openstack does, the base commit [1] was
chosen after the caracal release date and the stability of the
changes in the upstream repo.
It also ports all StarlingX specific patches on top of it,
dropping the patches that are no longer necessary and updating
what needs to be updated in order to be applied on top of the
new base SHA.
Patch 0005 was removed because upstream OSH-I implemented the same
config. Additional configurations set on the patch was translated
into a change in the static-overrides. Patch 0018 was dropped
because the Ingress Helm chart was removed from upstream OSH-I.
Finally, the changes in the patch 0016 were also merged
on upstream OSH-I, so with the upversion they can be dropped.
Helm Releases are updated to the caracal version of each Helm
chart from OSH-I.
Test Plan:
PASS - Run downloader to get new OSH-I version
PASS - Run build-pkgs -c -a -l openstack to rebuild all packages
PASS - OSH-I is on the Caracal version
PASS - All OSH-I patches are applied
PASS - STX-O is built
With this change STX-Openstack will stop applying until the all
reviews in the relation chain are merged as well. Because of that,
the Test Plan does not include the apply and proper functioning of
the application. The last review of the relation chain will have a
more torough test plan. In order for the build not to be broken, all
reviews in the relation chain should be merged together.
Story: 2011303
Task: 51428
[1] - 05f2f45971
Change-Id: I43a11570a176f1b5aceda88c0cb3c76b2f5d228e
Signed-off-by: Daniel Caires <DanielMarques.Caires@windriver.com>
847 lines
44 KiB
Diff
847 lines
44 KiB
Diff
From de4f807376a58fa6b04163bc04cdbdad14777540 Mon Sep 17 00:00:00 2001
|
|
From: dbarbosa <david.barbosabastos@windriver.com>
|
|
Date: Wed, 20 Dec 2023 06:51:59 -0300
|
|
Subject: [PATCH] Add app.starlingx.io/component label to pods
|
|
|
|
Add the label app.starlingx.io/component to the pods and allow the
|
|
value to be updated via "system helm-override-update". This change
|
|
also ensures that when changing the label value and reapplying the
|
|
app, the pod is restarted.
|
|
|
|
The value of the label can only be “platform” or “application”, if
|
|
the variable "label.isApplication" in the values.yaml file is
|
|
different from true or false, the label will not change.
|
|
|
|
By default, all pods start with the value platform.
|
|
|
|
Signed-off-by: David Bastos <david.barbosabastos@windriver.com>
|
|
[ Updated "isApplication" labels values to "true" ]
|
|
Signed-off-by: Thales Elero Cervi <thaleselero.cervi@windriver.com>
|
|
[ Added labels to helm-toolkit job manifests ]
|
|
Signed-off-by: Daniel Caires <DanielMarques.Caires@windriver.com>
|
|
[ Add labels to helm charts and change isApplication to false ]
|
|
Signed-off-by: Giulia Melao <giulia.depaulamelao@windriver.com>
|
|
[ Upversioned openstack-helm-infra base commit to Caracal ]
|
|
Signed-off-by: Daniel Caires <DanielMarques.Caires@windriver.com>
|
|
|
|
---
|
|
ceph-rgw/templates/deployment-rgw.yaml | 2 ++
|
|
ceph-rgw/templates/job-bootstrap.yaml | 2 ++
|
|
ceph-rgw/templates/job-rgw-placement-targets.yaml | 2 ++
|
|
ceph-rgw/templates/job-rgw-restart.yaml | 2 ++
|
|
ceph-rgw/templates/job-rgw-storage-init.yaml | 2 ++
|
|
ceph-rgw/templates/job-s3-admin.yaml | 2 ++
|
|
ceph-rgw/templates/pod-helm-tests.yaml | 2 ++
|
|
ceph-rgw/values.yaml | 1 +
|
|
gnocchi/templates/cron-job-resources-cleaner.yaml | 3 +++
|
|
gnocchi/templates/daemonset-metricd.yaml | 2 ++
|
|
gnocchi/templates/daemonset-statsd.yaml | 2 ++
|
|
gnocchi/templates/deployment-api.yaml | 2 ++
|
|
gnocchi/templates/job-clean.yaml | 3 +++
|
|
gnocchi/templates/job-db-init-indexer.yaml | 3 +++
|
|
gnocchi/templates/job-db-sync.yaml | 3 +++
|
|
gnocchi/templates/job-storage-init.yaml | 3 +++
|
|
gnocchi/templates/pod-gnocchi-test.yaml | 2 ++
|
|
gnocchi/values.yaml | 1 +
|
|
helm-toolkit/templates/manifests/_job-bootstrap.tpl | 4 ++++
|
|
helm-toolkit/templates/manifests/_job-db-drop-mysql.tpl | 5 +++++
|
|
helm-toolkit/templates/manifests/_job-db-init-mysql.tpl | 4 ++++
|
|
helm-toolkit/templates/manifests/_job-db-sync.tpl | 4 ++++
|
|
helm-toolkit/templates/manifests/_job-ks-endpoints.tpl | 4 ++++
|
|
helm-toolkit/templates/manifests/_job-ks-service.tpl | 4 ++++
|
|
helm-toolkit/templates/manifests/_job-ks-user.yaml.tpl | 4 ++++
|
|
helm-toolkit/templates/manifests/_job-rabbit-init.yaml.tpl | 4 ++++
|
|
helm-toolkit/templates/manifests/_job-s3-bucket.yaml.tpl | 5 +++++
|
|
helm-toolkit/templates/manifests/_job-s3-user.yaml.tpl | 5 +++++
|
|
helm-toolkit/templates/manifests/_job_image_repo_sync.tpl | 5 +++++
|
|
libvirt/templates/daemonset-libvirt.yaml | 2 ++
|
|
libvirt/values.yaml | 1 +
|
|
mariadb/templates/cron-job-backup-mariadb.yaml | 3 +++
|
|
mariadb/templates/deployment-error.yaml | 2 ++
|
|
mariadb/templates/deployment-ingress.yaml | 2 ++
|
|
mariadb/templates/pod-test.yaml | 2 ++
|
|
mariadb/templates/statefulset.yaml | 2 ++
|
|
mariadb/values.yaml | 1 +
|
|
memcached/templates/deployment.yaml | 2 ++
|
|
memcached/values.yaml | 1 +
|
|
mongodb/templates/statefulset.yaml | 2 ++
|
|
mongodb/values.yaml | 1 +
|
|
openvswitch/templates/daemonset.yaml | 2 ++
|
|
openvswitch/values.yaml | 1 +
|
|
rabbitmq/templates/job-cluster-wait.yaml | 2 ++
|
|
rabbitmq/templates/pod-test.yaml | 2 ++
|
|
rabbitmq/templates/statefulset.yaml | 2 ++
|
|
rabbitmq/values.yaml | 1 +
|
|
47 files changed, 118 insertions(+)
|
|
|
|
diff --git a/ceph-rgw/templates/deployment-rgw.yaml b/ceph-rgw/templates/deployment-rgw.yaml
|
|
index 1fde8afe..a62f2757 100644
|
|
--- a/ceph-rgw/templates/deployment-rgw.yaml
|
|
+++ b/ceph-rgw/templates/deployment-rgw.yaml
|
|
@@ -123,11 +123,13 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "ceph" "rgw" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
configmap-etc-client-hash: {{ tuple "configmap-etc-client.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
secret-keystone-rgw-hash: {{ tuple "secret-keystone-rgw.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
{{ dict "envAll" $envAll "podName" "ceph-rgw" "containerNames" (list "init" "ceph-rgw" "ceph-init-dirs" "ceph-rgw-init") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
spec:
|
|
diff --git a/ceph-rgw/templates/job-bootstrap.yaml b/ceph-rgw/templates/job-bootstrap.yaml
|
|
index 63689691..f75e5a43 100644
|
|
--- a/ceph-rgw/templates/job-bootstrap.yaml
|
|
+++ b/ceph-rgw/templates/job-bootstrap.yaml
|
|
@@ -58,8 +58,10 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "ceph" "bootstrap" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
{{ dict "envAll" $envAll "podName" "ceph-rgw-bootstrap" "containerNames" (list "ceph-keyring-placement" "init" "ceph-rgw-bootstrap") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
spec:
|
|
diff --git a/ceph-rgw/templates/job-rgw-placement-targets.yaml b/ceph-rgw/templates/job-rgw-placement-targets.yaml
|
|
index 45b9486a..d092069b 100644
|
|
--- a/ceph-rgw/templates/job-rgw-placement-targets.yaml
|
|
+++ b/ceph-rgw/templates/job-rgw-placement-targets.yaml
|
|
@@ -59,8 +59,10 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "ceph" "rgw-placement-targets" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
{{ dict "envAll" $envAll "podName" "ceph-rgw-placement-targets" "containerNames" (list "ceph-keyring-placement" "init" "create-rgw-placement-targets") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
spec:
|
|
diff --git a/ceph-rgw/templates/job-rgw-restart.yaml b/ceph-rgw/templates/job-rgw-restart.yaml
|
|
index fdbec8f9..080b5df2 100644
|
|
--- a/ceph-rgw/templates/job-rgw-restart.yaml
|
|
+++ b/ceph-rgw/templates/job-rgw-restart.yaml
|
|
@@ -59,8 +59,10 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "ceph" "rgw-restart" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
{{ dict "envAll" $envAll "podName" "ceph-rgw-restart" "containerNames" (list "init" "ceph-rgw-restart") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
spec:
|
|
diff --git a/ceph-rgw/templates/job-rgw-storage-init.yaml b/ceph-rgw/templates/job-rgw-storage-init.yaml
|
|
index 4c3a6ed3..a2c30130 100644
|
|
--- a/ceph-rgw/templates/job-rgw-storage-init.yaml
|
|
+++ b/ceph-rgw/templates/job-rgw-storage-init.yaml
|
|
@@ -56,8 +56,10 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "ceph" "rgw-storage-init" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
{{ dict "envAll" $envAll "podName" "ceph-rgw-storage-init" "containerNames" (list "ceph-keyring-placement" "init" "ceph-rgw-storage-init") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
spec:
|
|
diff --git a/ceph-rgw/templates/job-s3-admin.yaml b/ceph-rgw/templates/job-s3-admin.yaml
|
|
index d796395b..94a831a9 100644
|
|
--- a/ceph-rgw/templates/job-s3-admin.yaml
|
|
+++ b/ceph-rgw/templates/job-s3-admin.yaml
|
|
@@ -60,8 +60,10 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "ceph" "rgw-s3-admin" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
{{ dict "envAll" $envAll "podName" "ceph-rgw-s3-admin" "containerNames" (list "ceph-keyring-placement" "init" "create-s3-admin") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
spec:
|
|
diff --git a/ceph-rgw/templates/pod-helm-tests.yaml b/ceph-rgw/templates/pod-helm-tests.yaml
|
|
index 54a0f870..01c3325b 100644
|
|
--- a/ceph-rgw/templates/pod-helm-tests.yaml
|
|
+++ b/ceph-rgw/templates/pod-helm-tests.yaml
|
|
@@ -22,8 +22,10 @@ kind: Pod
|
|
metadata:
|
|
name: {{ $serviceAccountName }}
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "ceph" "rgw-test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
"helm.sh/hook": test-success
|
|
{{ dict "envAll" $envAll "podName" "ceph-rgw-test" "containerNames" (list "ceph-rgw-ks-validation" "ceph-rgw-s3-validation") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }}
|
|
spec:
|
|
diff --git a/ceph-rgw/values.yaml b/ceph-rgw/values.yaml
|
|
index c8ee0a22..a0befdf0 100644
|
|
--- a/ceph-rgw/values.yaml
|
|
+++ b/ceph-rgw/values.yaml
|
|
@@ -42,6 +42,7 @@ images:
|
|
- image_repo_sync
|
|
|
|
labels:
|
|
+ isApplication: false
|
|
job:
|
|
node_selector_key: openstack-control-plane
|
|
node_selector_value: enabled
|
|
diff --git a/gnocchi/templates/cron-job-resources-cleaner.yaml b/gnocchi/templates/cron-job-resources-cleaner.yaml
|
|
index 608bab5f..6de846f6 100644
|
|
--- a/gnocchi/templates/cron-job-resources-cleaner.yaml
|
|
+++ b/gnocchi/templates/cron-job-resources-cleaner.yaml
|
|
@@ -42,7 +42,10 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "gnocchi" "resources-cleaner" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 12 }}
|
|
+ annotation:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
restartPolicy: OnFailure
|
|
diff --git a/gnocchi/templates/daemonset-metricd.yaml b/gnocchi/templates/daemonset-metricd.yaml
|
|
index 6fe77593..5d94ce26 100644
|
|
--- a/gnocchi/templates/daemonset-metricd.yaml
|
|
+++ b/gnocchi/templates/daemonset-metricd.yaml
|
|
@@ -35,11 +35,13 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "gnocchi" "metricd" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
{{ 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" }}
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
nodeSelector:
|
|
diff --git a/gnocchi/templates/daemonset-statsd.yaml b/gnocchi/templates/daemonset-statsd.yaml
|
|
index 316265bc..371448ee 100644
|
|
--- a/gnocchi/templates/daemonset-statsd.yaml
|
|
+++ b/gnocchi/templates/daemonset-statsd.yaml
|
|
@@ -34,11 +34,13 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "gnocchi" "metricd" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
{{ 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" }}
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
nodeSelector:
|
|
diff --git a/gnocchi/templates/deployment-api.yaml b/gnocchi/templates/deployment-api.yaml
|
|
index 68555b18..d34f7639 100644
|
|
--- a/gnocchi/templates/deployment-api.yaml
|
|
+++ b/gnocchi/templates/deployment-api.yaml
|
|
@@ -36,11 +36,13 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "gnocchi" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
{{ 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" }}
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
affinity:
|
|
diff --git a/gnocchi/templates/job-clean.yaml b/gnocchi/templates/job-clean.yaml
|
|
index e1023aa3..e2635fac 100644
|
|
--- a/gnocchi/templates/job-clean.yaml
|
|
+++ b/gnocchi/templates/job-clean.yaml
|
|
@@ -57,6 +57,9 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
+ annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ tuple $envAll "gnocchi" "clean" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/gnocchi/templates/job-db-init-indexer.yaml b/gnocchi/templates/job-db-init-indexer.yaml
|
|
index 397dbee2..d1c796ac 100644
|
|
--- a/gnocchi/templates/job-db-init-indexer.yaml
|
|
+++ b/gnocchi/templates/job-db-init-indexer.yaml
|
|
@@ -28,6 +28,9 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
+ annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ tuple $envAll "gnocchi" "db-init-indexer" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/gnocchi/templates/job-db-sync.yaml b/gnocchi/templates/job-db-sync.yaml
|
|
index 123a5e16..d4a33034 100644
|
|
--- a/gnocchi/templates/job-db-sync.yaml
|
|
+++ b/gnocchi/templates/job-db-sync.yaml
|
|
@@ -28,6 +28,9 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
+ annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ tuple $envAll "gnocchi" "db-sync" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/gnocchi/templates/job-storage-init.yaml b/gnocchi/templates/job-storage-init.yaml
|
|
index 9aaae9a5..621008cd 100644
|
|
--- a/gnocchi/templates/job-storage-init.yaml
|
|
+++ b/gnocchi/templates/job-storage-init.yaml
|
|
@@ -56,6 +56,9 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
+ annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ tuple $envAll "gnocchi" "storage-init" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/gnocchi/templates/pod-gnocchi-test.yaml b/gnocchi/templates/pod-gnocchi-test.yaml
|
|
index c3cbe67b..961f8a2c 100644
|
|
--- a/gnocchi/templates/pod-gnocchi-test.yaml
|
|
+++ b/gnocchi/templates/pod-gnocchi-test.yaml
|
|
@@ -26,8 +26,10 @@ kind: Pod
|
|
metadata:
|
|
name: "{{.Release.Name}}-test"
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "gnocchi" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
"helm.sh/hook": test-success
|
|
spec:
|
|
nodeSelector:
|
|
diff --git a/gnocchi/values.yaml b/gnocchi/values.yaml
|
|
index 3cc684fc..bbfd4335 100644
|
|
--- a/gnocchi/values.yaml
|
|
+++ b/gnocchi/values.yaml
|
|
@@ -16,6 +16,7 @@
|
|
|
|
---
|
|
labels:
|
|
+ isApplication: false
|
|
api:
|
|
node_selector_key: openstack-control-plane
|
|
node_selector_value: enabled
|
|
diff --git a/helm-toolkit/templates/manifests/_job-bootstrap.tpl b/helm-toolkit/templates/manifests/_job-bootstrap.tpl
|
|
index 6b77004f..d061fc75 100644
|
|
--- a/helm-toolkit/templates/manifests/_job-bootstrap.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job-bootstrap.tpl
|
|
@@ -63,11 +63,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "bootstrap" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
annotations:
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/helm-toolkit/templates/manifests/_job-db-drop-mysql.tpl b/helm-toolkit/templates/manifests/_job-db-drop-mysql.tpl
|
|
index 5e31a04d..404c3d49 100644
|
|
--- a/helm-toolkit/templates/manifests/_job-db-drop-mysql.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job-db-drop-mysql.tpl
|
|
@@ -65,10 +65,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "db-drop" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ annotations:
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end}}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
restartPolicy: OnFailure
|
|
diff --git a/helm-toolkit/templates/manifests/_job-db-init-mysql.tpl b/helm-toolkit/templates/manifests/_job-db-init-mysql.tpl
|
|
index ff5d54ba..84b8e1a9 100644
|
|
--- a/helm-toolkit/templates/manifests/_job-db-init-mysql.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job-db-init-mysql.tpl
|
|
@@ -63,11 +63,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "db-init" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
annotations:
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/helm-toolkit/templates/manifests/_job-db-sync.tpl b/helm-toolkit/templates/manifests/_job-db-sync.tpl
|
|
index 364a7fe8..c033cf39 100644
|
|
--- a/helm-toolkit/templates/manifests/_job-db-sync.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job-db-sync.tpl
|
|
@@ -60,11 +60,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "db-sync" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
annotations:
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/helm-toolkit/templates/manifests/_job-ks-endpoints.tpl b/helm-toolkit/templates/manifests/_job-ks-endpoints.tpl
|
|
index e4b0e45d..387716c4 100644
|
|
--- a/helm-toolkit/templates/manifests/_job-ks-endpoints.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job-ks-endpoints.tpl
|
|
@@ -64,11 +64,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "ks-endpoints" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
annotations:
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/helm-toolkit/templates/manifests/_job-ks-service.tpl b/helm-toolkit/templates/manifests/_job-ks-service.tpl
|
|
index 9604c637..8111d37b 100644
|
|
--- a/helm-toolkit/templates/manifests/_job-ks-service.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job-ks-service.tpl
|
|
@@ -64,11 +64,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "ks-service" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
annotations:
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/helm-toolkit/templates/manifests/_job-ks-user.yaml.tpl b/helm-toolkit/templates/manifests/_job-ks-user.yaml.tpl
|
|
index 58dcdc5c..f768e68e 100644
|
|
--- a/helm-toolkit/templates/manifests/_job-ks-user.yaml.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job-ks-user.yaml.tpl
|
|
@@ -86,11 +86,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "ks-user" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
annotations:
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName | quote }}
|
|
diff --git a/helm-toolkit/templates/manifests/_job-rabbit-init.yaml.tpl b/helm-toolkit/templates/manifests/_job-rabbit-init.yaml.tpl
|
|
index f3ff145f..4fda90de 100644
|
|
--- a/helm-toolkit/templates/manifests/_job-rabbit-init.yaml.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job-rabbit-init.yaml.tpl
|
|
@@ -51,11 +51,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "rabbit-init" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
annotations:
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName | quote }}
|
|
diff --git a/helm-toolkit/templates/manifests/_job-s3-bucket.yaml.tpl b/helm-toolkit/templates/manifests/_job-s3-bucket.yaml.tpl
|
|
index b5fdc09c..7c4b605f 100644
|
|
--- a/helm-toolkit/templates/manifests/_job-s3-bucket.yaml.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job-s3-bucket.yaml.tpl
|
|
@@ -61,10 +61,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "s3-bucket" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ annotations:
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end}}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName | quote }}
|
|
restartPolicy: OnFailure
|
|
diff --git a/helm-toolkit/templates/manifests/_job-s3-user.yaml.tpl b/helm-toolkit/templates/manifests/_job-s3-user.yaml.tpl
|
|
index 77d1a71e..e07549c6 100644
|
|
--- a/helm-toolkit/templates/manifests/_job-s3-user.yaml.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job-s3-user.yaml.tpl
|
|
@@ -59,10 +59,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "s3-user" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ annotations:
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end}}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName | quote }}
|
|
restartPolicy: OnFailure
|
|
diff --git a/helm-toolkit/templates/manifests/_job_image_repo_sync.tpl b/helm-toolkit/templates/manifests/_job_image_repo_sync.tpl
|
|
index 0906df4c..bc135c64 100644
|
|
--- a/helm-toolkit/templates/manifests/_job_image_repo_sync.tpl
|
|
+++ b/helm-toolkit/templates/manifests/_job_image_repo_sync.tpl
|
|
@@ -57,10 +57,15 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ if $envAll.Values.labels.isApplication }}{{ ternary "application" "platform" $envAll.Values.labels.isApplication }}{{ else }}platform{{ end }}
|
|
{{ tuple $envAll $serviceName "image-repo-sync" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
{{- if $jobLabels }}
|
|
{{ toYaml $jobLabels | indent 8 }}
|
|
{{- end }}
|
|
+ {{- if $envAll.Values.labels.isApplication }}
|
|
+ annotations:
|
|
+ configchecksum: {{ toYaml $envAll.Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
+ {{- end}}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
restartPolicy: OnFailure
|
|
diff --git a/libvirt/templates/daemonset-libvirt.yaml b/libvirt/templates/daemonset-libvirt.yaml
|
|
index 4a0b128a..050aefc0 100644
|
|
--- a/libvirt/templates/daemonset-libvirt.yaml
|
|
+++ b/libvirt/templates/daemonset-libvirt.yaml
|
|
@@ -58,12 +58,14 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll .Chart.Name $daemonset | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
{{- dict "envAll" $envAll "podName" "libvirt-libvirt-default" "containerNames" (list "libvirt") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
{{ 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" }}
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
spec:
|
|
{{ dict "envAll" $envAll "application" "libvirt" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/libvirt/values.yaml b/libvirt/values.yaml
|
|
index ba35a3f5..22ff231c 100644
|
|
--- a/libvirt/values.yaml
|
|
+++ b/libvirt/values.yaml
|
|
@@ -19,6 +19,7 @@
|
|
release_group: null
|
|
|
|
labels:
|
|
+ isApplication: false
|
|
agent:
|
|
libvirt:
|
|
node_selector_key: openstack-compute-node
|
|
diff --git a/mariadb/templates/cron-job-backup-mariadb.yaml b/mariadb/templates/cron-job-backup-mariadb.yaml
|
|
index cb838125..9222a086 100644
|
|
--- a/mariadb/templates/cron-job-backup-mariadb.yaml
|
|
+++ b/mariadb/templates/cron-job-backup-mariadb.yaml
|
|
@@ -47,7 +47,10 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "mariadb-backup" "backup" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 12 }}
|
|
+ annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
spec:
|
|
{{ dict "envAll" $envAll "application" "mariadb_backup" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 10 }}
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
diff --git a/mariadb/templates/deployment-error.yaml b/mariadb/templates/deployment-error.yaml
|
|
index 4f3b68bd..eaa228bc 100644
|
|
--- a/mariadb/templates/deployment-error.yaml
|
|
+++ b/mariadb/templates/deployment-error.yaml
|
|
@@ -35,8 +35,10 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "mariadb" "ingress-error-pages" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ 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-ingress-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
diff --git a/mariadb/templates/deployment-ingress.yaml b/mariadb/templates/deployment-ingress.yaml
|
|
index ba0d64c9..cf964061 100644
|
|
--- a/mariadb/templates/deployment-ingress.yaml
|
|
+++ b/mariadb/templates/deployment-ingress.yaml
|
|
@@ -238,6 +238,7 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "mariadb" "ingress" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
app.kubernetes.io/instance: {{ $serviceAccountName }}
|
|
app.kubernetes.io/name: "mariadb"
|
|
@@ -247,6 +248,7 @@ spec:
|
|
app.kubernetes.io/version: {{ $envAll.Chart.AppVersion | quote }}
|
|
{{- end }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ 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-ingress-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
diff --git a/mariadb/templates/pod-test.yaml b/mariadb/templates/pod-test.yaml
|
|
index c8b3c29c..2f4ef851 100644
|
|
--- a/mariadb/templates/pod-test.yaml
|
|
+++ b/mariadb/templates/pod-test.yaml
|
|
@@ -30,8 +30,10 @@ kind: Pod
|
|
metadata:
|
|
name: "{{.deployment_name}}-test"
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "mariadb" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
"helm.sh/hook": test-success
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
|
{{ dict "envAll" $envAll "podName" "mariadb-test" "containerNames" (list "init" "mariadb-test") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }}
|
|
diff --git a/mariadb/templates/statefulset.yaml b/mariadb/templates/statefulset.yaml
|
|
index 5be9ab46..b8d3f193 100644
|
|
--- a/mariadb/templates/statefulset.yaml
|
|
+++ b/mariadb/templates/statefulset.yaml
|
|
@@ -125,8 +125,10 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "mariadb" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ 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" }}
|
|
diff --git a/mariadb/values.yaml b/mariadb/values.yaml
|
|
index 53789ba1..61d2d3e7 100644
|
|
--- a/mariadb/values.yaml
|
|
+++ b/mariadb/values.yaml
|
|
@@ -39,6 +39,7 @@ images:
|
|
- image_repo_sync
|
|
|
|
labels:
|
|
+ isApplication: false
|
|
server:
|
|
node_selector_key: openstack-control-plane
|
|
node_selector_value: enabled
|
|
diff --git a/memcached/templates/deployment.yaml b/memcached/templates/deployment.yaml
|
|
index b3d12eaf..a2f0d912 100644
|
|
--- a/memcached/templates/deployment.yaml
|
|
+++ b/memcached/templates/deployment.yaml
|
|
@@ -43,10 +43,12 @@ spec:
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ dict "envAll" $envAll "podName" "memcached" "containerNames" (list "init" "memcached") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "memcached" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
spec:
|
|
{{ dict "envAll" $envAll "application" "server" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
|
diff --git a/memcached/values.yaml b/memcached/values.yaml
|
|
index c1a4cd0c..dd2bf3c6 100644
|
|
--- a/memcached/values.yaml
|
|
+++ b/memcached/values.yaml
|
|
@@ -130,6 +130,7 @@ images:
|
|
- image_repo_sync
|
|
|
|
labels:
|
|
+ isApplication: false
|
|
server:
|
|
node_selector_key: openstack-control-plane
|
|
node_selector_value: enabled
|
|
diff --git a/mongodb/templates/statefulset.yaml b/mongodb/templates/statefulset.yaml
|
|
index 7456a077..6c4c5148 100644
|
|
--- a/mongodb/templates/statefulset.yaml
|
|
+++ b/mongodb/templates/statefulset.yaml
|
|
@@ -35,10 +35,12 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "mongodb" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
affinity:
|
|
diff --git a/mongodb/values.yaml b/mongodb/values.yaml
|
|
index e0d353e5..00afdcfe 100644
|
|
--- a/mongodb/values.yaml
|
|
+++ b/mongodb/values.yaml
|
|
@@ -70,6 +70,7 @@ volume:
|
|
host_path: /var/lib/openstack-helm/mongodb
|
|
|
|
labels:
|
|
+ isApplication: false
|
|
server:
|
|
node_selector_key: openstack-control-plane
|
|
node_selector_value: enabled
|
|
diff --git a/openvswitch/templates/daemonset.yaml b/openvswitch/templates/daemonset.yaml
|
|
index 3a66fa51..c7aa9a05 100644
|
|
--- a/openvswitch/templates/daemonset.yaml
|
|
+++ b/openvswitch/templates/daemonset.yaml
|
|
@@ -76,9 +76,11 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "openvswitch" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
{{ dict "envAll" $envAll "podName" "openvswitch" "containerNames" (list "openvswitch-db" "openvswitch-db-perms" "openvswitch-vswitchd" "openvswitch-vswitchd-modules" "init") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
spec:
|
|
diff --git a/openvswitch/values.yaml b/openvswitch/values.yaml
|
|
index b350f03e..49006ea9 100644
|
|
--- a/openvswitch/values.yaml
|
|
+++ b/openvswitch/values.yaml
|
|
@@ -32,6 +32,7 @@ images:
|
|
- image_repo_sync
|
|
|
|
labels:
|
|
+ isApplication: false
|
|
ovs:
|
|
node_selector_key: openvswitch
|
|
node_selector_value: enabled
|
|
diff --git a/rabbitmq/templates/job-cluster-wait.yaml b/rabbitmq/templates/job-cluster-wait.yaml
|
|
index 1c4378c7..223291e4 100644
|
|
--- a/rabbitmq/templates/job-cluster-wait.yaml
|
|
+++ b/rabbitmq/templates/job-cluster-wait.yaml
|
|
@@ -46,11 +46,13 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "rabbitmq" "cluster-wait" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
{{ 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" }}
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ dict "envAll" $envAll "podName" "rabbitmq-cluster-wait" "containerNames" (list "init" "rabbitmq-cookie" "rabbitmq-rabbitmq-cluster-wait" ) | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
spec:
|
|
{{ dict "envAll" $envAll "application" "cluster_wait" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
|
diff --git a/rabbitmq/templates/pod-test.yaml b/rabbitmq/templates/pod-test.yaml
|
|
index 37d8af36..2cdc047d 100644
|
|
--- a/rabbitmq/templates/pod-test.yaml
|
|
+++ b/rabbitmq/templates/pod-test.yaml
|
|
@@ -40,10 +40,12 @@ kind: Pod
|
|
metadata:
|
|
name: "{{.deployment_name}}-test"
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "rabbitmq" "test" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
|
annotations:
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
|
"helm.sh/hook": test-success
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ dict "envAll" $envAll "podName" "rabbitmq-rabbitmq-test" "containerNames" (list "init" "rabbitmq-rabbitmq-test") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 4 }}
|
|
spec:
|
|
{{ dict "envAll" $envAll "application" "test" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 2 }}
|
|
diff --git a/rabbitmq/templates/statefulset.yaml b/rabbitmq/templates/statefulset.yaml
|
|
index 68fbac71..0bbe2a8c 100644
|
|
--- a/rabbitmq/templates/statefulset.yaml
|
|
+++ b/rabbitmq/templates/statefulset.yaml
|
|
@@ -107,6 +107,7 @@ spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
+ app.starlingx.io/component: {{ ternary "application" "platform" .Values.labels.isApplication }}
|
|
{{ tuple $envAll "rabbitmq" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
annotations:
|
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
|
@@ -114,6 +115,7 @@ spec:
|
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
secret-rabbit-admin-hash: {{ tuple "secret-rabbit-admin.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
secret-erlang-cookie-hash: {{ tuple "secret-erlang-cookie.yaml" . | include "helm-toolkit.utils.hash" }}
|
|
+ configchecksum: {{ toYaml .Values.labels.isApplication | sha256sum | trunc 63 }}
|
|
{{ dict "envAll" $envAll "podName" "rabbitmq" "containerNames" (list "init" "rabbitmq-password" "rabbitmq-cookie" "rabbitmq-perms" "rabbitmq") | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
|
|
spec:
|
|
{{ dict "envAll" $envAll "application" "server" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
|
diff --git a/rabbitmq/values.yaml b/rabbitmq/values.yaml
|
|
index ca1f2036..68a963a1 100644
|
|
--- a/rabbitmq/values.yaml
|
|
+++ b/rabbitmq/values.yaml
|
|
@@ -17,6 +17,7 @@
|
|
|
|
---
|
|
labels:
|
|
+ isApplication: false
|
|
server:
|
|
node_selector_key: openstack-control-plane
|
|
node_selector_value: enabled
|
|
--
|
|
2.34.1
|