This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{{/* Main entrypoint for the library */}}
|
||||
{{- define "tc.v1.common.loader.all" -}}
|
||||
|
||||
{{- include "tc.v1.common.loader.init" . -}}
|
||||
|
||||
{{- include "tc.v1.common.loader.apply" . -}}
|
||||
|
||||
{{- end -}}
|
||||
70
helm-charts/dashy/charts/common/templates/loader/_apply.tpl
Normal file
70
helm-charts/dashy/charts/common/templates/loader/_apply.tpl
Normal file
@@ -0,0 +1,70 @@
|
||||
{{/* Loads all spawners */}}
|
||||
{{- define "tc.v1.common.loader.apply" -}}
|
||||
|
||||
{{/* Inject custom tpl files, as defined in values.yaml */}}
|
||||
{{- include "tc.v1.common.spawner.extraTpl" . | nindent 0 -}}
|
||||
|
||||
{{/* Ensure automatic permissions containers are injected */}}
|
||||
{{- include "tc.v1.common.lib.util.autoperms.job" $ -}}
|
||||
|
||||
{{/* Make sure there are not any YAML errors */}}
|
||||
{{- include "tc.v1.common.values.validate" .Values -}}
|
||||
|
||||
{{/* Render ConfigMap(s) */}}
|
||||
{{- include "tc.v1.common.spawner.configmap" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Certificate(s) */}}
|
||||
{{- include "tc.v1.common.spawner.scaleCertificate" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Secret(s) */}}
|
||||
{{- include "tc.v1.common.spawner.secret" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Image Pull Secrets(s) */}}
|
||||
{{- include "tc.v1.common.spawner.imagePullSecret" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Service Accounts(s) */}}
|
||||
{{- include "tc.v1.common.spawner.serviceAccount" . | nindent 0 -}}
|
||||
|
||||
{{/* Render RBAC(s) */}}
|
||||
{{- include "tc.v1.common.spawner.rbac" . | nindent 0 -}}
|
||||
|
||||
{{/* Render External Interface(s) */}}
|
||||
{{- include "tc.v1.common.spawner.externalInterface" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Workload(s) */}}
|
||||
{{- include "tc.v1.common.spawner.workload" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Services(s) */}}
|
||||
{{- include "tc.v1.common.spawner.service" . | nindent 0 -}}
|
||||
|
||||
{{/* Render PVC(s) */}}
|
||||
{{- include "tc.v1.common.spawner.pvc" . | nindent 0 -}}
|
||||
|
||||
{{/* Render ingress(s) */}}
|
||||
{{- include "tc.v1.common.spawner.ingress" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Gateway API Route(s) */}}
|
||||
{{- include "tc.v1.common.spawner.routes" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Horizontal Pod Autoscalers(s) */}}
|
||||
{{- include "tc.v1.common.spawner.hpa" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Networkpolicy(s) */}}
|
||||
{{- include "tc.v1.common.spawner.networkpolicy" . | nindent 0 -}}
|
||||
|
||||
{{/* Render podDisruptionBudget(s) */}}
|
||||
{{- include "tc.v1.common.spawner.podDisruptionBudget" . | nindent 0 -}}
|
||||
|
||||
{{/* Render webhook(s) */}}
|
||||
{{- include "tc.v1.common.spawner.webhook" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Prometheus Metrics(s) */}}
|
||||
{{- include "tc.v1.common.spawner.metrics" . | nindent 0 -}}
|
||||
|
||||
{{/* Render Cert-Manager Certificates(s) */}}
|
||||
{{- include "tc.v1.common.spawner.certificate" . | nindent 0 -}}
|
||||
|
||||
{{/* Render/Set portal configmap, .Values.iXPortals and APPURL */}}
|
||||
{{- include "tc.v1.common.spawner.portal" . | nindent 0 -}}
|
||||
|
||||
{{- end -}}
|
||||
55
helm-charts/dashy/charts/common/templates/loader/_init.tpl
Normal file
55
helm-charts/dashy/charts/common/templates/loader/_init.tpl
Normal file
@@ -0,0 +1,55 @@
|
||||
{{/* Initialiaze values of the chart */}}
|
||||
{{- define "tc.v1.common.loader.init" -}}
|
||||
|
||||
{{/* Merge chart values and the common chart defaults */}}
|
||||
{{- include "tc.v1.common.values.init" . -}}
|
||||
|
||||
{{/* Parse lists and append to values */}}
|
||||
{{- include "tc.v1.common.loader.lists" . -}}
|
||||
|
||||
{{/* Ensure TrueCharts chart context information is available */}}
|
||||
{{- include "tc.v1.common.lib.util.chartcontext" . -}}
|
||||
|
||||
{{/* Autogenerate postgresql passwords if needed */}}
|
||||
{{- include "tc.v1.common.spawner.cnpg" . }}
|
||||
|
||||
{{/* Autogenerate redis passwords if needed */}}
|
||||
{{- include "tc.v1.common.dependencies.redis.injector" . }}
|
||||
|
||||
{{/* Autogenerate mariadb passwords if needed */}}
|
||||
{{- include "tc.v1.common.dependencies.mariadb.injector" . }}
|
||||
|
||||
{{/* Autogenerate mongodb passwords if needed */}}
|
||||
{{- include "tc.v1.common.dependencies.mongodb.injector" . }}
|
||||
|
||||
{{/* Autogenerate clickhouse passwords if needed */}}
|
||||
{{- include "tc.v1.common.dependencies.clickhouse.injector" . }}
|
||||
|
||||
{{/* Autogenerate solr passwords if needed */}}
|
||||
{{- include "tc.v1.common.dependencies.solr.injector" . }}
|
||||
|
||||
{{/* Register Operator if needed */}}
|
||||
{{- include "tc.v1.common.lib.util.operator.register" . }}
|
||||
|
||||
{{/* Verify if required operators are present */}}
|
||||
{{- include "tc.v1.common.lib.util.operator.verifyAll" . }}
|
||||
|
||||
{{/* Enable code-server add-on if required */}}
|
||||
{{- if .Values.addons.codeserver.enabled }}
|
||||
{{- include "tc.v1.common.addon.codeserver" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Enable VPN add-on if required */}}
|
||||
{{- if ne "disabled" .Values.addons.vpn.type -}}
|
||||
{{- include "tc.v1.common.addon.vpn" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Enable netshoot add-on if required */}}
|
||||
{{- if .Values.addons.netshoot.enabled }}
|
||||
{{- include "tc.v1.common.addon.netshoot" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Append database wait containers to pods */}}
|
||||
{{- include "tc.v1.common.lib.deps.wait" $ }}
|
||||
|
||||
{{- end -}}
|
||||
11
helm-charts/dashy/charts/common/templates/loader/_lists.tpl
Normal file
11
helm-charts/dashy/charts/common/templates/loader/_lists.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- define "tc.v1.common.loader.lists" -}}
|
||||
|
||||
{{- include "tc.v1.common.values.persistenceList" . -}}
|
||||
|
||||
{{- include "tc.v1.common.values.deviceList" . -}}
|
||||
|
||||
{{- include "tc.v1.common.values.serviceList" . -}}
|
||||
|
||||
{{- include "tc.v1.common.values.ingressList" . -}}
|
||||
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user