forked from oauth2-proxy/oauth2-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ingress for apiVersion: networking.k8s.io/v1 (oauth2-proxy#37)
* Added ingress for apiVersion: networking.k8s.io/v1 fix variables added missing new line character * add deprecation yaml, docs + major version bump
- Loading branch information
Showing
7 changed files
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
ingress: | ||
extraPaths: | ||
- path: /* | ||
pathType: ImplementationSpecific | ||
backend: | ||
serviceName: ssl-redirect | ||
servicePort: use-annotation | ||
service: | ||
name: ssl-redirect | ||
port: | ||
name: use-annotation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- if .Values.checkDeprecation }} | ||
{{- if .Values.service.port }} | ||
{{ fail "`service.port` does no longer exist. It has been renamed to `service.portNumber`" }} | ||
{{- end }} | ||
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}} | ||
{{- range .Values.ingress.extraPaths }} | ||
{{- if or (.backend.serviceName) (.backend.servicePort) }} | ||
{{ fail "Please update the format of your `ingress.extraPaths` to the new ingress apiVersion `networking.k8s.io/v1` format" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters