Package org.cdk8s.plus24.k8s
Interface CustomResourceConversion
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomResourceConversion.Jsii$Proxy
@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-26T02:32:35.000Z") @Stability(Stable) public interface CustomResourceConversion extends software.amazon.jsii.JsiiSerializable
CustomResourceConversion describes how to convert different versions of a CR.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CustomResourceConversion.Builder
A builder forCustomResourceConversion
static class
CustomResourceConversion.Jsii$Proxy
An implementation forCustomResourceConversion
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static CustomResourceConversion.Builder
builder()
String
getStrategy()
strategy specifies how custom resources are converted between versions.default WebhookConversion
getWebhook()
webhook describes how to call the conversion webhook.
-
-
-
Method Detail
-
getStrategy
@Stability(Stable) @NotNull String getStrategy()
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.
-
getWebhook
@Stability(Stable) @Nullable default WebhookConversion getWebhook()
webhook describes how to call the conversion webhook.Required when
strategy
is set toWebhook
.
-
builder
@Stability(Stable) static CustomResourceConversion.Builder builder()
- Returns:
- a
CustomResourceConversion.Builder
ofCustomResourceConversion
-
-