Fix ingress discovery api (#1110)

This commit is contained in:
Nikolay 2021-03-03 11:43:39 +03:00 committed by GitHub
parent 7906316741
commit e154f4a644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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