Skip to content

Commit 4541224

Browse files
authored
remove envproxy references from chart (#142)
* remove envproxy references from chart * Fix cluster address
1 parent 138c070 commit 4541224

File tree

8 files changed

+3
-220
lines changed

8 files changed

+3
-220
lines changed

templates/NOTES.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ Deprecated: The "dashboard" Kubernetes Service has been merged with "coderd".
4141
{{- end }}
4242
{{ end }}
4343

44-
{{- if gt (len (keys (.Values.envproxy | dict))) 1 }}
45-
Deprecated: The "envproxy" Kubernetes Service has been merged with "coderd".
46-
✗ All "envproxy.*" values can be safely removed.
47-
✗ Workspaces will need to be rebuilt after this change.
48-
{{ end }}
4944
{{- else }}
5045
{{- if eq (include "coder.hasNginxIngress" .) "true" }}
5146
Deprecated: The "nginx" ingress controller will be removed in a future release.

templates/_common.tpl

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -117,31 +117,11 @@ tolerations:
117117
{{- end }}
118118
{{- end }}
119119
{{- end }}
120-
{{/*
121-
coder.envproxy.accessURL is a URL for accessing the envproxy.
122-
*/}}
123-
{{- define "coder.envproxy.accessURL" }}
124-
{{- if ne (merge .Values dict | dig "envproxy" "accessURL" "") "" }}
125-
{{- .Values.envproxy.accessURL -}}
126-
{{- else if ne (merge .Values dict | dig "ingress" "host" "") "" }}
127-
{{- if .Values.ingress.tls.enable -}}
128-
https://
129-
{{- else -}}
130-
http://
131-
{{- end -}}
132-
{{- .Values.ingress.host }}
133-
{{- else }}
134-
{{- end }}
135-
{{- end }}
136120
{{/*
137121
coder.cluster.accessURL is a URL for accessing the Kubernetes cluster.
138122
*/}}
139-
{{- define "coder.cluster.accessURL" }}
140-
{{- if ne (merge .Values dict | dig "envproxy" "clusterAddress" "") "" }}
141-
{{- .Values.envproxy.clusterAddress -}}
142-
{{- else -}}
143-
https://kubernetes.default{{ include "movedValue" (dict "Values" .Values "Key" "services.clusterDomainSuffix") }}:443
144-
{{- end }}
123+
{{- define "coder.cluster.accessURL" -}}
124+
https://kubernetes.default{{ include "movedValue" (dict "Values" .Values "Key" "services.clusterDomainSuffix") }}:443
145125
{{- end }}
146126

147127
{{/*

templates/_ingress.tpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
{{- define "coder.hasNginxIngress" }}
2626
{{- if (lookup "v1" "Service" .Release.Namespace "ingress-nginx") -}}
2727
true
28-
{{- else if (lookup "v1" "Service" .Release.Namespace "envproxy") -}}
29-
true
3028
{{- else -}}
3129
false
3230
{{- end }}

templates/coderd.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,6 @@ spec:
135135
- name: TRUST_PROXY_IP
136136
value: {{ .Values.coderd.trustProxyIP | quote }}
137137
{{- end }}
138-
{{- if not .Values.coderd.satellite.enable }}
139-
{{- if eq (include "coder.useServiceNext" .) "false" }}
140-
- name: BUILT_IN_ENVPROXY_TOKEN
141-
valueFrom:
142-
secretKeyRef:
143-
name: built-in-envproxy-token
144-
key: token
145-
{{- end }}
146-
{{- end }}
147138
{{- if .Values.coderd.satellite.enable }}
148139
- name: CODER_SATELLITE_PRIVATE_KEY
149140
valueFrom:

templates/envproxy.yaml

Lines changed: 0 additions & 157 deletions
This file was deleted.

templates/ingress.yaml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ metadata:
3333
labels:
3434
app.kubernetes.io/name: ingress-nginx
3535
app.kubernetes.io/part-of: ingress-nginx
36-
data:
37-
22: "{{ .Release.Namespace }}/envproxy:2222"
3836
---
3937
kind: ConfigMap
4038
apiVersion: v1
@@ -379,13 +377,6 @@ spec:
379377
http:
380378
paths:
381379
{{- if (merge .Values dict | dig "ingress" "useDefault" true) }}
382-
- path: /proxy/
383-
pathType: Prefix
384-
backend:
385-
service:
386-
name: envproxy
387-
port:
388-
number: 8080
389380
- path: /api
390381
pathType: Prefix
391382
backend:
@@ -414,18 +405,6 @@ spec:
414405
port:
415406
number: 8080
416407
{{- end }}
417-
{{- if ne (include "movedValue" (dict "Values" .Values "Key" "coderd.devurlsHost")) "" }}
418-
- host: {{ include "movedValue" (dict "Values" .Values "Key" "coderd.devurlsHost") }}
419-
http:
420-
paths:
421-
- path: /
422-
pathType: Prefix
423-
backend:
424-
service:
425-
name: envproxy
426-
port:
427-
number: 8080
428-
{{- end }}
429408
{{- end }}
430409
{{- end }}
431410
{{- end }}

templates/psp.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ subjects:
3030
- kind: ServiceAccount
3131
name: {{ include "coder.serviceName" }}
3232
namespace: {{ .Release.Namespace | quote }}
33-
- kind: ServiceAccount
34-
name: envproxy
35-
namespace: {{ .Release.Namespace | quote }}
3633
roleRef:
3734
kind: Role
3835
name: coder-restricted

templates/rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
namespace: {{ .Release.Namespace | quote }}
99
name: environments
1010
---
11-
# The service account that the envproxy passes to cemanager on startup.
11+
# The service account for the built in workspace provider on application installation.
1212
apiVersion: v1
1313
kind: ServiceAccount
1414
metadata:

0 commit comments

Comments
 (0)