-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from d-m/ingress-networking-v1-api
Use `k8s.networking.io/v1` Ingress API on Kubernetes 1.19+
- Loading branch information
Showing
31 changed files
with
292 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: rstudio-library | ||
repository: file://../rstudio-library | ||
version: 0.1.18 | ||
digest: sha256:9170e3975a7cdd32ed8dee2aadce77562b3723afcb616d19c40059bbfb9a5c0c | ||
generated: "2021-12-07T08:46:45.926756-05:00" | ||
version: 0.1.19 | ||
digest: sha256:3a52152a14dd67c078b2b6b66747e31618aaa97abbe3e8255b59762766bbb463 | ||
generated: "2021-12-17T12:28:47.58543-05:00" |
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
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
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,6 @@ | ||
dependencies: | ||
- name: rstudio-library | ||
repository: file://../rstudio-library | ||
version: 0.1.18 | ||
digest: sha256:9170e3975a7cdd32ed8dee2aadce77562b3723afcb616d19c40059bbfb9a5c0c | ||
generated: "2021-12-07T08:46:52.08596-05:00" | ||
version: 0.1.19 | ||
digest: sha256:3a52152a14dd67c078b2b6b66747e31618aaa97abbe3e8255b59762766bbb463 | ||
generated: "2021-12-22T09:57:49.943264-05:00" |
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,3 +1,7 @@ | ||
# 0.2.9 | ||
|
||
- Update `rstudio-library` chart dependency | ||
|
||
# 0.2.8 | ||
|
||
- Update `rstudio-library` chart dependency | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{{- /* | ||
Determine and return the Ingress API version | ||
*/ -}} | ||
{{- define "rstudio-library.ingress.apiVersion" -}} | ||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} | ||
networking.k8s.io/v1 | ||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }} | ||
networking.k8s.io/v1beta1 | ||
{{- else -}} | ||
extensions/v1beta1 | ||
{{- end -}} | ||
{{- end -}}{{- /* end define template */ -}} | ||
|
||
{{- /* | ||
Define the backend for an Ingress path | ||
Takes a dict: | ||
"apiVersion": "the API version for the Ingress resource" | ||
"svcName": "the target service name" | ||
"svcPort": "The target service port" | ||
*/ -}} | ||
{{- define "rstudio-library.ingress.backend" -}} | ||
{{- if or (eq .apiVersion "extensions/v1beta1") (eq .apiVersion "networking.k8s.io/v1beta1") -}} | ||
serviceName: {{ .svcName }} | ||
servicePort: {{ .svcPort }} | ||
{{- else -}} | ||
service: | ||
name: {{ .svcName }} | ||
port: | ||
{{- if typeIs "string" .svcPort }} | ||
name: {{ .svcPort }} | ||
{{- else if or (typeIs "int" .svcPort) (typeIs "float64" .svcPort) }} | ||
number: {{ .svcPort | int }} | ||
{{- end }} | ||
{{- end -}} | ||
{{- end -}}{{- /* end define template */ -}} | ||
|
||
{{- /* | ||
Return true if the apiVersion supports ingressClassName and false otherwise | ||
Takes an Ingress API version: | ||
"the API version for the Ingress resource" | ||
*/ -}} | ||
{{- define "rstudio-library.ingress.supportsIngressClassName" -}} | ||
{{- if or (eq . "extensions/v1beta1") (eq . "networking.k8s.io/v1beta1") -}} | ||
false | ||
{{- else -}} | ||
true | ||
{{- end -}} | ||
{{- end -}}{{- /* end define template */ -}} | ||
|
||
{{- /* | ||
Return true if the apiVersion supports pathType and false otherwise | ||
Takes an Ingress API version: | ||
"the API version for the Ingress resource" | ||
*/ -}} | ||
{{- define "rstudio-library.ingress.supportsPathType" -}} | ||
{{- if or (eq . "extensions/v1beta1") (eq . "networking.k8s.io/v1beta1") -}} | ||
false | ||
{{- else -}} | ||
true | ||
{{- end -}} | ||
{{- end -}}{{- /* end define template */ -}} |
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,6 @@ | ||
dependencies: | ||
- name: rstudio-library | ||
repository: file://../rstudio-library | ||
version: 0.1.18 | ||
digest: sha256:9170e3975a7cdd32ed8dee2aadce77562b3723afcb616d19c40059bbfb9a5c0c | ||
generated: "2021-12-07T08:46:58.937118-05:00" | ||
version: 0.1.19 | ||
digest: sha256:3a52152a14dd67c078b2b6b66747e31618aaa97abbe3e8255b59762766bbb463 | ||
generated: "2021-12-17T12:30:43.992325-05:00" |
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
Oops, something went wrong.