Fix ingress discovery api (#1110)

This commit is contained in:
Nikolay 2021-03-03 11:43:39 +03:00 committed by Aliaksandr Valialkin
parent 2ecee0515a
commit 7d92ef3acd

View file

@ -528,6 +528,9 @@ func getAPIPath(objectName, namespace, query string) string {
if len(query) > 0 { if len(query) > 0 {
suffix += "?" + query suffix += "?" + query
} }
if objectName == "ingresses" {
return "/apis/networking.k8s.io/v1beta1/" + suffix
}
if objectName == "endpointslices" { if objectName == "endpointslices" {
return "/apis/discovery.k8s.io/v1beta1/" + suffix return "/apis/discovery.k8s.io/v1beta1/" + suffix
} }