Skip to content

Commit fcddc4d

Browse files
lboyntonzirain
andauthored
feat: allow deployment annotations to be added through helm (envoyproxy#6341)
* feat: allow deployment annotations to be added through helm Signed-off-by: Lee Boynton <[email protected]> * Update changelog Signed-off-by: Lee Boynton <[email protected]> * Update readme values Signed-off-by: Lee Boynton <[email protected]> * update readme Signed-off-by: Lee Boynton <[email protected]> * add test Signed-off-by: Lee Boynton <[email protected]> * fix test, order is important Signed-off-by: Lee Boynton <[email protected]> --------- Signed-off-by: Lee Boynton <[email protected]> Co-authored-by: zirain <[email protected]>
1 parent 752687d commit fcddc4d

File tree

7 files changed

+712
-0
lines changed

7 files changed

+712
-0
lines changed

charts/gateway-helm/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ To uninstall the chart:
6262
| certgen | object | `{"job":{"affinity":{},"annotations":{},"args":[],"nodeSelector":{},"resources":{},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532,"seccompProfile":{"type":"RuntimeDefault"}},"tolerations":[],"ttlSecondsAfterFinished":30},"rbac":{"annotations":{},"labels":{}}}` | Certgen is used to generate the certificates required by EnvoyGateway. If you want to construct a custom certificate, you can generate a custom certificate through Cert-Manager before installing EnvoyGateway. Certgen will not overwrite the custom certificate. Please do not manually modify `values.yaml` to disable certgen, it may cause EnvoyGateway OIDC,OAuth2,etc. to not work as expected. |
6363
| config.envoyGateway | object | `{"extensionApis":{},"gateway":{"controllerName":"gateway.envoyproxy.io/gatewayclass-controller"},"logging":{"level":{"default":"info"}},"provider":{"type":"Kubernetes"}}` | EnvoyGateway configuration. Visit https://gateway.envoyproxy.io/docs/api/extension_types/#envoygateway to view all options. |
6464
| createNamespace | bool | `false` | |
65+
| deployment.annotations | object | `{}` | |
6566
| deployment.envoyGateway.image.repository | string | `""` | |
6667
| deployment.envoyGateway.image.tag | string | `""` | |
6768
| deployment.envoyGateway.imagePullPolicy | string | `""` | |

charts/gateway-helm/templates/envoy-gateway-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ kind: Deployment
33
metadata:
44
name: envoy-gateway
55
namespace: '{{ .Release.Namespace }}'
6+
{{- with .Values.deployment.annotations }}
7+
annotations:
8+
{{- toYaml . | nindent 4 }}
9+
{{- end }}
610
labels:
711
control-plane: envoy-gateway
812
{{- include "eg.labels" . | nindent 4 }}

charts/gateway-helm/values.tmpl.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ podDisruptionBudget:
3131
# maxUnavailable: 1
3232

3333
deployment:
34+
annotations: {}
3435
envoyGateway:
3536
image:
3637
# if both this and global.imageRegistry are specified, this has to include both registry and repository explicitly, eg docker.io/envoyproxy/gateway

release-notes/current.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ new features: |
2929
Added support for configuring user provided name to generated HorizontalPodAutoscaler and PodDisruptionBudget resources.
3030
Added support for client certificate validation (SPKI, hash, SAN) in ClientTrafficPolicy.
3131
Added support for OIDC RP initialized logout. If the end session endpoint is explicitly specified or discovered from the issuer's well-known url, the end session endpoint will be invoked when the user logs out.
32+
Added support for specifying deployment annotations through the helm chart.
3233
3334
3435
bug fixes: |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ The Helm chart for Envoy Gateway
2626
| certgen | object | `{"job":{"affinity":{},"annotations":{},"args":[],"nodeSelector":{},"resources":{},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532,"seccompProfile":{"type":"RuntimeDefault"}},"tolerations":[],"ttlSecondsAfterFinished":30},"rbac":{"annotations":{},"labels":{}}}` | Certgen is used to generate the certificates required by EnvoyGateway. If you want to construct a custom certificate, you can generate a custom certificate through Cert-Manager before installing EnvoyGateway. Certgen will not overwrite the custom certificate. Please do not manually modify `values.yaml` to disable certgen, it may cause EnvoyGateway OIDC,OAuth2,etc. to not work as expected. |
2727
| config.envoyGateway | object | `{"extensionApis":{},"gateway":{"controllerName":"gateway.envoyproxy.io/gatewayclass-controller"},"logging":{"level":{"default":"info"}},"provider":{"type":"Kubernetes"}}` | EnvoyGateway configuration. Visit https://gateway.envoyproxy.io/docs/api/extension_types/#envoygateway to view all options. |
2828
| createNamespace | bool | `false` | |
29+
| deployment.annotations | object | `{}` | |
2930
| deployment.envoyGateway.image.repository | string | `""` | |
3031
| deployment.envoyGateway.image.tag | string | `""` | |
3132
| deployment.envoyGateway.imagePullPolicy | string | `""` | |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
global:
2+
images:
3+
envoyGateway:
4+
image: "docker.io/envoyproxy/gateway-dev:latest"
5+
pullPolicy: Always
6+
7+
deployment:
8+
annotations:
9+
my-custom-annotation-1: example-1
10+
my-custom-annotation-2: example-2
11+
my-custom-annotation-3: example-3

0 commit comments

Comments
 (0)