Skip to content

Commit d7fab66

Browse files
authored
Merge pull request kubernetes#104671 from wking/doc-wait-for-condition-case-folding
kubectl: Document --for's Unicode case-folding condition-value comparison
2 parents 847a5af + f69d523 commit d7fab66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • staging/src/k8s.io/kubectl/pkg/cmd/wait

‎staging/src/k8s.io/kubectl/pkg/cmd/wait/wait.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var (
6565
# Wait for the pod "busybox1" to contain the status condition of type "Ready"
6666
kubectl wait --for=condition=Ready pod/busybox1
6767
68-
# The default value of status condition is true; you can set it to false
68+
# The default value of status condition is true; you can wait for other targets after an equal delimiter (compared after Unicode simple case folding, which is a more general form of case-insensitivity):
6969
kubectl wait --for=condition=Ready=false pod/busybox1
7070
7171
# Wait for the pod "busybox1" to contain the status phase to be "Running".
@@ -142,7 +142,7 @@ func (flags *WaitFlags) AddFlags(cmd *cobra.Command) {
142142
flags.ResourceBuilderFlags.AddFlags(cmd.Flags())
143143

144144
cmd.Flags().DurationVar(&flags.Timeout, "timeout", flags.Timeout, "The length of time to wait before giving up. Zero means check once and don't wait, negative means wait for a week.")
145-
cmd.Flags().StringVar(&flags.ForCondition, "for", flags.ForCondition, "The condition to wait on: [delete|condition=condition-name|jsonpath='{JSONPath expression}'=JSONPath Condition]. The default status value of condition-name is true, you can set false with condition=condition-name=false.")
145+
cmd.Flags().StringVar(&flags.ForCondition, "for", flags.ForCondition, "The condition to wait on: [delete|condition=condition-name[=condition-value]|jsonpath='{JSONPath expression}'=JSONPath Condition]. The default condition-value is true. Condition values are compared after Unicode simple case folding, which is a more general form of case-insensitivity.")
146146
}
147147

148148
// ToOptions converts from CLI inputs to runtime inputs

0 commit comments

Comments
 (0)