Keystone: use internal interface by default
This PS updates the openrc functions to use the internal interface by default for keystone actions performed within the cluster. Change-Id: I491618d9fd473917e2034a315f292db746f0d7cc Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
parent
abb00e97fd
commit
654e78733d
@ -59,8 +59,6 @@ spec:
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.jobs.bootstrap | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
{{- if eq $openrc "true" }}
|
||||
env:
|
||||
- name: OS_INTERFACE
|
||||
value: "internal"
|
||||
{{- with $env := dict "ksUserSecret" ( index $envAll.Values.secrets.identity $keystoneUser ) }}
|
||||
{{- include "helm-toolkit.snippets.keystone_openrc_env_vars" $env | indent 12 }}
|
||||
{{- end }}
|
||||
|
@ -28,6 +28,11 @@ limitations under the License.
|
||||
secretKeyRef:
|
||||
name: {{ $ksUserSecret }}
|
||||
key: OS_REGION_NAME
|
||||
- name: OS_INTERFACE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ $ksUserSecret }}
|
||||
key: OS_INTERFACE
|
||||
- name: OS_PROJECT_DOMAIN_NAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
@ -20,10 +20,11 @@ limitations under the License.
|
||||
{{- $context := index . 2 -}}
|
||||
{{- $userContext := index $context.Values.endpoints.identity.auth $userClass }}
|
||||
OS_AUTH_URL: {{ tuple "identity" $identityEndpoint "api" $context | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" | b64enc }}
|
||||
OS_REGION_NAME: {{ $userContext.region_name | b64enc }}
|
||||
OS_PROJECT_DOMAIN_NAME: {{ $userContext.project_domain_name | b64enc }}
|
||||
OS_PROJECT_NAME: {{ $userContext.project_name | b64enc }}
|
||||
OS_USER_DOMAIN_NAME: {{ $userContext.user_domain_name | b64enc }}
|
||||
OS_USERNAME: {{ $userContext.username | b64enc }}
|
||||
OS_PASSWORD: {{ $userContext.password | b64enc }}
|
||||
OS_REGION_NAME: {{ $userContext.region_name | b64enc }}
|
||||
OS_INTERFACE: {{ $userContext.interface | default "internal" | b64enc }}
|
||||
OS_PROJECT_DOMAIN_NAME: {{ $userContext.project_domain_name | b64enc }}
|
||||
OS_PROJECT_NAME: {{ $userContext.project_name | b64enc }}
|
||||
OS_USER_DOMAIN_NAME: {{ $userContext.user_domain_name | b64enc }}
|
||||
OS_USERNAME: {{ $userContext.username | b64enc }}
|
||||
OS_PASSWORD: {{ $userContext.password | b64enc }}
|
||||
{{- end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user