Class V1alpha1MatchCondition

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha1MatchCondition

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1alpha1MatchCondition extends Object
V1alpha1MatchCondition
  • Field Details

  • Constructor Details

    • V1alpha1MatchCondition

      public V1alpha1MatchCondition(String expression, String name)
  • Method Details

    • getExpression

      public String getExpression()
      Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.
      Returns:
      the expression property value
    • setExpression

      public void setExpression(String expression)
      Set the expression property value
      Parameters:
      expression - property value to set
    • expression

      public V1alpha1MatchCondition expression(String expression)
      Set expression in a chainable fashion.
      Returns:
      The same instance of V1alpha1MatchCondition for chaining.
    • getName

      public String getName()
      Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.
      Returns:
      the name property value
    • setName

      public void setName(String name)
      Set the name property value
      Parameters:
      name - property value to set
    • name

      public V1alpha1MatchCondition name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1alpha1MatchCondition for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object