Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(plugin) kubenetes api #5026

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cloud/kubernetes/custom/api.pm
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ sub kubernetes_list_cronjobs {

my $response = $self->request_api_paginate(
method => 'GET',
url_path => $self->{namespace} ne '' ? '/apis/batch/v1beta1/namespaces/' . $self->{namespace} . '/cronjobs' : '/apis/batch/v1beta1/cronjobs'
url_path => $self->{namespace} ne '' ? '/apis/batch/v1/namespaces/' . $self->{namespace} . '/cronjobs' : '/apis/batch/v1/cronjobs'
);

return $response;
Expand Down Expand Up @@ -236,7 +236,7 @@ sub kubernetes_list_ingresses {

my $response = $self->request_api_paginate(
method => 'GET',
url_path => $self->{namespace} ne '' ? '/apis/extensions/v1beta1/namespaces/' . $self->{namespace} . '/ingresses' : '/apis/extensions/v1beta1/ingresses'
url_path => $self->{namespace} ne '' ? '/apis/networking.k8s.io/v1/namespaces/' . $self->{namespace} . '/ingresses' : '/apis/networking.k8s.io/v1/ingresses'
);

return $response;
Expand Down Expand Up @@ -369,7 +369,7 @@ See https://kubernetes.io/docs/reference/kubernetes-api/common-parameters/common

=item B<--namespace>

Set namespace to get informations.
Set namespace to get information.

=back

Expand Down
4 changes: 4 additions & 0 deletions tests/resources/spellcheck/stopwords.t
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,7 @@ uptime
userpass
v1
v2
VDSL2
Veeam
WSMAN
Kubernetes
Loading