Skip to content

Commit 3fa7cc8

Browse files
committed
added deprecation mark flag
Signed-off-by: satvik2131 <[email protected]> updated deprecation message Signed-off-by: satvik2131 <[email protected]> signing off commit Signed-off-by: satvik2131 <[email protected]> -s
1 parent 25cf101 commit 3fa7cc8

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)