Class V1beta1MatchResources
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1MatchResources
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T21:37:40.170033Z[Etc/UTC]")
public class V1beta1MatchResources
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
(V1beta1NamedRuleWithOperations excludeResourceRulesItem) addResourceRulesItem
(V1beta1NamedRuleWithOperations resourceRulesItem) boolean
excludeResourceRules
(List<V1beta1NamedRuleWithOperations> excludeResourceRules) 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.Get namespaceSelectorGet objectSelectorResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.int
hashCode()
matchPolicy
(String matchPolicy) namespaceSelector
(V1LabelSelector namespaceSelector) objectSelector
(V1LabelSelector objectSelector) resourceRules
(List<V1beta1NamedRuleWithOperations> resourceRules) void
setExcludeResourceRules
(List<V1beta1NamedRuleWithOperations> excludeResourceRules) void
setMatchPolicy
(String matchPolicy) void
setNamespaceSelector
(V1LabelSelector namespaceSelector) void
setObjectSelector
(V1LabelSelector objectSelector) void
setResourceRules
(List<V1beta1NamedRuleWithOperations> resourceRules) toString()
-
Field Details
-
SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES
- See Also:
-
SERIALIZED_NAME_MATCH_POLICY
- See Also:
-
SERIALIZED_NAME_NAMESPACE_SELECTOR
- See Also:
-
SERIALIZED_NAME_OBJECT_SELECTOR
- See Also:
-
SERIALIZED_NAME_RESOURCE_RULES
- See Also:
-
-
Constructor Details
-
V1beta1MatchResources
public V1beta1MatchResources()
-
-
Method Details
-
excludeResourceRules
public V1beta1MatchResources excludeResourceRules(List<V1beta1NamedRuleWithOperations> excludeResourceRules) -
addExcludeResourceRulesItem
public V1beta1MatchResources addExcludeResourceRulesItem(V1beta1NamedRuleWithOperations excludeResourceRulesItem) -
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:
- excludeResourceRules
-
setExcludeResourceRules
-
matchPolicy
-
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:
- matchPolicy
-
setMatchPolicy
-
namespaceSelector
-
getNamespaceSelector
Get namespaceSelector- Returns:
- namespaceSelector
-
setNamespaceSelector
-
objectSelector
-
getObjectSelector
Get objectSelector- Returns:
- objectSelector
-
setObjectSelector
-
resourceRules
-
addResourceRulesItem
-
getResourceRules
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.- Returns:
- resourceRules
-
setResourceRules
-
equals
-
hashCode
public int hashCode() -
toString
-