mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
Update kubectl.pm (#2733)
sub kubernetes_list_ingresses ADDED (it was missing comparing to api.pm)
This commit is contained in:
parent
a8378aa1cb
commit
7b46f12d66
@ -186,6 +186,18 @@ sub kubernetes_list_events {
|
|||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub kubernetes_list_ingresses {
|
||||||
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
my $cmd = "get ingresses --all-namespaces --output='json' --kubeconfig='" . $self->{config_file} . "'"
|
||||||
|
. " --request-timeout='" . $self->{timeout} . "'";
|
||||||
|
$cmd .= " --context='" . $self->{context} . "'" if (defined($self->{context}) && $self->{context} ne '');
|
||||||
|
|
||||||
|
my $response = $self->execute(cmd_options => $cmd);
|
||||||
|
|
||||||
|
return $response;
|
||||||
|
}
|
||||||
|
|
||||||
sub kubernetes_list_namespaces {
|
sub kubernetes_list_namespaces {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user