2 # Copyright © 2018 Amdocs, AT&T
3 # Modifications Copyright © 2018 Bell Canada
4 # Modifications Copyright © 2020-2021 Orange
5 # Modifications Copyright © 2023 Nordix Foundation
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
23 name: {{ include "common.fullname" . }}
24 namespace: {{ include "common.namespace" . }}
26 app: {{ include "common.name" . }}
27 app.kubernetes.io/name: {{ include "common.name" . }}
28 {{- if .Chart.AppVersion }}
29 version: "{{ .Chart.AppVersion | replace "+" "_" }}"
31 version: "{{ .Chart.Version | replace "+" "_" }}"
33 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
34 release: {{ include "common.release" . }}
35 heritage: {{ .Release.Service }}
37 replicas: {{ .Values.replicaCount }}
39 type: {{ .Values.updateStrategy.type }}
40 {{- if (eq "RollingUpdate" .Values.updateStrategy.type) }}
42 maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }}
43 maxSurge: {{ .Values.updateStrategy.maxSurge }}
47 app: {{ include "common.name" . }}
51 app: {{ include "common.name" . }}
52 release: {{ include "common.release" . }}
53 app.kubernetes.io/name: {{ include "common.name" . }}
54 {{- if .Chart.AppVersion }}
55 version: "{{ .Chart.AppVersion | replace "+" "_" }}"
57 version: "{{ .Chart.Version | replace "+" "_" }}"
59 name: {{ include "common.name" . }}
61 {{- if .Values.nodeSelector }}
62 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
64 {{- if .Values.affinity }}
65 affinity: {{ toYaml .Values.affinity | nindent 8 }}
68 - name: {{ include "common.name" . }}
69 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
70 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
73 value: /opt/app/model-loader/config/
74 - name: SASL_JAAS_CONFIG
77 name: {{ include "common.name" . }}-ku
80 - mountPath: /etc/localtime
83 - mountPath: /opt/app/model-loader/config/model-loader.properties
84 subPath: model-loader.properties
86 - mountPath: {{ .Values.log.path }}
88 - mountPath: /opt/app/model-loader/logback.xml
91 resources: {{ include "common.resources" . | nindent 10 }}
93 {{ include "common.log.sidecar" . | nindent 6 }}
94 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
101 name: {{ include "common.fullname" . }}-prop
104 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 6 }}
107 name: {{ include "common.fullname" . }}-log
108 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
109 {{- include "common.imagePullSecrets" . | nindent 6 }}