Skip to content

Commit 341cb34

Browse files
Patch helm chart to stable with v3.5.0
1 parent 34f8c77 commit 341cb34

File tree

4 files changed

+38
-16
lines changed

4 files changed

+38
-16
lines changed

charts/code-server/templates/_helpers.tpl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,26 @@ Create chart name and version as used by the chart label.
3131
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
3232
{{- end -}}
3333

34+
{{/*
35+
Common labels
36+
*/}}
37+
{{- define "code-server.labels" -}}
38+
helm.sh/chart: {{ include "code-server.chart" . }}
39+
{{ include "code-server.selectorLabels" . }}
40+
{{- if .Chart.AppVersion }}
41+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
42+
{{- end }}
43+
app.kubernetes.io/managed-by: {{ .Release.Service }}
44+
{{- end }}
45+
46+
{{/*
47+
Selector labels
48+
*/}}
49+
{{- define "code-server.selectorLabels" -}}
50+
app.kubernetes.io/name: {{ include "code-server.name" . }}
51+
app.kubernetes.io/instance: {{ .Release.Name }}
52+
{{- end }}
53+
3454
{{/*
3555
Create the name of the service account to use
3656
*/}}

charts/code-server/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ spec:
9898
{{- end }}
9999
ports:
100100
- name: http
101-
containerPort: 8443
101+
containerPort: 8080
102102
protocol: TCP
103103
livenessProbe:
104104
httpGet:

charts/code-server/templates/ingress.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
11
{{- if .Values.ingress.enabled -}}
22
{{- $fullName := include "code-server.fullname" . -}}
3+
{{- $svcPort := .Values.service.port -}}
4+
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
5+
apiVersion: networking.k8s.io/v1beta1
6+
{{- else -}}
37
apiVersion: extensions/v1beta1
8+
{{- end }}
49
kind: Ingress
510
metadata:
611
name: {{ $fullName }}
712
labels:
8-
app.kubernetes.io/name: {{ include "code-server.name" . }}
9-
helm.sh/chart: {{ include "code-server.chart" . }}
10-
app.kubernetes.io/instance: {{ .Release.Name }}
11-
app.kubernetes.io/managed-by: {{ .Release.Service }}
13+
{{- include "code-server.labels" . | nindent 4 }}
1214
{{- with .Values.ingress.annotations }}
1315
annotations:
1416
{{- toYaml . | nindent 4 }}
1517
{{- end }}
1618
spec:
17-
{{- if .Values.ingress.tls }}
19+
{{- if .Values.ingress.tls }}
1820
tls:
19-
{{- range .Values.ingress.tls }}
21+
{{- range .Values.ingress.tls }}
2022
- hosts:
21-
{{- range .hosts }}
23+
{{- range .hosts }}
2224
- {{ . | quote }}
23-
{{- end }}
25+
{{- end }}
2426
secretName: {{ .secretName }}
27+
{{- end }}
2528
{{- end }}
26-
{{- end }}
2729
rules:
28-
{{- range .Values.ingress.hosts }}
30+
{{- range .Values.ingress.hosts }}
2931
- host: {{ .host | quote }}
3032
http:
3133
paths:
32-
{{- range .paths }}
34+
{{- range .paths }}
3335
- path: {{ . }}
3436
backend:
3537
serviceName: {{ $fullName }}
36-
servicePort: http
37-
{{- end }}
38+
servicePort: {{ $svcPort }}
39+
{{- end }}
40+
{{- end }}
3841
{{- end }}
39-
{{- end }}

charts/code-server/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replicaCount: 1
66

77
image:
88
repository: codercom/code-server
9-
tag: 1.1156-vsc1.33.1
9+
tag: '3.5.0'
1010
pullPolicy: Always
1111

1212
imagePullSecrets: []

0 commit comments

Comments
 (0)