Interface CustomResourceConversion

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    CustomResourceConversion.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.102.0 (build e354887)",
               date="2024-08-03T12:13:25.666Z")
    @Stability(Stable)
    public interface CustomResourceConversion
    extends software.amazon.jsii.JsiiSerializable
    CustomResourceConversion describes how to convert different versions of a CR.
    • 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 to "Webhook".