aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/oof/components/oof-templates/templates/_secret.tpl
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-06-02 08:07:51 +0000
committerGerrit Code Review <gerrit@onap.org>2021-06-02 08:07:51 +0000
commit22dabf14ef253de251ababe12d26a70c47d531f3 (patch)
treedad557f58c987e56f821dbc82c48f3cf84743887 /kubernetes/oof/components/oof-templates/templates/_secret.tpl
parent84b962398213641e656e8d1750b83f480f531563 (diff)
parent20552e7bebb63393f850886a1a8844c9c0bbe8cc (diff)
Merge changes I44c8b60c,I0cb6d383
* changes: [OOF] Update HAS charts to use etcd [COMMON][ETCD-INIT] Add etcd-init chart
Diffstat (limited to 'kubernetes/oof/components/oof-templates/templates/_secret.tpl')
-rw-r--r--kubernetes/oof/components/oof-templates/templates/_secret.tpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/kubernetes/oof/components/oof-templates/templates/_secret.tpl b/kubernetes/oof/components/oof-templates/templates/_secret.tpl
new file mode 100644
index 0000000000..0b04f7120b
--- /dev/null
+++ b/kubernetes/oof/components/oof-templates/templates/_secret.tpl
@@ -0,0 +1,6 @@
+{{- define "oof.etcd.env" -}}
+- name: OS_ETCD_API__USERNAME
+ {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "oof-has-etcd-secret" "key" "login") | indent 2 }}
+- name: OS_ETCD_API__PASSWORD
+ {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "oof-has-etcd-secret" "key" "password") | indent 2 }}
+{{- end -}} \ No newline at end of file