Class V1LabelSelectorAttributes
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1LabelSelectorAttributes
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1LabelSelectorAttributes
extends Object
LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddRequirementsItem(V1LabelSelectorRequirement requirementsItem) Add an item to the requirements property in a chainable fashion.booleanrawSelector is the serialization of a field selector that would be included in a query parameter.List<@Valid V1LabelSelectorRequirement>requirements is the parsed interpretation of a label selector.inthashCode()rawSelector(String rawSelector) Set rawSelector in a chainable fashion.requirements(List<@Valid V1LabelSelectorRequirement> requirements) Set requirements in a chainable fashion.voidsetRawSelector(String rawSelector) Set the rawSelector property valuevoidsetRequirements(List<@Valid V1LabelSelectorRequirement> requirements) Set the requirements property valuetoString()
- 
Field Details- 
JSON_PROPERTY_RAW_SELECTOR- See Also:
 
- 
JSON_PROPERTY_REQUIREMENTS- See Also:
 
 
- 
- 
Constructor Details- 
V1LabelSelectorAttributespublic V1LabelSelectorAttributes()
 
- 
- 
Method Details- 
getRawSelectorrawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.- Returns:
- the rawSelector property value
 
- 
setRawSelectorSet the rawSelector property value- Parameters:
- rawSelector- property value to set
 
- 
rawSelectorSet rawSelector in a chainable fashion.- Returns:
- The same instance of V1LabelSelectorAttributes for chaining.
 
- 
getRequirementsrequirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.- Returns:
- the requirements property value
 
- 
setRequirementsSet the requirements property value- Parameters:
- requirements- property value to set
 
- 
requirementsSet requirements in a chainable fashion.- Returns:
- The same instance of V1LabelSelectorAttributes for chaining.
 
- 
addRequirementsItemAdd an item to the requirements property in a chainable fashion.- Returns:
- The same instance of V1LabelSelectorAttributes for chaining.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-