Use k8s secret to store config in openstack telemetry charts

Openstack-helm has been rebased to a current version of the upstream repo
which includes the feature that use secrets to store config information.
Aodh, panko and ceilometer charts should apply the same change in order to
deploy those services successfully.

Change-Id: I32424a01a0dc049989f67d14de94b645f8045e68
Story: 2004005
Task: 27947
Signed-off-by: Angie Wang <angie.wang@windriver.com>
This commit is contained in:
Angie Wang 2018-11-19 15:45:13 -05:00
parent b0f3b80efc
commit f2f7eb526d
3 changed files with 124 additions and 133 deletions

View File

@ -1,7 +1,7 @@
From 194d712bafb63186850fb451185bdaaaa8054c23 Mon Sep 17 00:00:00 2001 From f4d666c7fd832307dccb7f0096a48c917179449d Mon Sep 17 00:00:00 2001
From: Angie Wang <angie.wang@windriver.com> From: Angie Wang <angie.wang@windriver.com>
Date: Fri, 19 Oct 2018 14:46:27 -0400 Date: Fri, 19 Oct 2018 14:46:27 -0400
Subject: [PATCH 1/3] ceilometer chart updates Subject: [PATCH 1/1] ceilometer chart updates
This commit includes the following changes: This commit includes the following changes:
- add polling process with ipmi function - add polling process with ipmi function
@ -13,8 +13,6 @@ This commit includes the following changes:
- add the ability to push events to panko - add the ability to push events to panko
We should try to upstream above changes. We should try to upstream above changes.
We need to rework a bit once the commit "Openstack: Use k8s secret to store config" is put back.
--- ---
ceilometer/templates/bin/_ceilometer-ipmi.sh.tpl | 13 + ceilometer/templates/bin/_ceilometer-ipmi.sh.tpl | 13 +
ceilometer/templates/bin/_db-sync.sh.tpl | 2 +- ceilometer/templates/bin/_db-sync.sh.tpl | 2 +-
@ -31,7 +29,7 @@ We need to rework a bit once the commit "Openstack: Use k8s secret to store conf
diff --git a/ceilometer/templates/bin/_ceilometer-ipmi.sh.tpl b/ceilometer/templates/bin/_ceilometer-ipmi.sh.tpl diff --git a/ceilometer/templates/bin/_ceilometer-ipmi.sh.tpl b/ceilometer/templates/bin/_ceilometer-ipmi.sh.tpl
new file mode 100644 new file mode 100644
index 00000000..ad280c30 index 0000000..ad280c3
--- /dev/null --- /dev/null
+++ b/ceilometer/templates/bin/_ceilometer-ipmi.sh.tpl +++ b/ceilometer/templates/bin/_ceilometer-ipmi.sh.tpl
@@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
@ -49,7 +47,7 @@ index 00000000..ad280c30
+ --polling-namespaces ipmi \ + --polling-namespaces ipmi \
+ --config-file /etc/ceilometer/ceilometer.conf + --config-file /etc/ceilometer/ceilometer.conf
diff --git a/ceilometer/templates/bin/_db-sync.sh.tpl b/ceilometer/templates/bin/_db-sync.sh.tpl diff --git a/ceilometer/templates/bin/_db-sync.sh.tpl b/ceilometer/templates/bin/_db-sync.sh.tpl
index 02f6f5d4..ba7c1d84 100644 index 02f6f5d..ba7c1d8 100644
--- a/ceilometer/templates/bin/_db-sync.sh.tpl --- a/ceilometer/templates/bin/_db-sync.sh.tpl
+++ b/ceilometer/templates/bin/_db-sync.sh.tpl +++ b/ceilometer/templates/bin/_db-sync.sh.tpl
@@ -18,4 +18,4 @@ limitations under the License. @@ -18,4 +18,4 @@ limitations under the License.
@ -59,7 +57,7 @@ index 02f6f5d4..ba7c1d84 100644
-exec ceilometer-dbsync -exec ceilometer-dbsync
+exec ceilometer-upgrade --skip-metering-database +exec ceilometer-upgrade --skip-metering-database
diff --git a/ceilometer/templates/configmap-bin.yaml b/ceilometer/templates/configmap-bin.yaml diff --git a/ceilometer/templates/configmap-bin.yaml b/ceilometer/templates/configmap-bin.yaml
index 6c7d59a9..558f24e7 100644 index 6c7d59a..558f24e 100644
--- a/ceilometer/templates/configmap-bin.yaml --- a/ceilometer/templates/configmap-bin.yaml
+++ b/ceilometer/templates/configmap-bin.yaml +++ b/ceilometer/templates/configmap-bin.yaml
@@ -53,6 +53,8 @@ data: @@ -53,6 +53,8 @@ data:
@ -72,7 +70,7 @@ index 6c7d59a9..558f24e7 100644
{{ tuple "bin/_ceilometer-notification.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }} {{ tuple "bin/_ceilometer-notification.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
rabbit-init.sh: | rabbit-init.sh: |
diff --git a/ceilometer/templates/configmap-etc.yaml b/ceilometer/templates/configmap-etc.yaml diff --git a/ceilometer/templates/configmap-etc.yaml b/ceilometer/templates/configmap-etc.yaml
index 17ddb1b0..c48a3b8b 100644 index 17ddb1b..c48a3b8 100644
--- a/ceilometer/templates/configmap-etc.yaml --- a/ceilometer/templates/configmap-etc.yaml
+++ b/ceilometer/templates/configmap-etc.yaml +++ b/ceilometer/templates/configmap-etc.yaml
@@ -32,6 +32,10 @@ limitations under the License. @@ -32,6 +32,10 @@ limitations under the License.
@ -95,7 +93,7 @@ index 17ddb1b0..c48a3b8b 100644
{{ include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.wsgi_ceilometer "key" "wsgi-ceilometer.conf" "format" "Secret" ) | indent 2 }} {{ include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.wsgi_ceilometer "key" "wsgi-ceilometer.conf" "format" "Secret" ) | indent 2 }}
{{- end }} {{- end }}
diff --git a/ceilometer/templates/daemonset-compute.yaml b/ceilometer/templates/daemonset-compute.yaml diff --git a/ceilometer/templates/daemonset-compute.yaml b/ceilometer/templates/daemonset-compute.yaml
index 686572af..bff2e15a 100644 index 686572a..bff2e15 100644
--- a/ceilometer/templates/daemonset-compute.yaml --- a/ceilometer/templates/daemonset-compute.yaml
+++ b/ceilometer/templates/daemonset-compute.yaml +++ b/ceilometer/templates/daemonset-compute.yaml
@@ -91,6 +91,10 @@ spec: @@ -91,6 +91,10 @@ spec:
@ -111,7 +109,7 @@ index 686572af..bff2e15a 100644
subPath: ceilometer-compute.sh subPath: ceilometer-compute.sh
diff --git a/ceilometer/templates/daemonset-ipmi.yaml b/ceilometer/templates/daemonset-ipmi.yaml diff --git a/ceilometer/templates/daemonset-ipmi.yaml b/ceilometer/templates/daemonset-ipmi.yaml
new file mode 100644 new file mode 100644
index 00000000..9a7d72bf index 0000000..3119ace
--- /dev/null --- /dev/null
+++ b/ceilometer/templates/daemonset-ipmi.yaml +++ b/ceilometer/templates/daemonset-ipmi.yaml
@@ -0,0 +1,105 @@ @@ -0,0 +1,105 @@
@ -211,8 +209,8 @@ index 00000000..9a7d72bf
+ - name: pod-etc-ceilometer + - name: pod-etc-ceilometer
+ emptyDir: {} + emptyDir: {}
+ - name: ceilometer-etc + - name: ceilometer-etc
+ configMap: + secret:
+ name: ceilometer-etc + secretName: ceilometer-etc
+ defaultMode: 0444 + defaultMode: 0444
+ - name: ceilometer-bin + - name: ceilometer-bin
+ configMap: + configMap:
@ -221,7 +219,7 @@ index 00000000..9a7d72bf
+{{ if $mounts_ceilometer_ipmi.volumes }}{{ toYaml $mounts_ceilometer_ipmi.volumes | indent 8 }}{{ end }} +{{ if $mounts_ceilometer_ipmi.volumes }}{{ toYaml $mounts_ceilometer_ipmi.volumes | indent 8 }}{{ end }}
+{{- end }} +{{- end }}
diff --git a/ceilometer/templates/deployment-central.yaml b/ceilometer/templates/deployment-central.yaml diff --git a/ceilometer/templates/deployment-central.yaml b/ceilometer/templates/deployment-central.yaml
index b7a597bf..7a6cd2b6 100644 index b7a597b..7a6cd2b 100644
--- a/ceilometer/templates/deployment-central.yaml --- a/ceilometer/templates/deployment-central.yaml
+++ b/ceilometer/templates/deployment-central.yaml +++ b/ceilometer/templates/deployment-central.yaml
@@ -89,6 +89,10 @@ spec: @@ -89,6 +89,10 @@ spec:
@ -236,7 +234,7 @@ index b7a597bf..7a6cd2b6 100644
mountPath: /tmp/ceilometer-central.sh mountPath: /tmp/ceilometer-central.sh
subPath: ceilometer-central.sh subPath: ceilometer-central.sh
diff --git a/ceilometer/templates/deployment-notification.yaml b/ceilometer/templates/deployment-notification.yaml diff --git a/ceilometer/templates/deployment-notification.yaml b/ceilometer/templates/deployment-notification.yaml
index 06fda3df..cb528ca9 100644 index 06fda3d..45d7ecb 100644
--- a/ceilometer/templates/deployment-notification.yaml --- a/ceilometer/templates/deployment-notification.yaml
+++ b/ceilometer/templates/deployment-notification.yaml +++ b/ceilometer/templates/deployment-notification.yaml
@@ -89,14 +89,30 @@ spec: @@ -89,14 +89,30 @@ spec:
@ -275,13 +273,13 @@ index 06fda3df..cb528ca9 100644
name: ceilometer-bin name: ceilometer-bin
defaultMode: 0555 defaultMode: 0555
+ - name: panko-etc + - name: panko-etc
+ configMap: + secret:
+ name: panko-etc + secretName: panko-etc
+ defaultMode: 0444 + defaultMode: 0444
{{ if $mounts_ceilometer_notification.volumes }}{{ toYaml $mounts_ceilometer_notification.volumes | indent 8 }}{{ end }} {{ if $mounts_ceilometer_notification.volumes }}{{ toYaml $mounts_ceilometer_notification.volumes | indent 8 }}{{ end }}
{{- end }} {{- end }}
diff --git a/ceilometer/values.yaml b/ceilometer/values.yaml diff --git a/ceilometer/values.yaml b/ceilometer/values.yaml
index 50219679..5908a4ec 100644 index 5021967..5908a4e 100644
--- a/ceilometer/values.yaml --- a/ceilometer/values.yaml
+++ b/ceilometer/values.yaml +++ b/ceilometer/values.yaml
@@ -29,6 +29,9 @@ labels: @@ -29,6 +29,9 @@ labels:
@ -2108,5 +2106,5 @@ index 50219679..5908a4ec 100644
ingress_api: true ingress_api: true
job_bootstrap: true job_bootstrap: true
-- --
2.16.5 1.8.3.1

View File

@ -1,7 +1,7 @@
From 8615d16af10e1d14dedeb9a026e59491142c0dbf Mon Sep 17 00:00:00 2001 From 656e36a319f48424d61624473b41c95aa610cd04 Mon Sep 17 00:00:00 2001
From: Angie Wang <angie.wang@windriver.com> From: Angie Wang <angie.wang@windriver.com>
Date: Wed, 14 Nov 2018 11:39:55 -0500 Date: Wed, 14 Nov 2018 11:39:55 -0500
Subject: [PATCH 2/3] Add Aodh Chart Subject: [PATCH 1/2] Add Aodh Chart
This commit adds a helm chart to deloy Aodh. This commit adds a helm chart to deloy Aodh.
@ -19,7 +19,7 @@ https://review.openstack.org/#/c/468530/
aodh/templates/bin/_bootstrap.sh.tpl | 20 + aodh/templates/bin/_bootstrap.sh.tpl | 20 +
aodh/templates/bin/_db-sync.sh.tpl | 21 + aodh/templates/bin/_db-sync.sh.tpl | 21 +
aodh/templates/configmap-bin.yaml | 60 +++ aodh/templates/configmap-bin.yaml | 60 +++
aodh/templates/configmap-etc.yaml | 123 +++++ aodh/templates/configmap-etc.yaml | 121 +++++
aodh/templates/cron-job-alarms-cleaner.yaml | 84 ++++ aodh/templates/cron-job-alarms-cleaner.yaml | 84 ++++
aodh/templates/deployment-api.yaml | 121 +++++ aodh/templates/deployment-api.yaml | 121 +++++
aodh/templates/deployment-evaluator.yaml | 101 ++++ aodh/templates/deployment-evaluator.yaml | 101 ++++
@ -43,7 +43,7 @@ https://review.openstack.org/#/c/468530/
aodh/templates/service-api.yaml | 39 ++ aodh/templates/service-api.yaml | 39 ++
aodh/templates/service-ingress-api.yaml | 20 + aodh/templates/service-ingress-api.yaml | 20 +
aodh/values.yaml | 671 +++++++++++++++++++++++++ aodh/values.yaml | 671 +++++++++++++++++++++++++
35 files changed, 2075 insertions(+) 35 files changed, 2073 insertions(+)
create mode 100644 aodh/Chart.yaml create mode 100644 aodh/Chart.yaml
create mode 100644 aodh/requirements.yaml create mode 100644 aodh/requirements.yaml
create mode 100644 aodh/templates/bin/_aodh-alarms-cleaner.sh.tpl create mode 100644 aodh/templates/bin/_aodh-alarms-cleaner.sh.tpl
@ -82,7 +82,7 @@ https://review.openstack.org/#/c/468530/
diff --git a/aodh/Chart.yaml b/aodh/Chart.yaml diff --git a/aodh/Chart.yaml b/aodh/Chart.yaml
new file mode 100644 new file mode 100644
index 00000000..6f666f0e index 0000000..6f666f0
--- /dev/null --- /dev/null
+++ b/aodh/Chart.yaml +++ b/aodh/Chart.yaml
@@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
@ -112,7 +112,7 @@ index 00000000..6f666f0e
+ - name: OpenStack-Helm Authors + - name: OpenStack-Helm Authors
diff --git a/aodh/requirements.yaml b/aodh/requirements.yaml diff --git a/aodh/requirements.yaml b/aodh/requirements.yaml
new file mode 100644 new file mode 100644
index 00000000..53782e69 index 0000000..53782e6
--- /dev/null --- /dev/null
+++ b/aodh/requirements.yaml +++ b/aodh/requirements.yaml
@@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
@ -136,7 +136,7 @@ index 00000000..53782e69
+ version: 0.1.0 + version: 0.1.0
diff --git a/aodh/templates/bin/_aodh-alarms-cleaner.sh.tpl b/aodh/templates/bin/_aodh-alarms-cleaner.sh.tpl diff --git a/aodh/templates/bin/_aodh-alarms-cleaner.sh.tpl b/aodh/templates/bin/_aodh-alarms-cleaner.sh.tpl
new file mode 100644 new file mode 100644
index 00000000..8ca0e7c5 index 0000000..8ca0e7c
--- /dev/null --- /dev/null
+++ b/aodh/templates/bin/_aodh-alarms-cleaner.sh.tpl +++ b/aodh/templates/bin/_aodh-alarms-cleaner.sh.tpl
@@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
@ -163,7 +163,7 @@ index 00000000..8ca0e7c5
+aodh-expirer +aodh-expirer
diff --git a/aodh/templates/bin/_aodh-api.sh.tpl b/aodh/templates/bin/_aodh-api.sh.tpl diff --git a/aodh/templates/bin/_aodh-api.sh.tpl b/aodh/templates/bin/_aodh-api.sh.tpl
new file mode 100644 new file mode 100644
index 00000000..708b3272 index 0000000..708b327
--- /dev/null --- /dev/null
+++ b/aodh/templates/bin/_aodh-api.sh.tpl +++ b/aodh/templates/bin/_aodh-api.sh.tpl
@@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
@ -208,7 +208,7 @@ index 00000000..708b3272
+$COMMAND +$COMMAND
diff --git a/aodh/templates/bin/_aodh-evaluator.sh.tpl b/aodh/templates/bin/_aodh-evaluator.sh.tpl diff --git a/aodh/templates/bin/_aodh-evaluator.sh.tpl b/aodh/templates/bin/_aodh-evaluator.sh.tpl
new file mode 100644 new file mode 100644
index 00000000..7c7b07b0 index 0000000..7c7b07b
--- /dev/null --- /dev/null
+++ b/aodh/templates/bin/_aodh-evaluator.sh.tpl +++ b/aodh/templates/bin/_aodh-evaluator.sh.tpl
@@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
@ -235,7 +235,7 @@ index 00000000..7c7b07b0
+exec aodh-evaluator --config-file=/etc/aodh/aodh.conf +exec aodh-evaluator --config-file=/etc/aodh/aodh.conf
diff --git a/aodh/templates/bin/_aodh-listener.sh.tpl b/aodh/templates/bin/_aodh-listener.sh.tpl diff --git a/aodh/templates/bin/_aodh-listener.sh.tpl b/aodh/templates/bin/_aodh-listener.sh.tpl
new file mode 100644 new file mode 100644
index 00000000..0abeba43 index 0000000..0abeba4
--- /dev/null --- /dev/null
+++ b/aodh/templates/bin/_aodh-listener.sh.tpl +++ b/aodh/templates/bin/_aodh-listener.sh.tpl
@@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
@ -262,7 +262,7 @@ index 00000000..0abeba43
+exec aodh-listener --config-file=/etc/aodh/aodh.conf +exec aodh-listener --config-file=/etc/aodh/aodh.conf
diff --git a/aodh/templates/bin/_aodh-notifier.sh.tpl b/aodh/templates/bin/_aodh-notifier.sh.tpl diff --git a/aodh/templates/bin/_aodh-notifier.sh.tpl b/aodh/templates/bin/_aodh-notifier.sh.tpl
new file mode 100644 new file mode 100644
index 00000000..b1b4f947 index 0000000..b1b4f94
--- /dev/null --- /dev/null
+++ b/aodh/templates/bin/_aodh-notifier.sh.tpl +++ b/aodh/templates/bin/_aodh-notifier.sh.tpl
@@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
@ -289,7 +289,7 @@ index 00000000..b1b4f947
+exec aodh-notifier --config-file=/etc/aodh/aodh.conf +exec aodh-notifier --config-file=/etc/aodh/aodh.conf
diff --git a/aodh/templates/bin/_aodh-test.sh.tpl b/aodh/templates/bin/_aodh-test.sh.tpl diff --git a/aodh/templates/bin/_aodh-test.sh.tpl b/aodh/templates/bin/_aodh-test.sh.tpl
new file mode 100644 new file mode 100644
index 00000000..fc95b06c index 0000000..fc95b06
--- /dev/null --- /dev/null
+++ b/aodh/templates/bin/_aodh-test.sh.tpl +++ b/aodh/templates/bin/_aodh-test.sh.tpl
@@ -0,0 +1,54 @@ @@ -0,0 +1,54 @@
@ -349,7 +349,7 @@ index 00000000..fc95b06c
+ +
diff --git a/aodh/templates/bin/_bootstrap.sh.tpl b/aodh/templates/bin/_bootstrap.sh.tpl diff --git a/aodh/templates/bin/_bootstrap.sh.tpl b/aodh/templates/bin/_bootstrap.sh.tpl
new file mode 100644 new file mode 100644
index 00000000..533c0a5a index 0000000..533c0a5
--- /dev/null --- /dev/null
+++ b/aodh/templates/bin/_bootstrap.sh.tpl +++ b/aodh/templates/bin/_bootstrap.sh.tpl
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -375,7 +375,7 @@ index 00000000..533c0a5a
+{{ .Values.bootstrap.script | default "echo 'Not Enabled'" }} +{{ .Values.bootstrap.script | default "echo 'Not Enabled'" }}
diff --git a/aodh/templates/bin/_db-sync.sh.tpl b/aodh/templates/bin/_db-sync.sh.tpl diff --git a/aodh/templates/bin/_db-sync.sh.tpl b/aodh/templates/bin/_db-sync.sh.tpl
new file mode 100644 new file mode 100644
index 00000000..7eb7bd3f index 0000000..7eb7bd3
--- /dev/null --- /dev/null
+++ b/aodh/templates/bin/_db-sync.sh.tpl +++ b/aodh/templates/bin/_db-sync.sh.tpl
@@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
@ -402,7 +402,7 @@ index 00000000..7eb7bd3f
+aodh-dbsync +aodh-dbsync
diff --git a/aodh/templates/configmap-bin.yaml b/aodh/templates/configmap-bin.yaml diff --git a/aodh/templates/configmap-bin.yaml b/aodh/templates/configmap-bin.yaml
new file mode 100644 new file mode 100644
index 00000000..3ee32e79 index 0000000..3ee32e7
--- /dev/null --- /dev/null
+++ b/aodh/templates/configmap-bin.yaml +++ b/aodh/templates/configmap-bin.yaml
@@ -0,0 +1,60 @@ @@ -0,0 +1,60 @@
@ -468,10 +468,10 @@ index 00000000..3ee32e79
+{{- end }} +{{- end }}
diff --git a/aodh/templates/configmap-etc.yaml b/aodh/templates/configmap-etc.yaml diff --git a/aodh/templates/configmap-etc.yaml b/aodh/templates/configmap-etc.yaml
new file mode 100644 new file mode 100644
index 00000000..81f4e1fb index 0000000..24e4e08
--- /dev/null --- /dev/null
+++ b/aodh/templates/configmap-etc.yaml +++ b/aodh/templates/configmap-etc.yaml
@@ -0,0 +1,123 @@ @@ -0,0 +1,121 @@
+{{/* +{{/*
+Copyright 2017 The Openstack-Helm Authors. +Copyright 2017 The Openstack-Helm Authors.
+ +
@ -581,24 +581,21 @@ index 00000000..81f4e1fb
+{{- end -}} +{{- end -}}
+--- +---
+apiVersion: v1 +apiVersion: v1
+kind: ConfigMap +kind: Secret
+metadata: +metadata:
+ name: aodh-etc + name: aodh-etc
+type: Opaque
+data: +data:
+ aodh.conf: | + aodh.conf: {{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.aodh | b64enc }}
+{{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.aodh | indent 4 }} + logging.conf: {{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.logging | b64enc }}
+ logging.conf: | + api-paste.ini: {{ include "helm-toolkit.utils.to_ini" .Values.conf.paste | b64enc }}
+{{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.logging | indent 4 }} + policy.json: {{ toJson .Values.conf.policy | b64enc }}
+ api-paste.ini: | +{{ include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.wsgi_aodh "key" "wsgi-aodh.conf" "format" "Secret" ) | indent 2 }}
+{{ include "helm-toolkit.utils.to_ini" .Values.conf.paste | indent 4 }}
+ policy.json: |
+{{ toJson .Values.conf.policy | indent 4 }}
+{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.wsgi_aodh "key" "wsgi-aodh.conf" ) | indent 2 }}
+{{- end }} +{{- end }}
\ No newline at end of file +
diff --git a/aodh/templates/cron-job-alarms-cleaner.yaml b/aodh/templates/cron-job-alarms-cleaner.yaml diff --git a/aodh/templates/cron-job-alarms-cleaner.yaml b/aodh/templates/cron-job-alarms-cleaner.yaml
new file mode 100644 new file mode 100644
index 00000000..6862c5f3 index 0000000..efb839b
--- /dev/null --- /dev/null
+++ b/aodh/templates/cron-job-alarms-cleaner.yaml +++ b/aodh/templates/cron-job-alarms-cleaner.yaml
@@ -0,0 +1,84 @@ @@ -0,0 +1,84 @@
@ -677,8 +674,8 @@ index 00000000..6862c5f3
+ - name: pod-etc-aodh + - name: pod-etc-aodh
+ emptyDir: {} + emptyDir: {}
+ - name: aodh-etc + - name: aodh-etc
+ configMap: + secret:
+ name: aodh-etc + secretName: aodh-etc
+ defaultMode: 0444 + defaultMode: 0444
+ - name: aodh-bin + - name: aodh-bin
+ configMap: + configMap:
@ -688,7 +685,7 @@ index 00000000..6862c5f3
+{{- end }} +{{- end }}
diff --git a/aodh/templates/deployment-api.yaml b/aodh/templates/deployment-api.yaml diff --git a/aodh/templates/deployment-api.yaml b/aodh/templates/deployment-api.yaml
new file mode 100644 new file mode 100644
index 00000000..61902610 index 0000000..cfe697b
--- /dev/null --- /dev/null
+++ b/aodh/templates/deployment-api.yaml +++ b/aodh/templates/deployment-api.yaml
@@ -0,0 +1,121 @@ @@ -0,0 +1,121 @@
@ -804,8 +801,8 @@ index 00000000..61902610
+ - name: pod-etc-aodh + - name: pod-etc-aodh
+ emptyDir: {} + emptyDir: {}
+ - name: aodh-etc + - name: aodh-etc
+ configMap: + secret:
+ name: aodh-etc + secretName: aodh-etc
+ defaultMode: 0444 + defaultMode: 0444
+ - name: aodh-bin + - name: aodh-bin
+ configMap: + configMap:
@ -813,10 +810,9 @@ index 00000000..61902610
+ defaultMode: 0555 + defaultMode: 0555
+{{ if $mounts_aodh_api.volumes }}{{ toYaml $mounts_aodh_api.volumes | indent 8 }}{{ end }} +{{ if $mounts_aodh_api.volumes }}{{ toYaml $mounts_aodh_api.volumes | indent 8 }}{{ end }}
+{{- end }} +{{- end }}
\ No newline at end of file
diff --git a/aodh/templates/deployment-evaluator.yaml b/aodh/templates/deployment-evaluator.yaml diff --git a/aodh/templates/deployment-evaluator.yaml b/aodh/templates/deployment-evaluator.yaml
new file mode 100644 new file mode 100644
index 00000000..175f1421 index 0000000..daab9c1
--- /dev/null --- /dev/null
+++ b/aodh/templates/deployment-evaluator.yaml +++ b/aodh/templates/deployment-evaluator.yaml
@@ -0,0 +1,101 @@ @@ -0,0 +1,101 @@
@ -912,8 +908,8 @@ index 00000000..175f1421
+ - name: pod-etc-aodh + - name: pod-etc-aodh
+ emptyDir: {} + emptyDir: {}
+ - name: aodh-etc + - name: aodh-etc
+ configMap: + secret:
+ name: aodh-etc + secretName: aodh-etc
+ defaultMode: 0444 + defaultMode: 0444
+ - name: aodh-bin + - name: aodh-bin
+ configMap: + configMap:
@ -923,7 +919,7 @@ index 00000000..175f1421
+{{- end }} +{{- end }}
diff --git a/aodh/templates/deployment-listener.yaml b/aodh/templates/deployment-listener.yaml diff --git a/aodh/templates/deployment-listener.yaml b/aodh/templates/deployment-listener.yaml
new file mode 100644 new file mode 100644
index 00000000..ca1dc191 index 0000000..5f90c75
--- /dev/null --- /dev/null
+++ b/aodh/templates/deployment-listener.yaml +++ b/aodh/templates/deployment-listener.yaml
@@ -0,0 +1,102 @@ @@ -0,0 +1,102 @@
@ -1019,8 +1015,8 @@ index 00000000..ca1dc191
+ - name: pod-etc-aodh + - name: pod-etc-aodh
+ emptyDir: {} + emptyDir: {}
+ - name: aodh-etc + - name: aodh-etc
+ configMap: + secret:
+ name: aodh-etc + secretName: aodh-etc
+ defaultMode: 0444 + defaultMode: 0444
+ - name: aodh-bin + - name: aodh-bin
+ configMap: + configMap:
@ -1031,7 +1027,7 @@ index 00000000..ca1dc191
+ +
diff --git a/aodh/templates/deployment-notifier.yaml b/aodh/templates/deployment-notifier.yaml diff --git a/aodh/templates/deployment-notifier.yaml b/aodh/templates/deployment-notifier.yaml
new file mode 100644 new file mode 100644
index 00000000..068d83a9 index 0000000..ee21422
--- /dev/null --- /dev/null
+++ b/aodh/templates/deployment-notifier.yaml +++ b/aodh/templates/deployment-notifier.yaml
@@ -0,0 +1,103 @@ @@ -0,0 +1,103 @@
@ -1128,8 +1124,8 @@ index 00000000..068d83a9
+ - name: pod-etc-aodh + - name: pod-etc-aodh
+ emptyDir: {} + emptyDir: {}
+ - name: aodh-etc + - name: aodh-etc
+ configMap: + secret:
+ name: aodh-etc + secretName: aodh-etc
+ defaultMode: 0444 + defaultMode: 0444
+ - name: aodh-bin + - name: aodh-bin
+ configMap: + configMap:
@ -1140,7 +1136,7 @@ index 00000000..068d83a9
+ +
diff --git a/aodh/templates/ingress-api.yaml b/aodh/templates/ingress-api.yaml diff --git a/aodh/templates/ingress-api.yaml b/aodh/templates/ingress-api.yaml
new file mode 100644 new file mode 100644
index 00000000..fe3f31c4 index 0000000..fe3f31c
--- /dev/null --- /dev/null
+++ b/aodh/templates/ingress-api.yaml +++ b/aodh/templates/ingress-api.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1166,7 +1162,7 @@ index 00000000..fe3f31c4
+{{- end }} +{{- end }}
diff --git a/aodh/templates/job-bootstrap.yaml b/aodh/templates/job-bootstrap.yaml diff --git a/aodh/templates/job-bootstrap.yaml b/aodh/templates/job-bootstrap.yaml
new file mode 100644 new file mode 100644
index 00000000..17cea12b index 0000000..17cea12
--- /dev/null --- /dev/null
+++ b/aodh/templates/job-bootstrap.yaml +++ b/aodh/templates/job-bootstrap.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1192,7 +1188,7 @@ index 00000000..17cea12b
+{{- end }} +{{- end }}
diff --git a/aodh/templates/job-db-drop.yaml b/aodh/templates/job-db-drop.yaml diff --git a/aodh/templates/job-db-drop.yaml b/aodh/templates/job-db-drop.yaml
new file mode 100644 new file mode 100644
index 00000000..8c2d80c3 index 0000000..8c2d80c
--- /dev/null --- /dev/null
+++ b/aodh/templates/job-db-drop.yaml +++ b/aodh/templates/job-db-drop.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1219,7 +1215,7 @@ index 00000000..8c2d80c3
\ No newline at end of file \ No newline at end of file
diff --git a/aodh/templates/job-db-init.yaml b/aodh/templates/job-db-init.yaml diff --git a/aodh/templates/job-db-init.yaml b/aodh/templates/job-db-init.yaml
new file mode 100644 new file mode 100644
index 00000000..5d14fb75 index 0000000..5d14fb7
--- /dev/null --- /dev/null
+++ b/aodh/templates/job-db-init.yaml +++ b/aodh/templates/job-db-init.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1245,7 +1241,7 @@ index 00000000..5d14fb75
+{{- end }} +{{- end }}
diff --git a/aodh/templates/job-db-sync.yaml b/aodh/templates/job-db-sync.yaml diff --git a/aodh/templates/job-db-sync.yaml b/aodh/templates/job-db-sync.yaml
new file mode 100644 new file mode 100644
index 00000000..2428c7f2 index 0000000..2428c7f
--- /dev/null --- /dev/null
+++ b/aodh/templates/job-db-sync.yaml +++ b/aodh/templates/job-db-sync.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1271,7 +1267,7 @@ index 00000000..2428c7f2
+{{- end }} +{{- end }}
diff --git a/aodh/templates/job-image-repo-sync.yaml b/aodh/templates/job-image-repo-sync.yaml diff --git a/aodh/templates/job-image-repo-sync.yaml b/aodh/templates/job-image-repo-sync.yaml
new file mode 100644 new file mode 100644
index 00000000..0eeef1ed index 0000000..0eeef1e
--- /dev/null --- /dev/null
+++ b/aodh/templates/job-image-repo-sync.yaml +++ b/aodh/templates/job-image-repo-sync.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1297,7 +1293,7 @@ index 00000000..0eeef1ed
+{{- end }} +{{- end }}
diff --git a/aodh/templates/job-ks-endpoints.yaml b/aodh/templates/job-ks-endpoints.yaml diff --git a/aodh/templates/job-ks-endpoints.yaml b/aodh/templates/job-ks-endpoints.yaml
new file mode 100644 new file mode 100644
index 00000000..7fc30c2b index 0000000..7fc30c2
--- /dev/null --- /dev/null
+++ b/aodh/templates/job-ks-endpoints.yaml +++ b/aodh/templates/job-ks-endpoints.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1323,7 +1319,7 @@ index 00000000..7fc30c2b
+{{- end }} +{{- end }}
diff --git a/aodh/templates/job-ks-service.yaml b/aodh/templates/job-ks-service.yaml diff --git a/aodh/templates/job-ks-service.yaml b/aodh/templates/job-ks-service.yaml
new file mode 100644 new file mode 100644
index 00000000..b4120b3c index 0000000..b4120b3
--- /dev/null --- /dev/null
+++ b/aodh/templates/job-ks-service.yaml +++ b/aodh/templates/job-ks-service.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1349,7 +1345,7 @@ index 00000000..b4120b3c
+{{- end }} +{{- end }}
diff --git a/aodh/templates/job-ks-user.yaml b/aodh/templates/job-ks-user.yaml diff --git a/aodh/templates/job-ks-user.yaml b/aodh/templates/job-ks-user.yaml
new file mode 100644 new file mode 100644
index 00000000..96189310 index 0000000..9618931
--- /dev/null --- /dev/null
+++ b/aodh/templates/job-ks-user.yaml +++ b/aodh/templates/job-ks-user.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1375,7 +1371,7 @@ index 00000000..96189310
+{{- end }} +{{- end }}
diff --git a/aodh/templates/job-rabbit-init.yaml b/aodh/templates/job-rabbit-init.yaml diff --git a/aodh/templates/job-rabbit-init.yaml b/aodh/templates/job-rabbit-init.yaml
new file mode 100644 new file mode 100644
index 00000000..06cc5a71 index 0000000..06cc5a7
--- /dev/null --- /dev/null
+++ b/aodh/templates/job-rabbit-init.yaml +++ b/aodh/templates/job-rabbit-init.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1401,7 +1397,7 @@ index 00000000..06cc5a71
+{{- end }} +{{- end }}
diff --git a/aodh/templates/pdb-api.yaml b/aodh/templates/pdb-api.yaml diff --git a/aodh/templates/pdb-api.yaml b/aodh/templates/pdb-api.yaml
new file mode 100644 new file mode 100644
index 00000000..1892708e index 0000000..1892708
--- /dev/null --- /dev/null
+++ b/aodh/templates/pdb-api.yaml +++ b/aodh/templates/pdb-api.yaml
@@ -0,0 +1,29 @@ @@ -0,0 +1,29 @@
@ -1436,7 +1432,7 @@ index 00000000..1892708e
+{{- end }} +{{- end }}
diff --git a/aodh/templates/pod-aodh-test.yaml b/aodh/templates/pod-aodh-test.yaml diff --git a/aodh/templates/pod-aodh-test.yaml b/aodh/templates/pod-aodh-test.yaml
new file mode 100644 new file mode 100644
index 00000000..9254c922 index 0000000..a12ec30
--- /dev/null --- /dev/null
+++ b/aodh/templates/pod-aodh-test.yaml +++ b/aodh/templates/pod-aodh-test.yaml
@@ -0,0 +1,72 @@ @@ -0,0 +1,72 @@
@ -1503,8 +1499,8 @@ index 00000000..9254c922
+{{ if $mounts_tests.volumeMounts }}{{ toYaml $mounts_tests.volumeMounts | indent 8 }}{{ end }} +{{ if $mounts_tests.volumeMounts }}{{ toYaml $mounts_tests.volumeMounts | indent 8 }}{{ end }}
+ volumes: + volumes:
+ - name: aodh-etc + - name: aodh-etc
+ configMap: + secret:
+ name: aodh-etc + secretName: aodh-etc
+ defaultMode: 0444 + defaultMode: 0444
+ - name: aodh-bin + - name: aodh-bin
+ configMap: + configMap:
@ -1514,7 +1510,7 @@ index 00000000..9254c922
+{{- end }} +{{- end }}
diff --git a/aodh/templates/secret-db.yaml b/aodh/templates/secret-db.yaml diff --git a/aodh/templates/secret-db.yaml b/aodh/templates/secret-db.yaml
new file mode 100644 new file mode 100644
index 00000000..85568c1a index 0000000..85568c1
--- /dev/null --- /dev/null
+++ b/aodh/templates/secret-db.yaml +++ b/aodh/templates/secret-db.yaml
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
@ -1551,7 +1547,7 @@ index 00000000..85568c1a
\ No newline at end of file \ No newline at end of file
diff --git a/aodh/templates/secret-keystone.yaml b/aodh/templates/secret-keystone.yaml diff --git a/aodh/templates/secret-keystone.yaml b/aodh/templates/secret-keystone.yaml
new file mode 100644 new file mode 100644
index 00000000..aef25b2e index 0000000..aef25b2
--- /dev/null --- /dev/null
+++ b/aodh/templates/secret-keystone.yaml +++ b/aodh/templates/secret-keystone.yaml
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
@ -1587,7 +1583,7 @@ index 00000000..aef25b2e
+{{- end }} +{{- end }}
diff --git a/aodh/templates/secret-rabbitmq.yaml b/aodh/templates/secret-rabbitmq.yaml diff --git a/aodh/templates/secret-rabbitmq.yaml b/aodh/templates/secret-rabbitmq.yaml
new file mode 100644 new file mode 100644
index 00000000..ad65ae34 index 0000000..ad65ae3
--- /dev/null --- /dev/null
+++ b/aodh/templates/secret-rabbitmq.yaml +++ b/aodh/templates/secret-rabbitmq.yaml
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
@ -1623,7 +1619,7 @@ index 00000000..ad65ae34
+{{- end }} +{{- end }}
diff --git a/aodh/templates/service-api.yaml b/aodh/templates/service-api.yaml diff --git a/aodh/templates/service-api.yaml b/aodh/templates/service-api.yaml
new file mode 100644 new file mode 100644
index 00000000..bb9083ef index 0000000..bb9083e
--- /dev/null --- /dev/null
+++ b/aodh/templates/service-api.yaml +++ b/aodh/templates/service-api.yaml
@@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
@ -1668,7 +1664,7 @@ index 00000000..bb9083ef
+{{- end }} +{{- end }}
diff --git a/aodh/templates/service-ingress-api.yaml b/aodh/templates/service-ingress-api.yaml diff --git a/aodh/templates/service-ingress-api.yaml b/aodh/templates/service-ingress-api.yaml
new file mode 100644 new file mode 100644
index 00000000..c1b96584 index 0000000..c1b9658
--- /dev/null --- /dev/null
+++ b/aodh/templates/service-ingress-api.yaml +++ b/aodh/templates/service-ingress-api.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1694,7 +1690,7 @@ index 00000000..c1b96584
+{{- end }} +{{- end }}
diff --git a/aodh/values.yaml b/aodh/values.yaml diff --git a/aodh/values.yaml b/aodh/values.yaml
new file mode 100644 new file mode 100644
index 00000000..bd7a736f index 0000000..bd7a736
--- /dev/null --- /dev/null
+++ b/aodh/values.yaml +++ b/aodh/values.yaml
@@ -0,0 +1,671 @@ @@ -0,0 +1,671 @@
@ -2370,5 +2366,5 @@ index 00000000..bd7a736f
+ service_ingress_api: true + service_ingress_api: true
+ +
-- --
2.16.5 1.8.3.1

View File

@ -1,7 +1,7 @@
From e52f311273dd9674cde764cf8f1c3bc02e8d0e00 Mon Sep 17 00:00:00 2001 From 8b9997083fed316cc5be1316868c2e58a9ba5197 Mon Sep 17 00:00:00 2001
From: Angie Wang <angie.wang@windriver.com> From: Angie Wang <angie.wang@windriver.com>
Date: Wed, 14 Nov 2018 11:58:17 -0500 Date: Wed, 14 Nov 2018 11:58:17 -0500
Subject: [PATCH 3/3] Add Panko Chart Subject: [PATCH 1/1] Add Panko Chart
This commit adds a helm chart to deploy Panko. This commit adds a helm chart to deploy Panko.
@ -16,7 +16,7 @@ https://review.openstack.org/#/c/469180/
panko/templates/bin/_panko-events-cleaner.sh.tpl | 21 + panko/templates/bin/_panko-events-cleaner.sh.tpl | 21 +
panko/templates/bin/_panko-test.sh.tpl | 29 ++ panko/templates/bin/_panko-test.sh.tpl | 29 ++
panko/templates/configmap-bin.yaml | 51 +++ panko/templates/configmap-bin.yaml | 51 +++
panko/templates/configmap-etc.yaml | 91 ++++ panko/templates/configmap-etc.yaml | 88 ++++
panko/templates/cron-job-events-cleaner.yaml | 84 ++++ panko/templates/cron-job-events-cleaner.yaml | 84 ++++
panko/templates/deployment-api.yaml | 121 +++++ panko/templates/deployment-api.yaml | 121 +++++
panko/templates/ingress-api.yaml | 20 + panko/templates/ingress-api.yaml | 20 +
@ -35,7 +35,7 @@ https://review.openstack.org/#/c/469180/
panko/templates/service-api.yaml | 39 ++ panko/templates/service-api.yaml | 39 ++
panko/templates/service-ingress-api.yaml | 20 + panko/templates/service-ingress-api.yaml | 20 +
panko/values.yaml | 535 +++++++++++++++++++++++ panko/values.yaml | 535 +++++++++++++++++++++++
27 files changed, 1455 insertions(+) 27 files changed, 1452 insertions(+)
create mode 100755 panko/Chart.yaml create mode 100755 panko/Chart.yaml
create mode 100755 panko/requirements.yaml create mode 100755 panko/requirements.yaml
create mode 100755 panko/templates/bin/_bootstrap.sh.tpl create mode 100755 panko/templates/bin/_bootstrap.sh.tpl
@ -66,7 +66,7 @@ https://review.openstack.org/#/c/469180/
diff --git a/panko/Chart.yaml b/panko/Chart.yaml diff --git a/panko/Chart.yaml b/panko/Chart.yaml
new file mode 100755 new file mode 100755
index 00000000..7c5842ac index 0000000..7c5842a
--- /dev/null --- /dev/null
+++ b/panko/Chart.yaml +++ b/panko/Chart.yaml
@@ -0,0 +1,24 @@ @@ -0,0 +1,24 @@
@ -96,7 +96,7 @@ index 00000000..7c5842ac
+ - name: OpenStack-Helm Authors + - name: OpenStack-Helm Authors
diff --git a/panko/requirements.yaml b/panko/requirements.yaml diff --git a/panko/requirements.yaml b/panko/requirements.yaml
new file mode 100755 new file mode 100755
index 00000000..53782e69 index 0000000..53782e6
--- /dev/null --- /dev/null
+++ b/panko/requirements.yaml +++ b/panko/requirements.yaml
@@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
@ -120,7 +120,7 @@ index 00000000..53782e69
+ version: 0.1.0 + version: 0.1.0
diff --git a/panko/templates/bin/_bootstrap.sh.tpl b/panko/templates/bin/_bootstrap.sh.tpl diff --git a/panko/templates/bin/_bootstrap.sh.tpl b/panko/templates/bin/_bootstrap.sh.tpl
new file mode 100755 new file mode 100755
index 00000000..81a93b42 index 0000000..81a93b4
--- /dev/null --- /dev/null
+++ b/panko/templates/bin/_bootstrap.sh.tpl +++ b/panko/templates/bin/_bootstrap.sh.tpl
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -147,7 +147,7 @@ index 00000000..81a93b42
\ No newline at end of file \ No newline at end of file
diff --git a/panko/templates/bin/_db-sync.sh.tpl b/panko/templates/bin/_db-sync.sh.tpl diff --git a/panko/templates/bin/_db-sync.sh.tpl b/panko/templates/bin/_db-sync.sh.tpl
new file mode 100755 new file mode 100755
index 00000000..8ca583a9 index 0000000..8ca583a
--- /dev/null --- /dev/null
+++ b/panko/templates/bin/_db-sync.sh.tpl +++ b/panko/templates/bin/_db-sync.sh.tpl
@@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
@ -174,7 +174,7 @@ index 00000000..8ca583a9
+exec panko-dbsync +exec panko-dbsync
diff --git a/panko/templates/bin/_panko-api.sh.tpl b/panko/templates/bin/_panko-api.sh.tpl diff --git a/panko/templates/bin/_panko-api.sh.tpl b/panko/templates/bin/_panko-api.sh.tpl
new file mode 100755 new file mode 100755
index 00000000..bd08a438 index 0000000..bd08a43
--- /dev/null --- /dev/null
+++ b/panko/templates/bin/_panko-api.sh.tpl +++ b/panko/templates/bin/_panko-api.sh.tpl
@@ -0,0 +1,40 @@ @@ -0,0 +1,40 @@
@ -220,7 +220,7 @@ index 00000000..bd08a438
+ +
diff --git a/panko/templates/bin/_panko-events-cleaner.sh.tpl b/panko/templates/bin/_panko-events-cleaner.sh.tpl diff --git a/panko/templates/bin/_panko-events-cleaner.sh.tpl b/panko/templates/bin/_panko-events-cleaner.sh.tpl
new file mode 100755 new file mode 100755
index 00000000..10f3a863 index 0000000..10f3a86
--- /dev/null --- /dev/null
+++ b/panko/templates/bin/_panko-events-cleaner.sh.tpl +++ b/panko/templates/bin/_panko-events-cleaner.sh.tpl
@@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
@ -247,7 +247,7 @@ index 00000000..10f3a863
+panko-expirer +panko-expirer
diff --git a/panko/templates/bin/_panko-test.sh.tpl b/panko/templates/bin/_panko-test.sh.tpl diff --git a/panko/templates/bin/_panko-test.sh.tpl b/panko/templates/bin/_panko-test.sh.tpl
new file mode 100755 new file mode 100755
index 00000000..28273f9f index 0000000..28273f9
--- /dev/null --- /dev/null
+++ b/panko/templates/bin/_panko-test.sh.tpl +++ b/panko/templates/bin/_panko-test.sh.tpl
@@ -0,0 +1,29 @@ @@ -0,0 +1,29 @@
@ -282,7 +282,7 @@ index 00000000..28273f9f
+exit 0 +exit 0
diff --git a/panko/templates/configmap-bin.yaml b/panko/templates/configmap-bin.yaml diff --git a/panko/templates/configmap-bin.yaml b/panko/templates/configmap-bin.yaml
new file mode 100755 new file mode 100755
index 00000000..2eb73f48 index 0000000..2eb73f4
--- /dev/null --- /dev/null
+++ b/panko/templates/configmap-bin.yaml +++ b/panko/templates/configmap-bin.yaml
@@ -0,0 +1,51 @@ @@ -0,0 +1,51 @@
@ -339,10 +339,10 @@ index 00000000..2eb73f48
+{{- end }} +{{- end }}
diff --git a/panko/templates/configmap-etc.yaml b/panko/templates/configmap-etc.yaml diff --git a/panko/templates/configmap-etc.yaml b/panko/templates/configmap-etc.yaml
new file mode 100755 new file mode 100755
index 00000000..f2d02c8c index 0000000..ed49927
--- /dev/null --- /dev/null
+++ b/panko/templates/configmap-etc.yaml +++ b/panko/templates/configmap-etc.yaml
@@ -0,0 +1,91 @@ @@ -0,0 +1,88 @@
+{{/* +{{/*
+Copyright 2017 The Openstack-Helm Authors. +Copyright 2017 The Openstack-Helm Authors.
+ +
@ -420,23 +420,20 @@ index 00000000..f2d02c8c
+{{- end -}} +{{- end -}}
+--- +---
+apiVersion: v1 +apiVersion: v1
+kind: ConfigMap +kind: Secret
+metadata: +metadata:
+ name: panko-etc + name: panko-etc
+type: Opaque
+data: +data:
+ panko.conf: | + panko.conf: {{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.panko | b64enc }}
+{{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.panko | indent 4 }} + logging.conf: {{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.logging | b64enc }}
+ logging.conf: | + api_paste.ini: {{ include "helm-toolkit.utils.to_ini" .Values.conf.paste | b64enc }}
+{{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.logging | indent 4 }} + policy.json: {{ toJson .Values.conf.policy | b64enc }}
+ api_paste.ini: | +{{ include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.wsgi_panko "key" "wsgi-panko.conf" "format" "Secret" ) | indent 2 }}
+{{ include "helm-toolkit.utils.to_ini" .Values.conf.paste | indent 4 }}
+ policy.json: |
+{{ toJson .Values.conf.policy | indent 4 }}
+{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.wsgi_panko "key" "wsgi-panko.conf" ) | indent 2 }}
+{{- end }} +{{- end }}
diff --git a/panko/templates/cron-job-events-cleaner.yaml b/panko/templates/cron-job-events-cleaner.yaml diff --git a/panko/templates/cron-job-events-cleaner.yaml b/panko/templates/cron-job-events-cleaner.yaml
new file mode 100755 new file mode 100755
index 00000000..b0794b50 index 0000000..941404c
--- /dev/null --- /dev/null
+++ b/panko/templates/cron-job-events-cleaner.yaml +++ b/panko/templates/cron-job-events-cleaner.yaml
@@ -0,0 +1,84 @@ @@ -0,0 +1,84 @@
@ -515,8 +512,8 @@ index 00000000..b0794b50
+ - name: etcpanko + - name: etcpanko
+ emptyDir: {} + emptyDir: {}
+ - name: panko-etc + - name: panko-etc
+ configMap: + secret:
+ name: panko-etc + secretName: panko-etc
+ defaultMode: 0444 + defaultMode: 0444
+ - name: panko-bin + - name: panko-bin
+ configMap: + configMap:
@ -526,7 +523,7 @@ index 00000000..b0794b50
+{{- end }} +{{- end }}
diff --git a/panko/templates/deployment-api.yaml b/panko/templates/deployment-api.yaml diff --git a/panko/templates/deployment-api.yaml b/panko/templates/deployment-api.yaml
new file mode 100755 new file mode 100755
index 00000000..93c3ada2 index 0000000..8f40424
--- /dev/null --- /dev/null
+++ b/panko/templates/deployment-api.yaml +++ b/panko/templates/deployment-api.yaml
@@ -0,0 +1,121 @@ @@ -0,0 +1,121 @@
@ -642,8 +639,8 @@ index 00000000..93c3ada2
+ - name: etcpanko + - name: etcpanko
+ emptyDir: {} + emptyDir: {}
+ - name: panko-etc + - name: panko-etc
+ configMap: + secret:
+ name: panko-etc + secretName: panko-etc
+ defaultMode: 0444 + defaultMode: 0444
+ - name: panko-bin + - name: panko-bin
+ configMap: + configMap:
@ -653,7 +650,7 @@ index 00000000..93c3ada2
+{{- end }} +{{- end }}
diff --git a/panko/templates/ingress-api.yaml b/panko/templates/ingress-api.yaml diff --git a/panko/templates/ingress-api.yaml b/panko/templates/ingress-api.yaml
new file mode 100755 new file mode 100755
index 00000000..d6d0e88a index 0000000..d6d0e88
--- /dev/null --- /dev/null
+++ b/panko/templates/ingress-api.yaml +++ b/panko/templates/ingress-api.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -679,7 +676,7 @@ index 00000000..d6d0e88a
+{{- end }} +{{- end }}
diff --git a/panko/templates/job-bootstrap.yaml b/panko/templates/job-bootstrap.yaml diff --git a/panko/templates/job-bootstrap.yaml b/panko/templates/job-bootstrap.yaml
new file mode 100755 new file mode 100755
index 00000000..7321d4ba index 0000000..7321d4b
--- /dev/null --- /dev/null
+++ b/panko/templates/job-bootstrap.yaml +++ b/panko/templates/job-bootstrap.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -705,7 +702,7 @@ index 00000000..7321d4ba
+{{- end }} +{{- end }}
diff --git a/panko/templates/job-db-drop.yaml b/panko/templates/job-db-drop.yaml diff --git a/panko/templates/job-db-drop.yaml b/panko/templates/job-db-drop.yaml
new file mode 100755 new file mode 100755
index 00000000..7e50dbe0 index 0000000..7e50dbe
--- /dev/null --- /dev/null
+++ b/panko/templates/job-db-drop.yaml +++ b/panko/templates/job-db-drop.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -732,7 +729,7 @@ index 00000000..7e50dbe0
\ No newline at end of file \ No newline at end of file
diff --git a/panko/templates/job-db-init.yaml b/panko/templates/job-db-init.yaml diff --git a/panko/templates/job-db-init.yaml b/panko/templates/job-db-init.yaml
new file mode 100755 new file mode 100755
index 00000000..22f4ddb6 index 0000000..22f4ddb
--- /dev/null --- /dev/null
+++ b/panko/templates/job-db-init.yaml +++ b/panko/templates/job-db-init.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -759,7 +756,7 @@ index 00000000..22f4ddb6
\ No newline at end of file \ No newline at end of file
diff --git a/panko/templates/job-db-sync.yaml b/panko/templates/job-db-sync.yaml diff --git a/panko/templates/job-db-sync.yaml b/panko/templates/job-db-sync.yaml
new file mode 100755 new file mode 100755
index 00000000..4b2fe735 index 0000000..4b2fe73
--- /dev/null --- /dev/null
+++ b/panko/templates/job-db-sync.yaml +++ b/panko/templates/job-db-sync.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -786,7 +783,7 @@ index 00000000..4b2fe735
\ No newline at end of file \ No newline at end of file
diff --git a/panko/templates/job-image-repo-sync.yaml b/panko/templates/job-image-repo-sync.yaml diff --git a/panko/templates/job-image-repo-sync.yaml b/panko/templates/job-image-repo-sync.yaml
new file mode 100755 new file mode 100755
index 00000000..8faed5ba index 0000000..8faed5b
--- /dev/null --- /dev/null
+++ b/panko/templates/job-image-repo-sync.yaml +++ b/panko/templates/job-image-repo-sync.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -813,7 +810,7 @@ index 00000000..8faed5ba
\ No newline at end of file \ No newline at end of file
diff --git a/panko/templates/job-ks-endpoints.yaml b/panko/templates/job-ks-endpoints.yaml diff --git a/panko/templates/job-ks-endpoints.yaml b/panko/templates/job-ks-endpoints.yaml
new file mode 100755 new file mode 100755
index 00000000..77457ba6 index 0000000..77457ba
--- /dev/null --- /dev/null
+++ b/panko/templates/job-ks-endpoints.yaml +++ b/panko/templates/job-ks-endpoints.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -840,7 +837,7 @@ index 00000000..77457ba6
\ No newline at end of file \ No newline at end of file
diff --git a/panko/templates/job-ks-service.yaml b/panko/templates/job-ks-service.yaml diff --git a/panko/templates/job-ks-service.yaml b/panko/templates/job-ks-service.yaml
new file mode 100755 new file mode 100755
index 00000000..15315648 index 0000000..1531564
--- /dev/null --- /dev/null
+++ b/panko/templates/job-ks-service.yaml +++ b/panko/templates/job-ks-service.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -867,7 +864,7 @@ index 00000000..15315648
\ No newline at end of file \ No newline at end of file
diff --git a/panko/templates/job-ks-user.yaml b/panko/templates/job-ks-user.yaml diff --git a/panko/templates/job-ks-user.yaml b/panko/templates/job-ks-user.yaml
new file mode 100755 new file mode 100755
index 00000000..bff96ed6 index 0000000..bff96ed
--- /dev/null --- /dev/null
+++ b/panko/templates/job-ks-user.yaml +++ b/panko/templates/job-ks-user.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -894,7 +891,7 @@ index 00000000..bff96ed6
\ No newline at end of file \ No newline at end of file
diff --git a/panko/templates/pdb-api.yaml b/panko/templates/pdb-api.yaml diff --git a/panko/templates/pdb-api.yaml b/panko/templates/pdb-api.yaml
new file mode 100755 new file mode 100755
index 00000000..fc6fcd0e index 0000000..fc6fcd0
--- /dev/null --- /dev/null
+++ b/panko/templates/pdb-api.yaml +++ b/panko/templates/pdb-api.yaml
@@ -0,0 +1,29 @@ @@ -0,0 +1,29 @@
@ -929,7 +926,7 @@ index 00000000..fc6fcd0e
+{{- end }} +{{- end }}
diff --git a/panko/templates/pod-panko-test.yaml b/panko/templates/pod-panko-test.yaml diff --git a/panko/templates/pod-panko-test.yaml b/panko/templates/pod-panko-test.yaml
new file mode 100755 new file mode 100755
index 00000000..2acc43a2 index 0000000..cf162bf
--- /dev/null --- /dev/null
+++ b/panko/templates/pod-panko-test.yaml +++ b/panko/templates/pod-panko-test.yaml
@@ -0,0 +1,72 @@ @@ -0,0 +1,72 @@
@ -996,8 +993,8 @@ index 00000000..2acc43a2
+{{ if $mounts_tests.volumeMounts }}{{ toYaml $mounts_tests.volumeMounts | indent 8 }}{{ end }} +{{ if $mounts_tests.volumeMounts }}{{ toYaml $mounts_tests.volumeMounts | indent 8 }}{{ end }}
+ volumes: + volumes:
+ - name: panko-etc + - name: panko-etc
+ configMap: + secret:
+ name: panko-etc + secretName: panko-etc
+ defaultMode: 0444 + defaultMode: 0444
+ - name: panko-bin + - name: panko-bin
+ configMap: + configMap:
@ -1007,7 +1004,7 @@ index 00000000..2acc43a2
+{{- end }} +{{- end }}
diff --git a/panko/templates/secret-db.yaml b/panko/templates/secret-db.yaml diff --git a/panko/templates/secret-db.yaml b/panko/templates/secret-db.yaml
new file mode 100755 new file mode 100755
index 00000000..58edac4c index 0000000..58edac4
--- /dev/null --- /dev/null
+++ b/panko/templates/secret-db.yaml +++ b/panko/templates/secret-db.yaml
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
@ -1044,7 +1041,7 @@ index 00000000..58edac4c
\ No newline at end of file \ No newline at end of file
diff --git a/panko/templates/secret-keystone.yaml b/panko/templates/secret-keystone.yaml diff --git a/panko/templates/secret-keystone.yaml b/panko/templates/secret-keystone.yaml
new file mode 100755 new file mode 100755
index 00000000..9b44ceb2 index 0000000..9b44ceb
--- /dev/null --- /dev/null
+++ b/panko/templates/secret-keystone.yaml +++ b/panko/templates/secret-keystone.yaml
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
@ -1080,7 +1077,7 @@ index 00000000..9b44ceb2
+{{- end }} +{{- end }}
diff --git a/panko/templates/service-api.yaml b/panko/templates/service-api.yaml diff --git a/panko/templates/service-api.yaml b/panko/templates/service-api.yaml
new file mode 100755 new file mode 100755
index 00000000..893d9e3d index 0000000..893d9e3
--- /dev/null --- /dev/null
+++ b/panko/templates/service-api.yaml +++ b/panko/templates/service-api.yaml
@@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
@ -1125,7 +1122,7 @@ index 00000000..893d9e3d
+{{- end }} +{{- end }}
diff --git a/panko/templates/service-ingress-api.yaml b/panko/templates/service-ingress-api.yaml diff --git a/panko/templates/service-ingress-api.yaml b/panko/templates/service-ingress-api.yaml
new file mode 100755 new file mode 100755
index 00000000..422e74dd index 0000000..422e74d
--- /dev/null --- /dev/null
+++ b/panko/templates/service-ingress-api.yaml +++ b/panko/templates/service-ingress-api.yaml
@@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
@ -1152,7 +1149,7 @@ index 00000000..422e74dd
\ No newline at end of file \ No newline at end of file
diff --git a/panko/values.yaml b/panko/values.yaml diff --git a/panko/values.yaml b/panko/values.yaml
new file mode 100755 new file mode 100755
index 00000000..a206a31b index 0000000..bae4278
--- /dev/null --- /dev/null
+++ b/panko/values.yaml +++ b/panko/values.yaml
@@ -0,0 +1,535 @@ @@ -0,0 +1,535 @@
@ -1525,7 +1522,7 @@ index 00000000..a206a31b
+ # authtoken cache encryption key, if not set it will be populated + # authtoken cache encryption key, if not set it will be populated
+ # automatically with a random value, but to take advantage of + # automatically with a random value, but to take advantage of
+ # this feature all services should be set to use the same key, + # this feature all services should be set to use the same key,
+ # and memcache service. + # and memcache service.
+ memcache_secret_key: null + memcache_secret_key: null
+ hosts: + hosts:
+ default: memcached + default: memcached
@ -1692,5 +1689,5 @@ index 00000000..a206a31b
+ service_ingress_api: true + service_ingress_api: true
+ +
-- --
2.16.5 1.8.3.1