@@ -62,7 +62,6 @@ type describeClusterOptions struct {
62
62
showClusterResourceSets bool
63
63
showTemplates bool
64
64
echo bool
65
- disableNoEcho bool
66
65
grouping bool
67
66
disableGrouping bool
68
67
color bool
@@ -92,9 +91,9 @@ var describeClusterClusterCmd = &cobra.Command{
92
91
# e.g. un-group all the machines with Ready=true instead of showing a single group node.
93
92
clusterctl describe cluster test-1 --grouping=false
94
93
95
- # Describe the cluster named test-1 disabling automatic echo suppression
96
- # e.g. show the infrastructure machine objects, no matter if the current state is already reported by the machine's Ready condition .
97
- clusterctl describe cluster test-1 --disable-no- echo` ),
94
+ # Describe the cluster named test-1 showing the MachineInfrastructure and BootstrapConfig objects
95
+ # also when their status is the same as the status of the corresponding machine object .
96
+ clusterctl describe cluster test-1 --echo` ),
98
97
99
98
Args : func (cmd * cobra.Command , args []string ) error {
100
99
if len (args ) != 1 {
@@ -126,10 +125,6 @@ func init() {
126
125
127
126
describeClusterClusterCmd .Flags ().BoolVar (& dc .echo , "echo" , false , "" +
128
127
"Show MachineInfrastructure and BootstrapConfig when ready condition is true or it has the Status, Severity and Reason of the machine's object." )
129
- describeClusterClusterCmd .Flags ().BoolVar (& dc .disableNoEcho , "disable-no-echo" , false , "" +
130
- "Disable hiding of a MachineInfrastructure and BootstrapConfig when ready condition is true or it has the Status, Severity and Reason of the machine's object." )
131
- _ = describeClusterClusterCmd .Flags ().MarkDeprecated ("disable-no-echo" ,
132
- "use --echo instead." )
133
128
describeClusterClusterCmd .Flags ().BoolVar (& dc .grouping , "grouping" , true ,
134
129
"Groups machines when ready condition has the same Status, Severity and Reason." )
135
130
describeClusterClusterCmd .Flags ().BoolVar (& dc .disableGrouping , "disable-grouping" , false ,
@@ -165,7 +160,7 @@ func runDescribeCluster(cmd *cobra.Command, name string) error {
165
160
ShowTemplates : dc .showTemplates ,
166
161
ShowMachineSets : dc .showMachineSets ,
167
162
AddTemplateVirtualNode : true ,
168
- Echo : dc .echo || dc . disableNoEcho ,
163
+ Echo : dc .echo ,
169
164
Grouping : dc .grouping && ! dc .disableGrouping ,
170
165
})
171
166
if err != nil {
0 commit comments