Skip to content

Commit 482bcba

Browse files
upd app-proxy manifest for k8s 1.22+ (#269)
* upd app-proxy manifest for k8s 1.22+ * add ingressClassName field
1 parent 63f40ac commit 482bcba

File tree

8 files changed

+42
-27
lines changed

8 files changed

+42
-27
lines changed

charts/cf-runtime/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: cf-runtime
33
description: A Helm chart for Codefresh Runner
44
type: application
5-
version: 0.1.8
6-
appVersion: "0.1.8"
5+
version: 0.1.9
6+
appVersion: "0.1.9"

charts/cf-runtime/templates/app-proxy/ingress.app-proxy.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
{{ if .Values.appProxy.enabled }}
2-
apiVersion: networking.k8s.io/v1beta1
2+
apiVersion: networking.k8s.io/v1
33
kind: Ingress
44
metadata:
55
name: {{ include "cf-app-proxy.fullname" . }}
66
labels: {{- include "cf-app-proxy.labels" . | nindent 4 }}
77
annotations:
8-
{{ if .Values.appProxy.ingress.class }}kubernetes.io/ingress.class: {{ .Values.appProxy.ingress.class }}{{ end }}
98
{{ range $key, $value := .Values.appProxy.ingress.annotations }}
109
{{ $key }}: {{ $value | quote }}
1110
{{ end }}
1211
spec:
12+
{{ if .Values.appProxy.ingress.class }}
13+
ingressClassName: {{ .Values.appProxy.ingress.class }}
14+
{{ end }}
1315
rules:
1416
- host: {{ .Values.appProxy.ingress.host }}
1517
http:
1618
paths:
1719
- path: {{ if .Values.appProxy.ingress.pathPrefix }}{{ .Values.appProxy.ingress.pathPrefix }}{{ else }}'/'{{end}}
20+
pathType: ImplementationSpecific
1821
backend:
19-
serviceName: {{ include "cf-app-proxy.fullname" . }}
20-
servicePort: 80
22+
service:
23+
name: app-proxy
24+
port:
25+
number: 80
2126
{{ if .Values.appProxy.ingress.tlsSecret }}
2227
tls:
2328
- hosts:

venona/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.1
1+
1.7.2

venonactl/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.1
1+
1.7.2

venonactl/pkg/obj/kubeobj/kubeobj.go

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

venonactl/pkg/obj/kubeobj_generator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var functionsMap map[string]string = map[string]string{
4545
"v1beta1.Deployment": "ExtensionsV1beta1().Deployments(namespace)",
4646
"v1beta1.DaemonSet": "ExtensionsV1beta1().DaemonSets(namespace)",
4747

48-
"netV1beta1.Ingress": "NetworkingV1beta1().Ingresses(namespace)",
48+
"netv1.Ingress": "NetworkingV1().Ingresses(namespace)",
4949

5050
"appsv1.Deployment": "AppsV1().Deployments(namespace)",
5151
"appsv1.DaemonSet": "AppsV1().DaemonSets(namespace)",
@@ -81,7 +81,7 @@ import (
8181
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
8282
"k8s.io/api/core/v1"
8383
v1beta1 "k8s.io/api/extensions/v1beta1"
84-
netV1beta1 "k8s.io/api/networking/v1beta1"
84+
netv1 "k8s.io/api/networking/v1"
8585
appsv1 "k8s.io/api/apps/v1"
8686
8787
rbacv1beta1 "k8s.io/api/rbac/v1beta1"

venonactl/pkg/templates/kubernetes/ingress.app-proxy.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1-
apiVersion: networking.k8s.io/v1beta1
1+
apiVersion: networking.k8s.io/v1
22
kind: Ingress
33
metadata:
44
annotations:
5-
{{ if ne .AppProxy.Ingress.IngressClass "" }}kubernetes.io/ingress.class: {{ .AppProxy.Ingress.IngressClass }}{{ end }}
65
{{ range $key, $value := .AppProxy.Ingress.Annotations }}
76
{{ $key }}: {{ $value | quote | unescape }}
87
{{ end }}
98
name: app-proxy
109
namespace: {{ .Namespace }}
1110
spec:
11+
{{ if ne .AppProxy.Ingress.IngressClass "" }}
12+
ingressClassName: {{ .AppProxy.Ingress.IngressClass }}
13+
{{ end }}
1214
rules:
1315
- host: {{ .AppProxy.Ingress.Host }}
1416
http:
1517
paths:
1618
- path: {{ if .AppProxy.Ingress.PathPrefix }}{{ .AppProxy.Ingress.PathPrefix }}{{ else }}'/'{{end}}
19+
pathType: ImplementationSpecific
1720
backend:
18-
serviceName: app-proxy
19-
servicePort: 80
21+
service:
22+
name: app-proxy
23+
port:
24+
number: 80
2025
{{ if .AppProxy.Ingress.TLSSecret }}
2126
tls:
2227
- hosts:

venonactl/pkg/templates/kubernetes/templates.go

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)