mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
Fix ingress discovery api (#1110)
This commit is contained in:
parent
2ecee0515a
commit
7d92ef3acd
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue