You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the server could not find the requested resource","reason":"NotFound","details":{},"code":404}
the problem is still present on the version Global Version: 20240411 (e7bf805) of the centreon_kubernetes_api.pl plugins.
So I modified the line 8774
url_path => $self->{namespace} ne '' ? '/apis/batch/v1beta1/namespaces/' . $self->{namespace} . '/cronjobs': '/apis/batch/v1beta1/cronjobs'
Hello,
I think than the uri for api cronjob have change in GCP kubernetes (GKE).
old uri : /apis/batch/v1beta1/cronjobs
new uri : /apis/batch/v1/cronjobs
test:
beta uri :
curl -H "Authorization: Bearer " -H "Accept: application/json"
-H "User-Agent: centreon::plugins::backend::http::useragent"
https://TTT.PPP.YYYY.XXX:443**/apis/batch/v1beta1/cronjobs**?limit=100 -k
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the server could not find the requested resource","reason":"NotFound","details":{},"code":404}
no beta uri :
curl -H "Authorization: Bearer " -H "Accept: application/json"
-H "User-Agent: centreon::plugins::backend::http::useragent"
https://TTT.PPP.YYYY.XXX:443**/apis/batch/v1/cronjobs**?limit=100 -k
{"kind":"CronJobList","apiVersion":"batch/v1","metadata":{"resourceVersion":"142751960"},"items":[]}
The text was updated successfully, but these errors were encountered: