Update kubectl.pm (#2733)

sub kubernetes_list_ingresses ADDED (it was missing comparing to api.pm)
This commit is contained in:
matoy 2021-04-23 10:01:22 +02:00 committed by GitHub
parent cf2b2c162e
commit c2ddf8bb4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -186,6 +186,18 @@ sub kubernetes_list_events {
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 {
my ($self, %options) = @_;