Package org.cdk8s.plus25.k8s
Interface CustomResourceConversion
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomResourceConversion.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.493Z") @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 classCustomResourceConversion.BuilderA builder forCustomResourceConversionstatic classCustomResourceConversion.Jsii$ProxyAn implementation forCustomResourceConversion
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static CustomResourceConversion.Builderbuilder()StringgetStrategy()strategy specifies how custom resources are converted between versions.default WebhookConversiongetWebhook()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
strategyis set toWebhook.
-
builder
@Stability(Stable) static CustomResourceConversion.Builder builder()
- Returns:
- a
CustomResourceConversion.BuilderofCustomResourceConversion
-
-