Skip to content

Commit 99cc395

Browse files
authored
Merge pull request kubernetes#128081 from soltysh/strict_spacing
Fix spacing in --validate flag description
2 parents 1cd8074 + 7b0660e commit 99cc395

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,7 @@ func AddValidateFlags(cmd *cobra.Command) {
451451
cmd.Flags().String(
452452
"validate",
453453
"strict",
454-
`Must be one of: strict (or true), warn, ignore (or false).
455-
"true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not.
456-
"warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise.
457-
"false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields.`,
454+
`Must be one of: strict (or true), warn, ignore (or false). "true" or "strict" will use a schema to validate the input and fail the request if invalid. It will perform server side validation if ServerSideFieldValidation is enabled on the api-server, but will fall back to less reliable client-side validation if not. "warn" will warn about unknown or duplicate fields without blocking the request if server-side field validation is enabled on the API server, and behave as "ignore" otherwise. "false" or "ignore" will not perform any schema validation, silently dropping any unknown or duplicate fields.`,
458455
)
459456

460457
cmd.Flags().Lookup("validate").NoOptDefVal = "strict"

0 commit comments

Comments
 (0)