Class V1alpha1MatchResources
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha1MatchResources
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1alpha1MatchResources
extends Object
MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddexcludeResourceRulesItem
(V1alpha1NamedRuleWithOperations excludeResourceRulesItem) Add an item to the excludeResourceRules property in a chainable fashion.addresourceRulesItem
(V1alpha1NamedRuleWithOperations resourceRulesItem) Add an item to the resourceRules property in a chainable fashion.boolean
excludeResourceRules
(List<@Valid V1alpha1NamedRuleWithOperations> excludeResourceRules) Set excludeResourceRules in a chainable fashion.List<@Valid V1alpha1NamedRuleWithOperations>
ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.matchPolicy defines how the \"MatchResources\" list is used to match incoming requests.List<@Valid V1alpha1NamedRuleWithOperations>
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.int
hashCode()
matchPolicy
(String matchPolicy) Set matchPolicy in a chainable fashion.namespaceSelector
(V1LabelSelector namespaceSelector) Set namespaceSelector in a chainable fashion.objectSelector
(V1LabelSelector objectSelector) Set objectSelector in a chainable fashion.resourceRules
(List<@Valid V1alpha1NamedRuleWithOperations> resourceRules) Set resourceRules in a chainable fashion.void
setExcludeResourceRules
(List<@Valid V1alpha1NamedRuleWithOperations> excludeResourceRules) Set the excludeResourceRules property valuevoid
setMatchPolicy
(String matchPolicy) Set the matchPolicy property valuevoid
setNamespaceSelector
(V1LabelSelector namespaceSelector) Set the namespaceSelector property valuevoid
setObjectSelector
(V1LabelSelector objectSelector) Set the objectSelector property valuevoid
setResourceRules
(List<@Valid V1alpha1NamedRuleWithOperations> resourceRules) Set the resourceRules property valuetoString()
-
Field Details
-
JSON_PROPERTY_EXCLUDE_RESOURCE_RULES
- See Also:
-
JSON_PROPERTY_MATCH_POLICY
- See Also:
-
JSON_PROPERTY_NAMESPACE_SELECTOR
- See Also:
-
JSON_PROPERTY_OBJECT_SELECTOR
- See Also:
-
JSON_PROPERTY_RESOURCE_RULES
- See Also:
-
-
Constructor Details
-
V1alpha1MatchResources
public V1alpha1MatchResources()
-
-
Method Details
-
getExcludeResourceRules
ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)- Returns:
- the excludeResourceRules property value
-
setExcludeResourceRules
public void setExcludeResourceRules(List<@Valid V1alpha1NamedRuleWithOperations> excludeResourceRules) Set the excludeResourceRules property value- Parameters:
excludeResourceRules
- property value to set
-
excludeResourceRules
public V1alpha1MatchResources excludeResourceRules(List<@Valid V1alpha1NamedRuleWithOperations> excludeResourceRules) Set excludeResourceRules in a chainable fashion.- Returns:
- The same instance of V1alpha1MatchResources for chaining.
-
addexcludeResourceRulesItem
public V1alpha1MatchResources addexcludeResourceRulesItem(V1alpha1NamedRuleWithOperations excludeResourceRulesItem) Add an item to the excludeResourceRules property in a chainable fashion.- Returns:
- The same instance of V1alpha1MatchResources for chaining.
-
getMatchPolicy
matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\"- Returns:
- the matchPolicy property value
-
setMatchPolicy
Set the matchPolicy property value- Parameters:
matchPolicy
- property value to set
-
matchPolicy
Set matchPolicy in a chainable fashion.- Returns:
- The same instance of V1alpha1MatchResources for chaining.
-
getNamespaceSelector
- Returns:
- the namespaceSelector property value
-
setNamespaceSelector
Set the namespaceSelector property value- Parameters:
namespaceSelector
- property value to set
-
namespaceSelector
Set namespaceSelector in a chainable fashion.- Returns:
- The same instance of V1alpha1MatchResources for chaining.
-
getObjectSelector
- Returns:
- the objectSelector property value
-
setObjectSelector
Set the objectSelector property value- Parameters:
objectSelector
- property value to set
-
objectSelector
Set objectSelector in a chainable fashion.- Returns:
- The same instance of V1alpha1MatchResources for chaining.
-
getResourceRules
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.- Returns:
- the resourceRules property value
-
setResourceRules
Set the resourceRules property value- Parameters:
resourceRules
- property value to set
-
resourceRules
public V1alpha1MatchResources resourceRules(List<@Valid V1alpha1NamedRuleWithOperations> resourceRules) Set resourceRules in a chainable fashion.- Returns:
- The same instance of V1alpha1MatchResources for chaining.
-
addresourceRulesItem
public V1alpha1MatchResources addresourceRulesItem(V1alpha1NamedRuleWithOperations resourceRulesItem) Add an item to the resourceRules property in a chainable fashion.- Returns:
- The same instance of V1alpha1MatchResources for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-