Class V1alpha1MatchCondition
Inheritance
V1alpha1MatchCondition
Assembly: KubernetesClient.dll
Syntax
public record V1alpha1MatchCondition : IEquatable<V1alpha1MatchCondition>
Constructors
View Source
V1alpha1MatchCondition()
Declaration
public V1alpha1MatchCondition()
View Source
V1alpha1MatchCondition(V1alpha1MatchCondition)
Declaration
protected V1alpha1MatchCondition(V1alpha1MatchCondition original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
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
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1alpha1MatchCondition?)
Declaration
public virtual bool Equals(V1alpha1MatchCondition? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1alpha1MatchCondition?, V1alpha1MatchCondition?)
Declaration
public static bool operator ==(V1alpha1MatchCondition? left, V1alpha1MatchCondition? right)
Parameters
Returns
View Source
operator !=(V1alpha1MatchCondition?, V1alpha1MatchCondition?)
Declaration
public static bool operator !=(V1alpha1MatchCondition? left, V1alpha1MatchCondition? right)
Parameters
Returns
Implements