Class CustomResourceConversion.Builder

  • Enclosing class:
    CustomResourceConversion

    public static class CustomResourceConversion.Builder
    extends java.lang.Object
    • Method Detail

      • conversionReviewVersions

        public CustomResourceConversion.Builder conversionReviewVersions​(java.util.Collection<? extends java.lang.String> conversionReviewVersions)
      • strategy

        public CustomResourceConversion.Builder strategy​(@NonNull
                                                         @NonNull java.lang.String strategy)
        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.webhookClientConfig to be set.

        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object