Proposal: Deprecate the usage of NoOptDefVal on flags

76 views
Skip to first unread message

Ricardo Katz

unread,
Jun 28, 2023, 2:34:37 PM6/28/23
to kubernetes-sig-cli
Hi all,

As suggested by Sean, I'm bringing this discussion to our mailing list. I would like to propose the deprecation of NoOptDefVal from Cobra/pflag on kubectl.

There is some reasoning on https://github.com/kubernetes/kubectl/issues/1442 but the major one is to avoid usage confusions on kubectl. The existence of a flag that can be a mix of bool and strings brings some confusions on defaults :)

I will try to remember to bring this to our next meeting, but would like also to already have some eyes on it.

Thanks
Reply all
Reply to author
Forward
0 new messages