Hello and welcome :)
As I've already written in Slack, but for the sake of having some
historic context:
1) kubectl wait have an "issue" with waiting nonexistent objects ->
https://github.com/kubernetes/kubernetes/issues/83242
I've miserably failed to implement this, so just need to be sure that
the proposal for multiple conditions won't conflict with this issue
(maybe you also get some way to solve both)
2) IMO, you could have one type of condition: AND or OR. Maybe having
two would make the implementation really hard, also it would be good
to have some user cases/stories if people would like this sort of
complex thing in the wait command (like
-for='((condition1=Status=Value || conditiond2=Status=Value) &&
condition3=Status=Value)
3) For the implementation side, once decided if this is going to be a
complex or a simple syntax, I would recommend to use StringArrayVar
(
https://godoc.org/github.com/spf13/pflag#StringArrayP) that allows
you to repeat the flag and populates an array, like:
--for=condition=Status=Value --for=condition2=Status=Value2
--for=condition3=Status=Value3 that turns into
[]string{"condition=Status=Value"."condition2=Status=Value2","condition3=Status=Value3"}
4) Maybe creating a new flag (like --for-complex) as this seems to
change the behavior of --for :)
> --
> You received this message because you are subscribed to the Google Groups "kubernetes-sig-cli" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
kubernetes-sig-...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/kubernetes-sig-cli/e66ec0a9-f672-4552-a779-26a3148a046dn%40googlegroups.com.