CustomResourceConversion class

CustomResourceConversion describes how to convert different versions of a CR.

Constructors

CustomResourceConversion({required String strategy, WebhookConversion? webhook})
Default constructor.
const
CustomResourceConversion.fromJson(Map<String, dynamic> json)
Creates a CustomResourceConversion from JSON data.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strategy String
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.
final
webhook WebhookConversion?
webhook describes how to call the conversion webhook. Required when strategy is set to "Webhook".
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a CustomResourceConversion instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited