blob: abd15757745695864823e4c805c4968cbdfe4efc [file] [log] [blame]
Sylvain Desbureauxd82050c2020-03-17 10:43:40 +01001{{/*
Krzysztof Opasiak020cdb92020-05-01 01:46:37 +02002# Copyright © 2020 Samsung Electronics
Sylvain Desbureauxda711dd2021-04-07 17:22:42 +02003# Copyright © 2021 Orange
Sylvain Desbureauxd82050c2020-03-17 10:43:40 +01004#
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
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
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 implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16*/}}
17
Sylvain Desbureauxd82050c2020-03-17 10:43:40 +010018apiVersion: v1
19kind: ConfigMap
Krzysztof Opasiak020cdb92020-05-01 01:46:37 +020020{{- $suffix := "add-config" }}
Sylvain Desbureauxd82050c2020-03-17 10:43:40 +010021metadata: {{- include "common.resourceMetadata" (dict "suffix" $suffix "dot" . )| nindent 2 }}
22data:
Sylvain Desbureauxda711dd2021-04-07 17:22:42 +020023{{ tpl (.Files.Glob "resources/retrieval/retrieval_check.sh").AsConfig . | indent 2 }}
24{{- if hasKey .Values "ingressTlsSecret" }}
25{{ tpl (.Files.Glob "resources/retrieval/tls_certs_configure.sh").AsConfig . | indent 2 }}
26{{- end }}
Sylvain Desbureauxb8341592021-02-23 15:54:00 +010027{{ if .Values.aaf_add_config }}
Krzysztof Opasiak020cdb92020-05-01 01:46:37 +020028 aaf-add-config.sh: |
Sylvain Desbureaux911e0942020-10-26 17:49:05 +010029 {{ tpl .Values.aaf_add_config . | indent 4 | trim }}
Krzysztof Opasiak95a5f842020-05-06 23:27:18 +020030{{- end }}
Sylvain Desbureauxda711dd2021-04-07 17:22:42 +020031{{- if hasKey .Values "ingressTlsSecret" }}
32---
33apiVersion: v1
34kind: ConfigMap
35{{- $suffix := "ingress" }}
36metadata: {{- include "common.resourceMetadata" (dict "suffix" $suffix "dot" . )| nindent 2 }}
37data:
38{{ tpl (.Files.Glob "resources/ingress/onboard.sh").AsConfig . | indent 2 }}
39{{- end }}