2021-03-03 13:56:22 +00:00
|
|
|
{{/*
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
|
|
|
|
`SPDX-License-Identifier: Apache-2.0`
|
|
|
|
|
|
|
|
This file is considered to be modified by the TrueCharts Project.
|
|
|
|
*/}}
|
|
|
|
|
|
|
|
|
2021-02-05 20:17:06 +00:00
|
|
|
{{/*
|
|
|
|
Main entrypoint for the common library chart. It will render all underlying templates based on the provided values.
|
|
|
|
*/}}
|
|
|
|
{{- define "common.all" -}}
|
|
|
|
{{- /* Merge the local chart values and the common chart defaults */ -}}
|
|
|
|
{{- include "common.values.setup" . }}
|
2021-02-23 17:21:54 +00:00
|
|
|
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- /* Build the templates */ -}}
|
|
|
|
{{- include "common.pvc" . }}
|
|
|
|
{{- print "---" | nindent 0 -}}
|
|
|
|
{{- if .Values.serviceAccount.create -}}
|
|
|
|
{{- include "common.serviceAccount" . }}
|
|
|
|
{{- print "---" | nindent 0 -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- if eq .Values.controllerType "deployment" }}
|
|
|
|
{{- include "common.deployment" . | nindent 0 }}
|
|
|
|
{{ else if eq .Values.controllerType "daemonset" }}
|
|
|
|
{{- include "common.daemonset" . | nindent 0 }}
|
|
|
|
{{ else if eq .Values.controllerType "statefulset" }}
|
|
|
|
{{- include "common.statefulset" . | nindent 0 }}
|
|
|
|
{{- end -}}
|
2021-03-03 15:51:25 +00:00
|
|
|
{{ include "common.services" . | nindent 0 }}
|
2021-02-05 20:17:06 +00:00
|
|
|
{{ include "common.ingress" . | nindent 0 }}
|
2021-02-28 15:53:33 +00:00
|
|
|
{{ include "common.storage.permissions" . | nindent 0 }}
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- end -}}
|