From aea6146eb03878184ff61d17254b16f5a567d458 Mon Sep 17 00:00:00 2001 From: Jorik Jonker Date: Tue, 24 Aug 2021 15:44:44 +0200 Subject: [PATCH] Allow specification of ingressClassName Signed-off-by: Jorik Jonker --- helm/oauth2-proxy/Chart.yaml | 2 +- helm/oauth2-proxy/README.md | 1 + helm/oauth2-proxy/templates/ingress.yaml | 3 +++ helm/oauth2-proxy/values.yaml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/helm/oauth2-proxy/Chart.yaml b/helm/oauth2-proxy/Chart.yaml index c6762863..7bf652be 100644 --- a/helm/oauth2-proxy/Chart.yaml +++ b/helm/oauth2-proxy/Chart.yaml @@ -1,5 +1,5 @@ name: oauth2-proxy -version: 4.1.1 +version: 4.2.0 apiVersion: v2 appVersion: 7.1.3 home: https://oauth2-proxy.github.io/oauth2-proxy/ diff --git a/helm/oauth2-proxy/README.md b/helm/oauth2-proxy/README.md index 4b847271..20a4e46b 100644 --- a/helm/oauth2-proxy/README.md +++ b/helm/oauth2-proxy/README.md @@ -96,6 +96,7 @@ Parameter | Description | Default `image.tag` | Image tag | `v7.1.3` `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) `ingress.enabled` | Enable Ingress | `false` +`ingress.className` | name referencing IngressClass | `nil` `ingress.path` | Ingress accepted path | `/` `ingress.pathType` | Ingress [path type](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types) | `ImplementationSpecific` `ingress.extraPaths` | Ingress extra paths to prepend to every host configuration. Useful when configuring [custom actions with AWS ALB Ingress Controller](https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/ingress/annotation/#actions). | `[]` diff --git a/helm/oauth2-proxy/templates/ingress.yaml b/helm/oauth2-proxy/templates/ingress.yaml index 07a7f982..038a5ebf 100644 --- a/helm/oauth2-proxy/templates/ingress.yaml +++ b/helm/oauth2-proxy/templates/ingress.yaml @@ -26,6 +26,9 @@ metadata: {{ toYaml . | indent 4 }} {{- end }} spec: + {{- if .Values.ingress.className }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} rules: {{- range $host := .Values.ingress.hosts }} - host: {{ $host | quote }} diff --git a/helm/oauth2-proxy/values.yaml b/helm/oauth2-proxy/values.yaml index e3777811..76270e1b 100644 --- a/helm/oauth2-proxy/values.yaml +++ b/helm/oauth2-proxy/values.yaml @@ -92,6 +92,7 @@ serviceAccount: ingress: enabled: false + # className: nginx path: / # Only used if API capabilities (networking.k8s.io/v1) allow it pathType: ImplementationSpecific