[oauth2-proxy] add support for ingressClassName (#592)

This commit is contained in:
Antoine Bertin 2021-02-16 00:17:57 +01:00 committed by GitHub
parent bb810f947a
commit a4b4eee806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,5 @@
name: oauth2-proxy name: oauth2-proxy
version: 4.3.0 version: 4.4.0
apiVersion: v1 apiVersion: v1
appVersion: 5.1.0 appVersion: 5.1.0
home: https://oauth2-proxy.github.io/oauth2-proxy/ home: https://oauth2-proxy.github.io/oauth2-proxy/

View File

@ -87,6 +87,7 @@ Parameter | Description | Default
`image.tag` | Image tag | `v5.1.0` `image.tag` | Image tag | `v5.1.0`
`imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods)
`ingress.enabled` | Enable Ingress | `false` `ingress.enabled` | Enable Ingress | `false`
`ingress.ingressClassName` | Set ingressClassName | `nil`
`ingress.path` | Ingress accepted path | `/` `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.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` `ingress.annotations` | Ingress annotations | `nil`

View File

@ -21,6 +21,11 @@ metadata:
{{ toYaml . | indent 4 }} {{ toYaml . | indent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}}
{{- if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- end }}
{{- end }}
rules: rules:
{{- range $host := .Values.ingress.hosts }} {{- range $host := .Values.ingress.hosts }}
- host: {{ $host | quote }} - host: {{ $host | quote }}

View File

@ -99,6 +99,8 @@ ingress:
# - secretName: chart-example-tls # - secretName: chart-example-tls
# hosts: # hosts:
# - chart-example.local # - chart-example.local
# Define the ingressClassName
# ingressClassName: nginx
resources: {} resources: {}
# limits: # limits: