Skip to content

Commit a14c8af

Browse files
authored
Merge pull request #6966 from satvik2131/fix-deprecate-etcd-init-image
added deprecation mark flag
2 parents b3d4ffa + 3fa7cc8 commit a14c8af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/karmadactl/cmdinit/cmdinit.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ func NewCmdInit(parentCommand string) *cobra.Command {
176176
fmt.Sprintf("etcd data storage mode(%s). value is PVC, specify --storage-classes-name", strings.Join(kubernetes.SupportedStorageMode(), ",")))
177177
flags.StringVarP(&opts.EtcdImage, "etcd-image", "", "", "etcd image")
178178
flags.StringVarP(&opts.EtcdInitImage, "etcd-init-image", "", kubernetes.DefaultInitImage, "etcd init container image")
179+
_ = flags.MarkDeprecated("etcd-init-image", "The etcd init container is no longer used; this flag is therefore ineffective and will be removed in a future release.")
179180
flags.Int32VarP(&opts.EtcdReplicas, "etcd-replicas", "", 1, "etcd replica set, cluster 3,5...singular")
180181
flags.StringVarP(&opts.EtcdHostDataPath, "etcd-data", "", "/var/lib/karmada-etcd", "etcd data path,valid in hostPath mode.")
181182
flags.StringVarP(&opts.EtcdNodeSelectorLabels, "etcd-node-selector-labels", "", "", "the labels used for etcd pod to select nodes, valid in hostPath mode, and with each label separated by a comma. ( e.g. --etcd-node-selector-labels karmada.io/etcd=true,kubernetes.io/os=linux)")

0 commit comments

Comments
 (0)