Class CustomResourceConversion

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class CustomResourceConversion
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    CustomResourceConversion describes how to convert different versions of a CR.
    • Constructor Detail

      • CustomResourceConversion

        public CustomResourceConversion​(@NonNull
                                        @NonNull java.lang.String strategy,
                                        WebhookConversion webhook)
      • CustomResourceConversion

        public CustomResourceConversion()
    • Method Detail

      • getStrategy

        @NonNull
        public @NonNull java.lang.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.

      • setStrategy

        public void setStrategy​(@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.webhook to be set.

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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