Skip to content

Commit 6bf15d1

Browse files
committed
Revert "feat(chart): Allow configuring envoy proxy image via helm chart (#8785)"
This reverts commit 092cc67. Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com>
1 parent 3af8e0b commit 6bf15d1

8 files changed

Lines changed: 2 additions & 86 deletions

File tree

charts/gateway-helm/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ helm uninstall eg -n envoy-gateway-system
103103
| global.images.envoyGateway.image | string | `nil` | |
104104
| global.images.envoyGateway.pullPolicy | string | `nil` | |
105105
| global.images.envoyGateway.pullSecrets | list | `[]` | |
106-
| global.images.envoyProxy.image | string | `""` | |
107-
| global.images.envoyProxy.pullPolicy | string | `""` | |
108-
| global.images.envoyProxy.pullSecrets | list | `[]` | |
109106
| global.images.ratelimit.image | string | `"docker.io/envoyproxy/ratelimit:05c08d03"` | |
110107
| global.images.ratelimit.pullPolicy | string | `"IfNotPresent"` | |
111108
| global.images.ratelimit.pullSecrets | list | `[]` | |

charts/gateway-helm/templates/_helpers.tpl

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -148,61 +148,11 @@ imagePullSecrets: {{ toYaml list }}
148148
{{- end }}
149149
{{- end }}
150150

151-
{{/*
152-
Resolve the Envoy Proxy image.
153-
*/}}
154-
{{- define "eg.envoyProxy.image" -}}
155-
{{- $imageParts := splitn "/" 2 .Values.global.images.envoyProxy.image -}}
156-
{{/* if global.imageRegistry is defined, it takes precedence always */}}
157-
{{- $registryName := default $imageParts._0 .Values.global.imageRegistry -}}
158-
{{- $repositoryTag := $imageParts._1 -}}
159-
{{- $repositoryParts := splitn ":" 2 $repositoryTag -}}
160-
{{- $repositoryName := $repositoryParts._0 -}}
161-
{{- $imageTag := default "distroless-dev" $repositoryParts._1 -}}
162-
{{- printf "%s/%s:%s" $registryName $repositoryName $imageTag -}}
163-
{{- end -}}
164-
165-
{{/*
166-
Resolve the Envoy Proxy image pull secrets.
167-
*/}}
168-
{{- define "eg.envoyProxy.image.pullSecrets" -}}
169-
{{- if .Values.global.imagePullSecrets }}
170-
imagePullSecrets:
171-
{{ toYaml .Values.global.imagePullSecrets }}
172-
{{- else if .Values.global.images.envoyProxy.pullSecrets -}}
173-
imagePullSecrets:
174-
{{ toYaml .Values.global.images.envoyProxy.pullSecrets }}
175-
{{- else }}
176-
imagePullSecrets: {{ toYaml list }}
177-
{{- end }}
178-
{{- end }}
179151

180152
{{/*
181153
The default Envoy Gateway configuration.
182154
*/}}
183155
{{- define "eg.default-envoy-gateway-config" -}}
184-
{{- if or .Values.global.images.envoyProxy.image .Values.config.envoyGateway.envoyProxy }}
185-
{{- $envoyProxyBase := .Values.config.envoyGateway.envoyProxy | default dict }}
186-
{{- $imageOverride := dict }}
187-
{{- if .Values.global.images.envoyProxy.image }}
188-
{{- $container := dict "image" (include "eg.envoyProxy.image" .) }}
189-
{{- if .Values.global.images.envoyProxy.pullPolicy }}
190-
{{- $_ := set $container "imagePullPolicy" .Values.global.images.envoyProxy.pullPolicy }}
191-
{{- end }}
192-
{{- $deployment := dict "container" $container }}
193-
{{- if or .Values.global.imagePullSecrets .Values.global.images.envoyProxy.pullSecrets }}
194-
{{- $pullSecretsYaml := include "eg.envoyProxy.image.pullSecrets" . }}
195-
{{- $pullSecrets := dict "imagePullSecrets" ($pullSecretsYaml | fromYaml).imagePullSecrets }}
196-
{{- $_ := set $deployment "pod" $pullSecrets }}
197-
{{- end }}
198-
{{- $kubernetes := dict "envoyDeployment" $deployment }}
199-
{{- $provider := dict "type" "Kubernetes" "kubernetes" $kubernetes }}
200-
{{- $imageOverride = dict "provider" $provider }}
201-
{{- end }}
202-
{{- $merged := mustMergeOverwrite (dict) $envoyProxyBase $imageOverride }}
203-
envoyProxy:
204-
{{ toYaml $merged | indent 2 }}
205-
{{- end }}
206156
provider:
207157
type: Kubernetes
208158
kubernetes:

charts/gateway-helm/values.tmpl.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Global settings
22
global:
3-
# If set, these take highest precedence and change envoyGateway, envoyProxy, and ratelimit's container registry and pull secrets.
3+
# If set, these take highest precedence and change both envoyGateway and ratelimit's container registry and pull secrets.
44
# -- Global override for image registry
55
imageRegistry: ""
66
# -- Global override for image pull secrets
@@ -25,15 +25,6 @@ global:
2525
pullPolicy: IfNotPresent
2626
# List of secrets in the same namespace of the component that can be used to pull images from private repositories.
2727
pullSecrets: []
28-
envoyProxy:
29-
# This is the full image name including the hub, repo, and tag for the Envoy Proxy data plane.
30-
# If not specified, uses the default image built into envoy-gateway.
31-
image: ""
32-
# Specify image pull policy if default behavior isn't desired.
33-
# Default behavior: IfNotPresent.
34-
pullPolicy: ""
35-
# List of secrets in the same namespace of the component that can be used to pull images from private repositories.
36-
pullSecrets: []
3728

3829
podDisruptionBudget:
3930
minAvailable: 0

release-notes/current.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ security updates: |
1010
Bump Envoy ratelimit image to `05c08d03`.
1111
# New features or capabilities added in this release.
1212
new features: |
13-
Added support for defining Envoy Proxy image, pullPolicy, and pullSecrets via the helm chart. Note that to merge these helm-configured values with EnvoyProxy resources, the EnvoyProxy must include `mergeType: StrategicMerge` or `mergeType: JSONMerge`.
1413
1514
bug fixes: |
1615
Rejected ClientTrafficPolicy if invalid TLS cipher suites are configured.

release-notes/v1.7.3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ security updates: |
1010
1111
# New features or capabilities added in this release.
1212
new features: |
13-
Added support for defining Envoy Proxy image, pullPolicy, and pullSecrets via the helm chart. Note that to merge these helm-configured values with EnvoyProxy resources, the EnvoyProxy must include `mergeType: StrategicMerge` or `mergeType: JSONMerge`.
13+
1414
1515
bug fixes: |
1616
Fixed a control plane panic caused by concurrent Status mutation racing with the watchable Map coalesce goroutine.

site/content/en/latest/install/gateway-helm-api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ The Helm chart for Envoy Gateway
6767
| global.images.envoyGateway.image | string | `nil` | |
6868
| global.images.envoyGateway.pullPolicy | string | `nil` | |
6969
| global.images.envoyGateway.pullSecrets | list | `[]` | |
70-
| global.images.envoyProxy.image | string | `""` | |
71-
| global.images.envoyProxy.pullPolicy | string | `""` | |
72-
| global.images.envoyProxy.pullSecrets | list | `[]` | |
7370
| global.images.ratelimit.image | string | `"docker.io/envoyproxy/ratelimit:05c08d03"` | |
7471
| global.images.ratelimit.pullPolicy | string | `"IfNotPresent"` | |
7572
| global.images.ratelimit.pullSecrets | list | `[]` | |

test/helm/gateway-helm/global-images-config.in.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,3 @@ global:
1212
pullSecrets:
1313
- name: "secret3"
1414
- name: "secret4"
15-
envoyProxy:
16-
image: "private-hub/envoyproxy/envoy:dev"
17-
pullPolicy: Always
18-
pullSecrets:
19-
- name: "secret5"
20-
- name: "secret6"

test/helm/gateway-helm/global-images-config.out.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,6 @@ data:
2828
envoy-gateway.yaml: |
2929
apiVersion: gateway.envoyproxy.io/v1alpha1
3030
kind: EnvoyGateway
31-
envoyProxy:
32-
provider:
33-
kubernetes:
34-
envoyDeployment:
35-
container:
36-
image: private-hub/envoyproxy/envoy:dev
37-
imagePullPolicy: Always
38-
pod:
39-
imagePullSecrets:
40-
- name: secret5
41-
- name: secret6
42-
type: Kubernetes
4331
extensionApis: {}
4432
gateway:
4533
controllerName: gateway.envoyproxy.io/gatewayclass-controller

0 commit comments

Comments
 (0)