Class V1CustomResourceDefinitionSpec
CustomResourceDefinitionSpec describes how a user wants their resource to appear
Inheritance
V1CustomResourceDefinitionSpec
Assembly: KubernetesClient.dll
Syntax
public record V1CustomResourceDefinitionSpec : IEquatable<V1CustomResourceDefinitionSpec>
Constructors
V1CustomResourceDefinitionSpec()
Declaration
public V1CustomResourceDefinitionSpec()
V1CustomResourceDefinitionSpec(V1CustomResourceDefinitionSpec)
Declaration
protected V1CustomResourceDefinitionSpec(V1CustomResourceDefinitionSpec original)
Parameters
Properties
Conversion
conversion defines conversion settings for the CRD.
Declaration
[JsonPropertyName("conversion")]
public V1CustomResourceConversion Conversion { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Group
group is the API group of the defined custom resource. The custom resources are
served under /apis/<group>/.... Must match the name of the
CustomResourceDefinition (in the form <names.plural>.<group>).
Declaration
[JsonPropertyName("group")]
public string Group { get; set; }
Property Value
Names
names specify the resource and kind names for the custom resource.
Declaration
[JsonPropertyName("names")]
public V1CustomResourceDefinitionNames Names { get; set; }
Property Value
PreserveUnknownFields
Declaration
[JsonPropertyName("preserveUnknownFields")]
public bool? PreserveUnknownFields { get; set; }
Property Value
Scope
scope indicates whether the defined custom resource is cluster- or
namespace-scoped. Allowed values are Cluster and Namespaced.
Declaration
[JsonPropertyName("scope")]
public string Scope { get; set; }
Property Value
Versions
versions is the list of all API versions of the defined custom resource. Version
names are used to compute the order in which served versions are listed in API
discovery. If the version string is "kube-like", it will sort above non
"kube-like" version strings, which are ordered lexicographically. "Kube-like"
versions start with a "v", then are followed by a number (the major version),
then optionally the string "alpha" or "beta" and another number (the minor
version). These are sorted first by GA > beta > alpha (where GA is a version
with no suffix such as beta or alpha), and then by comparing major version, then
minor version. An example sorted list of versions: v10, v2, v1, v11beta2,
v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
Declaration
[JsonPropertyName("versions")]
public IList<V1CustomResourceDefinitionVersion> Versions { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1CustomResourceDefinitionSpec?)
Declaration
public virtual bool Equals(V1CustomResourceDefinitionSpec? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1CustomResourceDefinitionSpec?, V1CustomResourceDefinitionSpec?)
Declaration
public static bool operator ==(V1CustomResourceDefinitionSpec? left, V1CustomResourceDefinitionSpec? right)
Parameters
Returns
operator !=(V1CustomResourceDefinitionSpec?, V1CustomResourceDefinitionSpec?)
Declaration
public static bool operator !=(V1CustomResourceDefinitionSpec? left, V1CustomResourceDefinitionSpec? right)
Parameters
Returns
Implements