Show / Hide Table of Contents

Class V1CustomResourceConversion

CustomResourceConversion describes how to convert different versions of a CR.

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

Constructors

View Source

V1CustomResourceConversion()

Declaration
public V1CustomResourceConversion()
View Source

V1CustomResourceConversion(V1CustomResourceConversion)

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

Properties

View Source

EqualityContract

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

Strategy

strategy specifies how custom resources are converted between versions. Allowed values are: - "None": The converter only change the apiVersion and would not touch any other field in the custom resource. - "Webhook": API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.

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

Webhook

webhook describes how to call the conversion webhook. Required when strategy is set to "Webhook".

Declaration
[JsonPropertyName("webhook")]
public V1WebhookConversion Webhook { get; set; }
Property Value
Type Description
V1WebhookConversion

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(V1CustomResourceConversion?)

Declaration
public virtual bool Equals(V1CustomResourceConversion? other)
Parameters
Type Name Description
V1CustomResourceConversion 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 ==(V1CustomResourceConversion?, V1CustomResourceConversion?)

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

operator !=(V1CustomResourceConversion?, V1CustomResourceConversion?)

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

Implements

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