Update kubectl.pm (#2733)
sub kubernetes_list_ingresses ADDED (it was missing comparing to api.pm)
This commit is contained in:
parent
cf2b2c162e
commit
c2ddf8bb4c
|
@ -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) = @_;
|
||||
|
||||
|
|
Loading…
Reference in New Issue