Enum kube_core::params::ValidationDirective
source · [−]pub enum ValidationDirective {
Strict,
Warn,
Ignore,
}
Expand description
The validation directive to use for fieldValidation
when using server-side apply.
Variants
Strict
Strict mode will fail any invalid manifests.
This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
Warn
Warn mode will return a warning for invalid manifests.
This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields.
Ignore
Ignore mode will silently ignore any problems.
This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters.
Implementations
Trait Implementations
sourceimpl Clone for ValidationDirective
impl Clone for ValidationDirective
sourcefn clone(&self) -> ValidationDirective
fn clone(&self) -> ValidationDirective
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more