Skip to content

Commit 8afec0c

Browse files
committed
Minor style edits from review
1 parent 81014ba commit 8afec0c

File tree

1 file changed

+16
-8
lines changed
  • content/en/docs/concepts/overview/working-with-objects

1 file changed

+16
-8
lines changed

content/en/docs/concepts/overview/working-with-objects/_index.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,21 +120,29 @@ satisfy the StatefulSet specification.
120120
Different kinds of object can also have different `.status`; again, the API reference pages
121121
detail the structure of that `.status` field, and its content for each different type of object.
122122

123-
### Server Side Field Validation
123+
## Server side field validation
124124

125125
Starting with Kubernetes v1.25, the API server offers server side
126126
[field validation](/docs/reference/using-api/api-concepts/#field-validation)
127-
that detects unrecognized or duplicate fields in an object. It provides all the functionality of `kubectl --validate` on the server side.
127+
that detects unrecognized or duplicate fields in an object. It provides all the functionality
128+
of `kubectl --validate` on the server side.
128129

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`,
130+
The `kubectl` tool uses the `--validate` flag to set the level of field validation. It accepts the
131+
values `ignore`, `warn`, and `strict` while also accepting the values `true` (equivalent to `strict`)
132+
and `false` (equivalent to `ignore`). The default validation setting for kubectl is `--validate=true`,
131133
which means strict server-side field validation.
132134

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
135+
`Strict`
136+
: Strict field validation, errors on validation failure
136137

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+
`Warn`
139+
: Field validation is performed, but errors are exposed as warnings rather than failing the request
140+
141+
`Ignore`
142+
: No server side field validation is performed
143+
144+
When `kubectl` cannot connect to an API server with field validation (API servers prior to Kubernetes 1.27),
145+
it will fall back to using client-side validation.
138146

139147
## {{% heading "whatsnext" %}}
140148

0 commit comments

Comments
 (0)