From 62e4df72d32f615dd88e78bdb3654f043b9d5b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Br=C3=A4mer?= Date: Thu, 22 Oct 2020 15:59:22 +0200 Subject: [PATCH 1/2] Add Service name references for Ingress v1 Since Kubernetes v1.19, Ingress networking.k8s.io/v1 has two more Server name references. - https://kubernetes.io/docs/concepts/services-networking/ingress/#the-ingress-resource - https://kubernetes.io/docs/setup/release/notes/ --- api/konfig/builtinpluginconsts/namereference.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/konfig/builtinpluginconsts/namereference.go b/api/konfig/builtinpluginconsts/namereference.go index c8862876bd..30b7d3842b 100644 --- a/api/konfig/builtinpluginconsts/namereference.go +++ b/api/konfig/builtinpluginconsts/namereference.go @@ -267,6 +267,10 @@ nameReference: kind: Ingress - path: spec/backend/serviceName kind: Ingress + - path: spec/rules/http/paths/backend/service/name + kind: Ingress + - path: spec/defaultBackend/service/name + kind: Ingress - path: spec/service/name kind: APIService group: apiregistration.k8s.io From 1dbf4901461a99e05851cf9cb9d80d084485c15a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Br=C3=A4mer?= Date: Thu, 22 Oct 2020 16:11:44 +0200 Subject: [PATCH 2/2] Add IngressClass kind Adds IngressClass kind and Ingress fieldSpecs path spec/ingressClassName --- api/konfig/builtinpluginconsts/namereference.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/konfig/builtinpluginconsts/namereference.go b/api/konfig/builtinpluginconsts/namereference.go index 30b7d3842b..05f702f8a2 100644 --- a/api/konfig/builtinpluginconsts/namereference.go +++ b/api/konfig/builtinpluginconsts/namereference.go @@ -377,5 +377,12 @@ nameReference: kind: Job - path: spec/template/spec/priorityClassName kind: DaemonSet + +- kind: IngressClass + version: v1 + group: networking.k8s.io/v1 + fieldSpecs: + - path: spec/ingressClassName + kind: Ingress ` )