1 {{- if not .Values.global.oldServiceAssurance -}}
2 {{- if .Values.webhookTranslator.enabled -}}
3 #######################################################################################
4 # Copyright ETSI Contributors and Others.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #######################################################################################
22 name: webhook-translator
24 {{- include "osm.labels" . | nindent 4 }}
26 replicas: {{ .Values.webhookTranslator.replicaCount | default .Values.global.replicaCount }}
29 app.kubernetes.io/component: webhook-translator
30 {{- include "osm.selectorLabels" . | nindent 6 }}
33 {{- with .Values.global.podAnnotations }}
35 {{- toYaml . | nindent 8 }}
38 app.kubernetes.io/component: webhook-translator
39 {{- include "osm.selectorLabels" . | nindent 8 }}
41 {{- with .Values.global.imagePullSecrets }}
43 {{- toYaml . | nindent 8 }}
45 serviceAccountName: {{ include "osm.serviceAccountName" . }}
47 {{- toYaml .Values.global.podSecurityContext | nindent 8 }}
49 - name: webhook-translator
51 readOnlyRootFilesystem: true
52 allowPrivilegeEscalation: false
54 {{- toYaml .Values.global.securityContext | nindent 12 }}
55 image: {{ include "osm.webhookTranslator.image" . }}
56 imagePullPolicy: {{ .Values.global.image.pullPolicy }}
67 name: {{ include "osm.fullname" . }}-webhook-configmap
69 name: {{ include "osm.fullname" . }}-webhook-secret
70 {{- with .Values.global.nodeSelector }}
72 {{- toYaml . | nindent 8 }}
74 {{- with .Values.global.affinity }}
76 {{- toYaml . | nindent 8 }}
78 {{- with .Values.global.tolerations }}
80 {{- toYaml . | nindent 8 }}