1 {{- if .Values.keystone.enabled -}}
2 #######################################################################################
3 # Copyright ETSI Contributors and Others.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #######################################################################################
23 {{- include "osm.labels" . | nindent 4 }}
25 replicas: {{ .Values.keystone.replicaCount | default .Values.global.replicaCount }}
28 app.kubernetes.io/component: keystone
29 {{- include "osm.selectorLabels" . | nindent 6 }}
32 {{- with .Values.global.podAnnotations }}
34 {{- toYaml . | nindent 8 }}
37 app.kubernetes.io/component: keystone
38 {{- include "osm.selectorLabels" . | nindent 8 }}
40 {{- with .Values.global.imagePullSecrets }}
42 {{- toYaml . | nindent 8 }}
44 serviceAccountName: {{ include "osm.serviceAccountName" . }}
46 {{- toYaml .Values.global.podSecurityContext | nindent 8 }}
50 # readOnlyRootFilesystem: true
51 allowPrivilegeEscalation: false
53 {{- toYaml .Values.global.securityContext | nindent 12 }}
54 image: {{ include "osm.keystone.image" . }}
55 imagePullPolicy: {{ .Values.global.image.pullPolicy }}
66 name: {{ include "osm.fullname" . }}-keystone-configmap
67 {{- if not .Values.keystone.useOsmSecret }}
69 name: {{ .Values.keystone.secretName | default "keystone-secret" }}
72 - name: ROOT_DB_PASSWORD
76 key: mysql-root-password
77 - name: KEYSTONE_DB_PASSWORD
80 name: {{ include "osm.fullname" . }}-secret
81 key: OSM_KEYSTONE_DB_PASSWORD
82 - name: SERVICE_PASSWORD
85 name: {{ include "osm.fullname" . }}-secret
86 key: OSM_SERVICE_PASSWORD
88 {{- with .Values.global.nodeSelector }}
90 {{- toYaml . | nindent 8 }}
92 {{- with .Values.global.affinity }}
94 {{- toYaml . | nindent 8 }}
96 {{- with .Values.global.tolerations }}
98 {{- toYaml . | nindent 8 }}