Skip to content

Commit 8e86c6f

Browse files
committed
chore: Update Helm chart for Kubernetes deployment, service, and ingress configurations
1 parent 540d359 commit 8e86c6f

1 file changed

Lines changed: 64 additions & 64 deletions

File tree

contribs/helm-chart.yaml

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -72,73 +72,73 @@ structure:
7272
periodSeconds: 10
7373
resources:
7474
{{- toYaml .Values.resources | nindent 12 }}
75-
- templates/service.yaml:
76-
content: |
77-
apiVersion: v1
78-
kind: Service
79-
metadata:
80-
name: {{ .Release.Name }}-{{ .Chart.Name }}
81-
labels:
82-
app: {{ .Chart.Name }}
83-
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
84-
release: {{ .Release.Name }}
85-
heritage: {{ .Release.Service }}
86-
spec:
87-
type: {{ .Values.service.type }}
88-
ports:
89-
- port: {{ .Values.service.port }}
90-
targetPort: 80
91-
protocol: TCP
92-
name: http
93-
selector:
94-
app: {{ .Chart.Name }}
95-
release: {{ .Release.Name }}
96-
- templates/ingress.yaml:
97-
content: |
98-
{{- if .Values.ingress.enabled -}}
99-
apiVersion: networking.k8s.io/v1
100-
kind: Ingress
101-
metadata:
102-
name: {{ .Release.Name }}-{{ .Chart.Name }}
103-
annotations:
104-
{{- range $key, $value := .Values.ingress.annotations }}
105-
{{ $key }}: {{ $value | quote }}
106-
{{- end }}
107-
spec:
108-
rules:
109-
{{- range .Values.ingress.hosts }}
110-
- host: {{ .host | quote }}
111-
http:
112-
paths:
113-
{{- range .paths }}
114-
- path: {{ . }}
115-
pathType: ImplementationSpecific
116-
backend:
117-
service:
118-
name: {{ $.Release.Name }}-{{ $.Chart.Name }}
119-
port:
120-
number: 80
121-
{{- end }}
122-
{{- end }}
123-
{{- if .Values.ingress.tls }}
124-
tls:
125-
{{- range .Values.ingress.tls }}
126-
- hosts:
127-
{{- range .hosts }}
128-
- {{ . | quote }}
75+
- templates/service.yaml:
76+
content: |
77+
apiVersion: v1
78+
kind: Service
79+
metadata:
80+
name: {{ .Release.Name }}-{{ .Chart.Name }}
81+
labels:
82+
app: {{ .Chart.Name }}
83+
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
84+
release: {{ .Release.Name }}
85+
heritage: {{ .Release.Service }}
86+
spec:
87+
type: {{ .Values.service.type }}
88+
ports:
89+
- port: {{ .Values.service.port }}
90+
targetPort: 80
91+
protocol: TCP
92+
name: http
93+
selector:
94+
app: {{ .Chart.Name }}
95+
release: {{ .Release.Name }}
96+
- templates/ingress.yaml:
97+
content: |
98+
{{- if .Values.ingress.enabled -}}
99+
apiVersion: networking.k8s.io/v1
100+
kind: Ingress
101+
metadata:
102+
name: {{ .Release.Name }}-{{ .Chart.Name }}
103+
annotations:
104+
{{- range $key, $value := .Values.ingress.annotations }}
105+
{{ $key }}: {{ $value | quote }}
106+
{{- end }}
107+
spec:
108+
rules:
109+
{{- range .Values.ingress.hosts }}
110+
- host: {{ .host | quote }}
111+
http:
112+
paths:
113+
{{- range .paths }}
114+
- path: {{ . }}
115+
pathType: ImplementationSpecific
116+
backend:
117+
service:
118+
name: {{ $.Release.Name }}-{{ $.Chart.Name }}
119+
port:
120+
number: 80
129121
{{- end }}
130-
secretName: {{ .secretName | quote }}
131-
{{- end }}
122+
{{- end }}
123+
{{- if .Values.ingress.tls }}
124+
tls:
125+
{{- range .Values.ingress.tls }}
126+
- hosts:
127+
{{- range .hosts }}
128+
- {{ . | quote }}
129+
{{- end }}
130+
secretName: {{ .secretName | quote }}
132131
{{- end }}
133132
{{- end }}
134-
- templates/_helpers.tpl:
135-
content: |
136-
{{/*
137-
Create a default chart name and version as release-name.version
138-
*/}}
139-
{{- define "my-helm-chart.chart" -}}
140-
{{- printf "%s-%s" .Chart.Name .Chart.Version | trunc 63 | trimSuffix "-" -}}
141-
{{- end }}
133+
{{- end }}
134+
- templates/_helpers.tpl:
135+
content: |
136+
{{/*
137+
Create a default chart name and version as release-name.version
138+
*/}}
139+
{{- define "my-helm-chart.chart" -}}
140+
{{- printf "%s-%s" .Chart.Name .Chart.Version | trunc 63 | trimSuffix "-" -}}
141+
{{- end }}
142142
- .helmignore:
143143
content: |
144144
# Patterns to ignore when building packages.

0 commit comments

Comments
 (0)