Rename 'all-components' flag to 'all'

Signed-off-by: redscholar <blacktiledhouse@gmail.com>
This commit is contained in:
liujian 2025-11-17 13:55:29 +08:00 committed by redscholar
parent 64262bf6c3
commit c7b0b113c6
No known key found for this signature in database
GPG Key ID: 5A4D7C7DB5D38D49

View File

@ -64,7 +64,7 @@ func (o *DeleteClusterOptions) Flags() cliflag.NamedFlagSets {
kfs := fss.FlagSet("config")
// Add a flag for specifying the Kubernetes version
kfs.StringVar(&o.Kubernetes, "with-kubernetes", o.Kubernetes, fmt.Sprintf("Specify a supported version of kubernetes. default is %s", o.Kubernetes))
kfs.BoolVar(&o.DeleteAllComponents, "all-components", o.DeleteAllComponents, "Delete all cluster components, including cri, etcd, dns, and the image registry.")
kfs.BoolVar(&o.DeleteAllComponents, "all", o.DeleteAllComponents, "Delete all cluster components, including cri, etcd, dns, and the image registry.")
return fss
}
@ -159,7 +159,7 @@ func (o *DeleteNodesOptions) Flags() cliflag.NamedFlagSets {
kfs := fss.FlagSet("config")
// Add a flag for specifying the Kubernetes version
kfs.StringVar(&o.Kubernetes, "with-kubernetes", o.Kubernetes, fmt.Sprintf("Specify a supported version of kubernetes. default is %s", o.Kubernetes))
kfs.BoolVar(&o.DeleteAllComponents, "all-components", o.DeleteAllComponents, "Delete all cluster components, including cri, etcd, dns, and the image registry.")
kfs.BoolVar(&o.DeleteAllComponents, "all", o.DeleteAllComponents, "Delete all cluster components, including cri, etcd, dns, and the image registry.")
return fss
}