From 5dc986aa5f06faa706d978cc7716a9ed32b67b68 Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Wed, 27 May 2020 14:00:08 +0300 Subject: [PATCH] Set OS_ENDPOINT_TYPE in keystone openrc vars sometimes it is needed to use other than `openstack` CLI clients or older versions of those in bootstrap/other scripts that do not understand the OS_INTERFACE env var, and instead use the OS_ENDPOINT_TYPE var (and --os-endpoint-type CLI arg) for the same purpose. Example is `neutron` command from python-neutronclient package. Change-Id: I0fb7d1e9612391e8632d775b91848d3c834b9bd2 --- .../templates/snippets/_keystone_openrc_env_vars.tpl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/helm-toolkit/templates/snippets/_keystone_openrc_env_vars.tpl b/helm-toolkit/templates/snippets/_keystone_openrc_env_vars.tpl index a26de5d4b..4c067cb26 100644 --- a/helm-toolkit/templates/snippets/_keystone_openrc_env_vars.tpl +++ b/helm-toolkit/templates/snippets/_keystone_openrc_env_vars.tpl @@ -40,6 +40,11 @@ return: | secretKeyRef: name: example-keystone-admin key: OS_INTERFACE + - name: OS_ENDPOINT_TYPE + valueFrom: + secretKeyRef: + name: example-keystone-admin + key: OS_INTERFACE - name: OS_PROJECT_DOMAIN_NAME valueFrom: secretKeyRef: @@ -86,6 +91,11 @@ return: | secretKeyRef: name: {{ $ksUserSecret }} key: OS_INTERFACE +- name: OS_ENDPOINT_TYPE + valueFrom: + secretKeyRef: + name: {{ $ksUserSecret }} + key: OS_INTERFACE - name: OS_PROJECT_DOMAIN_NAME valueFrom: secretKeyRef: