diff --git a/charts/oauth2-proxy/Chart.yaml b/charts/oauth2-proxy/Chart.yaml index 2adc208e..033a9561 100644 --- a/charts/oauth2-proxy/Chart.yaml +++ b/charts/oauth2-proxy/Chart.yaml @@ -1,5 +1,5 @@ name: oauth2-proxy -version: 4.3.0 +version: 4.4.0 apiVersion: v1 appVersion: 5.1.0 home: https://oauth2-proxy.github.io/oauth2-proxy/ diff --git a/charts/oauth2-proxy/README.md b/charts/oauth2-proxy/README.md index 21433b63..1463a6c2 100644 --- a/charts/oauth2-proxy/README.md +++ b/charts/oauth2-proxy/README.md @@ -87,6 +87,7 @@ Parameter | Description | Default `image.tag` | Image tag | `v5.1.0` `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) `ingress.enabled` | Enable Ingress | `false` +`ingress.ingressClassName` | Set ingressClassName | `nil` `ingress.path` | Ingress accepted path | `/` `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). | `[]` `ingress.annotations` | Ingress annotations | `nil` diff --git a/charts/oauth2-proxy/templates/ingress.yaml b/charts/oauth2-proxy/templates/ingress.yaml index 31628d03..2d25aadc 100644 --- a/charts/oauth2-proxy/templates/ingress.yaml +++ b/charts/oauth2-proxy/templates/ingress.yaml @@ -21,6 +21,11 @@ metadata: {{ toYaml . | indent 4 }} {{- end }} spec: + {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}} + {{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} + {{- end }} + {{- end }} rules: {{- range $host := .Values.ingress.hosts }} - host: {{ $host | quote }} diff --git a/charts/oauth2-proxy/values.yaml b/charts/oauth2-proxy/values.yaml index 8a03a2d1..d81ed1bf 100644 --- a/charts/oauth2-proxy/values.yaml +++ b/charts/oauth2-proxy/values.yaml @@ -99,6 +99,8 @@ ingress: # - secretName: chart-example-tls # hosts: # - chart-example.local + # Define the ingressClassName + # ingressClassName: nginx resources: {} # limits: