Skip to content

Commit

Permalink
feat(helm): support pulling envoyGateway image from a private registry (
Browse files Browse the repository at this point in the history
#2335)

* feat(helm): add imagePullSecrets support for envoyGateway image

Signed-off-by: Shahar Harari <[email protected]>

* run make generate

Signed-off-by: Shahar Harari <[email protected]>

* fix indentation

Signed-off-by: Shahar Harari <[email protected]>

---------

Signed-off-by: Shahar Harari <[email protected]>
Co-authored-by: Xunzhuo <[email protected]>
Co-authored-by: zirain <[email protected]>
  • Loading branch information
3 people authored Dec 27, 2023
1 parent 690e469 commit 787f48e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/gateway-helm/templates/certgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
value: {{ .Values.kubernetesClusterDomain }}
image: {{ .Values.deployment.envoyGateway.image.repository }}:{{ .Values.deployment.envoyGateway.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.deployment.envoyGateway.imagePullPolicy }}
{{- with .Values.deployment.envoyGateway.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
name: envoy-gateway-certgen
restartPolicy: Never
securityContext:
Expand Down
4 changes: 4 additions & 0 deletions charts/gateway-helm/templates/envoy-gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ spec:
value: {{ .Values.kubernetesClusterDomain }}
image: {{ .Values.deployment.envoyGateway.image.repository }}:{{ .Values.deployment.envoyGateway.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.deployment.envoyGateway.imagePullPolicy }}
{{- with .Values.deployment.envoyGateway.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
livenessProbe:
httpGet:
path: /healthz
Expand Down
1 change: 1 addition & 0 deletions charts/gateway-helm/values.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ deployment:
repository: ${ImageRepository}
tag: '${ImageTag}'
imagePullPolicy: Always
imagePullSecrets: []
resources:
limits:
cpu: 500m
Expand Down
1 change: 1 addition & 0 deletions site/content/en/latest/install/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The Helm chart for Envoy Gateway
| deployment.envoyGateway.image.repository | string | `"${ImageRepository}"` | |
| deployment.envoyGateway.image.tag | string | `"${ImageTag}"` | |
| deployment.envoyGateway.imagePullPolicy | string | `"Always"` | |
| deployment.envoyGateway.imagePullSecrets | list | `[]` | |
| deployment.envoyGateway.resources.limits.cpu | string | `"500m"` | |
| deployment.envoyGateway.resources.limits.memory | string | `"1024Mi"` | |
| deployment.envoyGateway.resources.requests.cpu | string | `"100m"` | |
Expand Down

0 comments on commit 787f48e

Please sign in to comment.