Class V1alpha1ValidatingAdmissionPolicyBindingSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha1ValidatingAdmissionPolicyBindingSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1alpha1ValidatingAdmissionPolicyBindingSpec
extends Object
ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddvalidationActionsItem
(String validationActionsItem) Add an item to the validationActions property in a chainable fashion.boolean
PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced.int
hashCode()
matchResources
(V1alpha1MatchResources matchResources) Set matchResources in a chainable fashion.paramRef
(V1alpha1ParamRef paramRef) Set paramRef in a chainable fashion.policyName
(String policyName) Set policyName in a chainable fashion.void
setMatchResources
(V1alpha1MatchResources matchResources) Set the matchResources property valuevoid
setParamRef
(V1alpha1ParamRef paramRef) Set the paramRef property valuevoid
setPolicyName
(String policyName) Set the policyName property valuevoid
setValidationActions
(List<String> validationActions) Set the validationActions property valuetoString()
validationActions
(List<String> validationActions) Set validationActions in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_MATCH_RESOURCES
- See Also:
-
JSON_PROPERTY_PARAM_REF
- See Also:
-
JSON_PROPERTY_POLICY_NAME
- See Also:
-
JSON_PROPERTY_VALIDATION_ACTIONS
- See Also:
-
-
Constructor Details
-
V1alpha1ValidatingAdmissionPolicyBindingSpec
public V1alpha1ValidatingAdmissionPolicyBindingSpec()
-
-
Method Details
-
getMatchResources
- Returns:
- the matchResources property value
-
setMatchResources
Set the matchResources property value -
matchResources
public V1alpha1ValidatingAdmissionPolicyBindingSpec matchResources(V1alpha1MatchResources matchResources) Set matchResources in a chainable fashion.- Returns:
- The same instance of V1alpha1ValidatingAdmissionPolicyBindingSpec for chaining.
-
getParamRef
- Returns:
- the paramRef property value
-
setParamRef
Set the paramRef property value -
paramRef
Set paramRef in a chainable fashion.- Returns:
- The same instance of V1alpha1ValidatingAdmissionPolicyBindingSpec for chaining.
-
getPolicyName
PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.- Returns:
- the policyName property value
-
setPolicyName
Set the policyName property value -
policyName
Set policyName in a chainable fashion.- Returns:
- The same instance of V1alpha1ValidatingAdmissionPolicyBindingSpec for chaining.
-
getValidationActions
validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required.- Returns:
- the validationActions property value
-
setValidationActions
Set the validationActions property value -
validationActions
public V1alpha1ValidatingAdmissionPolicyBindingSpec validationActions(List<String> validationActions) Set validationActions in a chainable fashion.- Returns:
- The same instance of V1alpha1ValidatingAdmissionPolicyBindingSpec for chaining.
-
addvalidationActionsItem
public V1alpha1ValidatingAdmissionPolicyBindingSpec addvalidationActionsItem(String validationActionsItem) Add an item to the validationActions property in a chainable fashion.- Returns:
- The same instance of V1alpha1ValidatingAdmissionPolicyBindingSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-