Show / Hide Table of Contents

Class V1beta1MatchCondition

MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.

Inheritance
object
V1beta1MatchCondition
Implements
IEquatable<V1beta1MatchCondition>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1beta1MatchCondition : IEquatable<V1beta1MatchCondition>

Constructors

View Source

V1beta1MatchCondition()

Declaration
public V1beta1MatchCondition()
View Source

V1beta1MatchCondition(V1beta1MatchCondition)

Declaration
protected V1beta1MatchCondition(V1beta1MatchCondition original)
Parameters
Type Name Description
V1beta1MatchCondition original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

Expression

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.

Declaration
[JsonPropertyName("expression")]
public string Expression { get; set; }
Property Value
Type Description
string
View Source

Name

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.

Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type Description
string

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1beta1MatchCondition?)

Declaration
public virtual bool Equals(V1beta1MatchCondition? other)
Parameters
Type Name Description
V1beta1MatchCondition other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1beta1MatchCondition?, V1beta1MatchCondition?)

Declaration
public static bool operator ==(V1beta1MatchCondition? left, V1beta1MatchCondition? right)
Parameters
Type Name Description
V1beta1MatchCondition left
V1beta1MatchCondition right
Returns
Type Description
bool
View Source

operator !=(V1beta1MatchCondition?, V1beta1MatchCondition?)

Declaration
public static bool operator !=(V1beta1MatchCondition? left, V1beta1MatchCondition? right)
Parameters
Type Name Description
V1beta1MatchCondition left
V1beta1MatchCondition right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX