From abe724ad572b0ee1d93237d130391abddd57000c Mon Sep 17 00:00:00 2001 From: Husni Alhamdani Date: Sat, 8 Mar 2025 23:03:40 +0700 Subject: [PATCH] chore: remove deprecated --ca-cert-path from karmadactl Signed-off-by: Husni Alhamdani --- pkg/karmadactl/register/register.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/karmadactl/register/register.go b/pkg/karmadactl/register/register.go index b0123b6e2..6949481e9 100644 --- a/pkg/karmadactl/register/register.go +++ b/pkg/karmadactl/register/register.go @@ -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.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.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 - 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.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: \":\").") 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 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 *BootstrapTokenDiscovery