You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that detects unrecognized or duplicate fields in an object. It provides all the functionality of `kubectl --validate` on the server side.
128
+
129
+
The `kubectl` tool uses the `--validate` flag to set the level of field validation. It accepts the values `ignore`, `warn`, and `strict` while also
130
+
accepting the values `true` (equivalent to `strict`) and `false` (equivalent to `ignore`). The default validation setting for kubectl is `--validate=true`,
131
+
which means strict server-side field validation.
132
+
133
+
- Strict: Strict field validation, errors on validation failure
134
+
- Warn: Field validation is performed, but errors are exposed as warnings rather than failing the request
135
+
- Ignore: No server side field validation is performed
136
+
137
+
When `kubectl` cannot connect to an API server with field validation (API servers prior to Kubernetes 1.27), it will fall back to using client-side validation. Client-side validation will be removed entirely in a future version of `kubectl`.
138
+
123
139
## {{% heading "whatsnext" %}}
124
140
125
141
If you're new to Kubernetes, read more about the following:
0 commit comments