|
|
|
@ -134,10 +134,7 @@ kind: Ingress
|
|
|
|
|
metadata:
|
|
|
|
|
name: {{ $fullName }}
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
|
|
|
|
|
helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
|
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
|
{{ include "<CHARTNAME>.labels" . | indent 4 }}
|
|
|
|
|
{{- with .Values.ingress.annotations }}
|
|
|
|
|
annotations:
|
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
@ -173,10 +170,7 @@ kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: {{ include "<CHARTNAME>.fullname" . }}
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
|
|
|
|
|
helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
|
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
|
{{ include "<CHARTNAME>.labels" . | indent 4 }}
|
|
|
|
|
spec:
|
|
|
|
|
replicas: {{ .Values.replicaCount }}
|
|
|
|
|
selector:
|
|
|
|
@ -226,10 +220,7 @@ kind: Service
|
|
|
|
|
metadata:
|
|
|
|
|
name: {{ include "<CHARTNAME>.fullname" . }}
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
|
|
|
|
|
helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
|
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
|
{{ include "<CHARTNAME>.labels" . | indent 4 }}
|
|
|
|
|
spec:
|
|
|
|
|
type: {{ .Values.service.type }}
|
|
|
|
|
ports:
|
|
|
|
@ -297,6 +288,19 @@ Create chart name and version as used by the chart label.
|
|
|
|
|
{{- define "<CHARTNAME>.chart" -}}
|
|
|
|
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
|
Common labels
|
|
|
|
|
*/}}
|
|
|
|
|
{{- define "<CHARTNAME>.labels" -}}
|
|
|
|
|
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
|
|
|
|
|
helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
|
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
|
{{- if .Chart.AppVersion -}}
|
|
|
|
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
const defaultTestConnection = `apiVersion: v1
|
|
|
|
@ -304,10 +308,7 @@ kind: Pod
|
|
|
|
|
metadata:
|
|
|
|
|
name: "{{ include "<CHARTNAME>.fullname" . }}-test-connection"
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/name: {{ include "<CHARTNAME>.name" . }}
|
|
|
|
|
helm.sh/chart: {{ include "<CHARTNAME>.chart" . }}
|
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
|
{{ include "<CHARTNAME>.labels" . | indent 4 }}
|
|
|
|
|
annotations:
|
|
|
|
|
"helm.sh/hook": test-success
|
|
|
|
|
spec:
|
|
|
|
|