From 7318bf4d6844090a03df9b5533c9c8e070fa9884 Mon Sep 17 00:00:00 2001 From: Colin Gagnaire Date: Thu, 11 Mar 2021 14:16:13 +0100 Subject: [PATCH] enh(cloud/kubernetes): align services wording (#2646) --- cloud/kubernetes/mode/deploymentstatus.pm | 2 +- cloud/kubernetes/mode/nodestatus.pm | 4 ++-- cloud/kubernetes/mode/nodeusage.pm | 4 ++-- cloud/kubernetes/mode/persistentvolumestatus.pm | 4 ++-- cloud/kubernetes/mode/podstatus.pm | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cloud/kubernetes/mode/deploymentstatus.pm b/cloud/kubernetes/mode/deploymentstatus.pm index 3d61a407e..f1b42838c 100644 --- a/cloud/kubernetes/mode/deploymentstatus.pm +++ b/cloud/kubernetes/mode/deploymentstatus.pm @@ -166,7 +166,7 @@ sub manage_selection { } if (scalar(keys %{$self->{deployments}}) <= 0) { - $self->{output}->add_option_msg(short_msg => "No deployments found."); + $self->{output}->add_option_msg(short_msg => "No Deployments found."); $self->{output}->option_exit(); } } diff --git a/cloud/kubernetes/mode/nodestatus.pm b/cloud/kubernetes/mode/nodestatus.pm index 73689a9d5..980cf7e17 100644 --- a/cloud/kubernetes/mode/nodestatus.pm +++ b/cloud/kubernetes/mode/nodestatus.pm @@ -51,7 +51,7 @@ sub set_counters { $self->{maps_counters_type} = [ { name => 'nodes', type => 3, cb_prefix_output => 'prefix_output', cb_long_output => 'long_output', - message_multiple => 'All nodes status are ok', indent_long_output => ' ', + message_multiple => 'All Nodes status are ok', indent_long_output => ' ', group => [ { name => 'conditions', display_long => 1, cb_prefix_output => 'prefix_condition_output', message_multiple => 'Conditions are ok', type => 1, skipped_code => { -10 => 1 } }, @@ -142,7 +142,7 @@ sub manage_selection { } if (scalar(keys %{$self->{nodes}}) <= 0) { - $self->{output}->add_option_msg(short_msg => "No nodes found."); + $self->{output}->add_option_msg(short_msg => "No Nodes found."); $self->{output}->option_exit(); } } diff --git a/cloud/kubernetes/mode/nodeusage.pm b/cloud/kubernetes/mode/nodeusage.pm index 5bce9a911..d9ab937c2 100644 --- a/cloud/kubernetes/mode/nodeusage.pm +++ b/cloud/kubernetes/mode/nodeusage.pm @@ -103,7 +103,7 @@ sub set_counters { $self->{maps_counters_type} = [ { name => 'nodes', type => 1, cb_prefix_output => 'prefix_node_output', - message_multiple => 'All nodes usage are ok', skipped_code => { -11 => 1 } }, + message_multiple => 'All Nodes usage are ok', skipped_code => { -11 => 1 } }, ]; $self->{maps_counters}->{nodes} = [ @@ -216,7 +216,7 @@ sub manage_selection { } if (scalar(keys %{$self->{nodes}}) <= 0) { - $self->{output}->add_option_msg(short_msg => "No nodes found."); + $self->{output}->add_option_msg(short_msg => "No Nodes found."); $self->{output}->option_exit(); } diff --git a/cloud/kubernetes/mode/persistentvolumestatus.pm b/cloud/kubernetes/mode/persistentvolumestatus.pm index 7893a729a..2e83f2b6c 100644 --- a/cloud/kubernetes/mode/persistentvolumestatus.pm +++ b/cloud/kubernetes/mode/persistentvolumestatus.pm @@ -47,7 +47,7 @@ sub set_counters { $self->{maps_counters_type} = [ { name => 'pvs', type => 1, cb_prefix_output => 'prefix_pv_output', - message_multiple => 'All persistent volume status are ok', skipped_code => { -11 => 1 } }, + message_multiple => 'All PersistentVolumes status are ok', skipped_code => { -11 => 1 } }, ]; $self->{maps_counters}->{pvs} = [ @@ -111,7 +111,7 @@ sub manage_selection { } if (scalar(keys %{$self->{pvs}}) <= 0) { - $self->{output}->add_option_msg(short_msg => "No persistent volumes found."); + $self->{output}->add_option_msg(short_msg => "No PersistentVolumes found."); $self->{output}->option_exit(); } } diff --git a/cloud/kubernetes/mode/podstatus.pm b/cloud/kubernetes/mode/podstatus.pm index 64ffd93a8..d7856ecb9 100644 --- a/cloud/kubernetes/mode/podstatus.pm +++ b/cloud/kubernetes/mode/podstatus.pm @@ -126,7 +126,7 @@ sub set_counters { $self->{maps_counters_type} = [ { name => 'pods', type => 3, cb_prefix_output => 'prefix_pod_output', cb_long_output => 'long_output', - message_multiple => 'All pods status are ok', indent_long_output => ' ', + message_multiple => 'All Pods status are ok', indent_long_output => ' ', group => [ { name => 'global', type => 0, skipped_code => { -10 => 1 } }, { name => 'containers', display_long => 1, cb_prefix_output => 'prefix_container_output', @@ -286,7 +286,7 @@ sub manage_selection { } if (scalar(keys %{$self->{pods}}) <= 0) { - $self->{output}->add_option_msg(short_msg => "No pods found."); + $self->{output}->add_option_msg(short_msg => "No Pods found."); $self->{output}->option_exit(); } }