Skip to content

Commit

Permalink
Add change to namespace value
Browse files Browse the repository at this point in the history
  • Loading branch information
pipo02mix committed Dec 19, 2024
1 parent b25843a commit 3fab174
Show file tree
Hide file tree
Showing 23 changed files with 294 additions and 604 deletions.
46 changes: 16 additions & 30 deletions helm/envoy-gateway/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# envoy-gateway
# gateway-helm

![Version: v0.0.0-latest](https://img.shields.io/badge/Version-v0.0.0--latest-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

The Helm chart for Envoy Gateway

**Homepage:** <https://github.com/giantswarm/envoy-gateway-app>
**Homepage:** <https://gateway.envoyproxy.io/>

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| envoy-gateway-steering-committee | | <https://github.com/envoyproxy/gateway/blob/main/GOVERNANCE.md> |
| envoy-gateway-maintainers | | <https://github.com/envoyproxy/gateway/blob/main/CODEOWNERS> |

## Source Code

Expand Down Expand Up @@ -50,30 +59,13 @@ To uninstall the chart:

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| certgen.job.affinity | object | `{}` | |
| certgen.job.annotations | object | `{}` | |
| certgen.job.nodeSelector | object | `{}` | |
| certgen.job.resources.limits.memory | string | `"500Mi"` | |
| certgen.job.resources.requests.cpu | string | `"50m"` | |
| certgen.job.resources.requests.memory | string | `"100Mi"` | |
| certgen.job.securityContext.allowPrivilegeEscalation | bool | `false` | |
| certgen.job.securityContext.capabilities.drop[0] | string | `"ALL"` | |
| certgen.job.securityContext.privileged | bool | `false` | |
| certgen.job.securityContext.readOnlyRootFilesystem | bool | `true` | |
| certgen.job.securityContext.runAsGroup | int | `65534` | |
| certgen.job.securityContext.runAsNonRoot | bool | `true` | |
| certgen.job.securityContext.runAsUser | int | `65534` | |
| certgen.job.securityContext.seccompProfile.type | string | `"RuntimeDefault"` | |
| certgen.job.tolerations | list | `[]` | |
| certgen.job.ttlSecondsAfterFinished | int | `30` | |
| certgen.rbac.annotations | object | `{}` | |
| certgen.rbac.labels | object | `{}` | |
| certgen | object | `{"job":{"affinity":{},"annotations":{},"nodeSelector":{},"resources":{},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsGroup":65534,"runAsNonRoot":true,"runAsUser":65534,"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. |
| config.envoyGateway.gateway.controllerName | string | `"gateway.envoyproxy.io/gatewayclass-controller"` | |
| config.envoyGateway.logging.level.default | string | `"info"` | |
| config.envoyGateway.provider.type | string | `"Kubernetes"` | |
| createNamespace | bool | `false` | |
| deployment.envoyGateway.image.name | string | `"envoyproxy-gateway"` | |
| deployment.envoyGateway.image.tag | string | `"v1.2.1"` | |
| deployment.envoyGateway.image.repository | string | `""` | |
| deployment.envoyGateway.image.tag | string | `""` | |
| deployment.envoyGateway.imagePullPolicy | string | `""` | |
| deployment.envoyGateway.imagePullSecrets | list | `[]` | |
| deployment.envoyGateway.resources.limits.memory | string | `"1024Mi"` | |
Expand All @@ -82,7 +74,6 @@ To uninstall the chart:
| deployment.envoyGateway.securityContext.allowPrivilegeEscalation | bool | `false` | |
| deployment.envoyGateway.securityContext.capabilities.drop[0] | string | `"ALL"` | |
| deployment.envoyGateway.securityContext.privileged | bool | `false` | |
| deployment.envoyGateway.securityContext.readOnlyRootFilesystem | bool | `true` | |
| deployment.envoyGateway.securityContext.runAsGroup | int | `65532` | |
| deployment.envoyGateway.securityContext.runAsNonRoot | bool | `true` | |
| deployment.envoyGateway.securityContext.runAsUser | int | `65532` | |
Expand All @@ -108,18 +99,13 @@ To uninstall the chart:
| deployment.ports[3].targetPort | int | `19001` | |
| deployment.priorityClassName | string | `nil` | |
| deployment.replicas | int | `1` | |
| global.images.envoyGateway.image | string | `"docker.io/envoyproxy/gateway:v1.2.1"` | |
| global.images.envoyGateway.pullPolicy | string | `"IfNotPresent"` | |
| global.images.envoyGateway.image | string | `nil` | |
| global.images.envoyGateway.pullPolicy | string | `nil` | |
| global.images.envoyGateway.pullSecrets | list | `[]` | |
| global.images.ratelimit.image | string | `"docker.io/envoyproxy/ratelimit:master"` | |
| global.images.ratelimit.pullPolicy | string | `"IfNotPresent"` | |
| global.images.ratelimit.pullSecrets | list | `[]` | |
| image.registry | string | `"gsoci.azurecr.io"` | |
| image.repository | string | `"giantswarm"` | |
| kubernetesClusterDomain | string | `"cluster.local"` | |
| podDisruptionBudget.minAvailable | int | `0` | |
| service.annotations | object | `{}` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)

6 changes: 3 additions & 3 deletions helm/envoy-gateway/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Thank you for installing Envoy Gateway! 🎉

Your release is named: {{ .Release.Name }}. 🎉

Your release is in namespace: {{ .Release.Namespace }}. 🎉
Your release is in namespace: '{{ .Values.namespace }}. 🎉

To learn more about the release, try:

$ helm status {{ .Release.Name }} -n {{ .Release.Namespace }}
$ helm get all {{ .Release.Name }} -n {{ .Release.Namespace }}
$ helm status {{ .Release.Name }} -n '{{ .Values.namespace }}
$ helm get all {{ .Release.Name }} -n '{{ .Values.namespace }}

To have a quickstart of Envoy Gateway, please refer to https://gateway.envoyproxy.io/latest/tasks/quickstart.

Expand Down
5 changes: 2 additions & 3 deletions helm/envoy-gateway/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ helm.sh/chart: {{ include "eg.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
application.giantswarm.io/team: {{ index .Chart.Annotations "application.giantswarm.io/team" | quote }}
{{- end }}

{{/*
Expand All @@ -66,8 +65,8 @@ Create the name of the service account to use
The name of the Envoy Gateway image.
*/}}
{{- define "eg.image" -}}
{{- if .Values.image.registry }}
{{- .Values.image.registry }}/{{- .Values.image.repository }}/{{- .Values.deployment.envoyGateway.image.name }}:{{ .Values.deployment.envoyGateway.image.tag | default .Chart.AppVersion }}
{{- if .Values.deployment.envoyGateway.image.repository }}
{{- .Values.deployment.envoyGateway.image.repository }}:{{ .Values.deployment.envoyGateway.image.tag | default .Values.global.images.envoyGateway.tag | default .Chart.AppVersion }}
{{- else if .Values.global.images.envoyGateway.image }}
{{- .Values.global.images.envoyGateway.image }}
{{- else }}
Expand Down
43 changes: 0 additions & 43 deletions helm/envoy-gateway/templates/certgen-cnp.yaml

This file was deleted.

44 changes: 0 additions & 44 deletions helm/envoy-gateway/templates/certgen-netpol.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions helm/envoy-gateway/templates/certgen-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "eg.fullname" . }}-certgen
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Values.namespace }}'
labels:
{{- include "eg.labels" . | nindent 4 }}
{{- if .Values.certgen.rbac.labels }}
Expand All @@ -18,7 +18,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "eg.fullname" . }}-certgen
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Values.namespace }}'
labels:
{{- include "eg.labels" . | nindent 4 }}
{{- if .Values.certgen.rbac.labels }}
Expand All @@ -43,7 +43,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "eg.fullname" . }}-certgen
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Values.namespace }}'
labels:
{{- include "eg.labels" . | nindent 4 }}
{{- if .Values.certgen.rbac.labels }}
Expand All @@ -61,4 +61,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: '{{ include "eg.fullname" . }}-certgen'
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Values.namespace }}'
2 changes: 1 addition & 1 deletion helm/envoy-gateway/templates/certgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "eg.fullname" . }}-certgen
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Values.namespace }}'
labels:
{{- include "eg.labels" . | nindent 4 }}
annotations:
Expand Down
41 changes: 0 additions & 41 deletions helm/envoy-gateway/templates/envoy-gateway-cnp.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion helm/envoy-gateway/templates/envoy-gateway-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: envoy-gateway-config
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Values.namespace }}'
labels:
{{- include "eg.labels" . | nindent 4 }}
data:
Expand Down
2 changes: 1 addition & 1 deletion helm/envoy-gateway/templates/envoy-gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: envoy-gateway
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Values.namespace }}'
labels:
control-plane: envoy-gateway
{{- include "eg.labels" . | nindent 4 }}
Expand Down
45 changes: 0 additions & 45 deletions helm/envoy-gateway/templates/envoy-gateway-netpol.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: envoy-gateway
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Values.namespace }}'
spec:
{{- if and .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
Expand Down
4 changes: 2 additions & 2 deletions helm/envoy-gateway/templates/envoy-gateway-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: 'envoy-gateway'
namespace: '{{ .Release.Namespace }}'
namespace: {{ .Values.namespace }}'
{{ else }}
---
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -78,5 +78,5 @@ roleRef:
subjects:
- kind: ServiceAccount
name: 'envoy-gateway'
namespace: '{{ .Release.Namespace }}'
namespace: {{ .Values.namespace }}'
{{ end }}
2 changes: 1 addition & 1 deletion helm/envoy-gateway/templates/envoy-gateway-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: envoy-gateway
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Values.namespace }}'
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: envoy-gateway
namespace: '{{ .Release.Namespace }}'
namespace: '{{ .Values.namespace }}'
labels:
{{- include "eg.labels" . | nindent 4 }}
Loading

0 comments on commit 3fab174

Please sign in to comment.