Merge pull request #6191 from husnialhamdani/remove-deprecated-ca-cert-path
chore: remove deprecated --ca-cert-path from karmadactl
This commit is contained in:
commit
47b469a7df
|
@ -184,9 +184,7 @@ func NewCmdRegister(parentCommand string) *cobra.Command {
|
||||||
flags.StringVar(&opts.ClusterRegion, "cluster-region", "", "The region of the joining cluster. The Karmada scheduler can use this information to spread workloads across regions for higher availability.")
|
flags.StringVar(&opts.ClusterRegion, "cluster-region", "", "The region of the joining cluster. The Karmada scheduler can use this information to spread workloads across regions for higher availability.")
|
||||||
flags.StringSliceVar(&opts.ClusterZones, "cluster-zones", []string{}, "The zones of the joining cluster. The Karmada scheduler can use this information to spread workloads across zones for higher availability.")
|
flags.StringSliceVar(&opts.ClusterZones, "cluster-zones", []string{}, "The zones of the joining cluster. The Karmada scheduler can use this information to spread workloads across zones for higher availability.")
|
||||||
flags.BoolVar(&opts.EnableCertRotation, "enable-cert-rotation", false, "Enable means controller would rotate certificate for karmada-agent when the certificate is about to expire.")
|
flags.BoolVar(&opts.EnableCertRotation, "enable-cert-rotation", false, "Enable means controller would rotate certificate for karmada-agent when the certificate is about to expire.")
|
||||||
flags.StringVar(&opts.CACertPath, "ca-cert-path", CACertPath, "The path to the SSL certificate authority used to secure communications between member cluster and karmada-control-plane.")
|
|
||||||
// nolint: errcheck
|
// nolint: errcheck
|
||||||
flags.MarkDeprecated("ca-cert-path", "The flag --ca-cert-path has been marked deprecated because it has never been used, and will be removed in the future release.")
|
|
||||||
flags.StringVar(&opts.BootstrapToken.Token, "token", "", "For token-based discovery, the token used to validate cluster information fetched from the API server.")
|
flags.StringVar(&opts.BootstrapToken.Token, "token", "", "For token-based discovery, the token used to validate cluster information fetched from the API server.")
|
||||||
flags.StringSliceVar(&opts.BootstrapToken.CACertHashes, "discovery-token-ca-cert-hash", []string{}, "For token-based discovery, validate that the root CA public key matches this hash (format: \"<type>:<value>\").")
|
flags.StringSliceVar(&opts.BootstrapToken.CACertHashes, "discovery-token-ca-cert-hash", []string{}, "For token-based discovery, validate that the root CA public key matches this hash (format: \"<type>:<value>\").")
|
||||||
flags.BoolVar(&opts.BootstrapToken.UnsafeSkipCAVerification, "discovery-token-unsafe-skip-ca-verification", false, "For token-based discovery, allow joining without --discovery-token-ca-cert-hash pinning.")
|
flags.BoolVar(&opts.BootstrapToken.UnsafeSkipCAVerification, "discovery-token-unsafe-skip-ca-verification", false, "For token-based discovery, allow joining without --discovery-token-ca-cert-hash pinning.")
|
||||||
|
@ -230,11 +228,6 @@ type CommandRegisterOption struct {
|
||||||
// EnableCertRotation indicates if enable certificate rotation for karmada-agent.
|
// EnableCertRotation indicates if enable certificate rotation for karmada-agent.
|
||||||
EnableCertRotation bool
|
EnableCertRotation bool
|
||||||
|
|
||||||
// CACertPath is the path to the SSL certificate authority used to
|
|
||||||
// secure communications between member cluster and karmada-control-plane.
|
|
||||||
// Defaults to "/etc/karmada/pki/ca.crt".
|
|
||||||
CACertPath string
|
|
||||||
|
|
||||||
// BootstrapToken is used to set the options for bootstrap token based discovery
|
// BootstrapToken is used to set the options for bootstrap token based discovery
|
||||||
BootstrapToken *BootstrapTokenDiscovery
|
BootstrapToken *BootstrapTokenDiscovery
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue