2 # Copyright © 2021 Orange
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 {{- if hasKey .Values "ingressTlsSecret" }}
20 {{- $suffix := "set-tls-secret" }}
21 metadata: {{- include "common.resourceMetadata" (dict "suffix" $suffix "dot" . )| nindent 2 }}
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
27 initContainers: {{ include "common.certInitializer.initContainer" (dict "dot" . "initRoot" .Values) | nindent 6 }}
29 - name: "{{ include "common.namespace" . }}-docker-registry-key"
31 - name: create-tls-secret
34 image: {{ include "repositoryGenerator.image.kubectl" . }}
35 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
36 volumeMounts: {{ include "common.certInitializer.volumeMount" (dict "dot" . "initRoot" .Values) | nindent 8 }}
37 - name: ingress-scripts
39 volumes: {{ include "common.certInitializer.volumes" (dict "dot" . "initRoot" .Values) | nindent 6 }}
43 - name: ingress-scripts
45 name: {{ include "common.fullname" . }}-ingress