mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-14 10:24:24 -05:00
16c63d57cd
* dev-docs: add 'things to try' section to VPN howto * dev-docs: full L3 connectivity in VPN chart
43 lines
1.2 KiB
Smarty
43 lines
1.2 KiB
Smarty
|
|
{{- define "..name" -}}
|
|
{{- default .Chart.Name .Values.nameOverride | trunc 42 | trimSuffix "-" }}
|
|
{{- end }}
|
|
|
|
{{- define "..fullname" -}}
|
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
|
{{- if contains $name .Release.Name }}
|
|
{{- .Release.Name | trunc 42 | trimSuffix "-" }}
|
|
{{- else }}
|
|
{{- printf "%s-%s" .Release.Name $name | trunc 42 | trimSuffix "-" }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- define "..chart" -}}
|
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 42 | trimSuffix "-" }}
|
|
{{- end }}
|
|
|
|
{{- define "..labels" -}}
|
|
helm.sh/chart: {{ include "..chart" . }}
|
|
{{ include "..selectorLabels" . }}
|
|
{{- if .Chart.AppVersion }}
|
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
{{- end }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
{{- end }}
|
|
|
|
{{- define "..selectorLabels" -}}
|
|
app.kubernetes.io/name: {{ include "..name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
{{- end }}
|
|
|
|
{{- define "..commonEnv" -}}
|
|
- name: VPN_PEER_CIDRS
|
|
value: {{ join " " .Values.peerCIDRs | quote }}
|
|
- name: VPN_POD_CIDR
|
|
value: {{ .Values.podCIDR | quote }}
|
|
- name: VPN_SERVICE_CIDR
|
|
value: {{ .Values.serviceCIDR | quote }}
|
|
- name: VPN_FRONTEND_POD
|
|
value: {{ include "..fullname" . }}-frontend-0
|
|
{{- end }}
|