Class V1CustomResourceConversion

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1CustomResourceConversion

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1CustomResourceConversion extends Object
CustomResourceConversion describes how to convert different versions of a CR.
  • Field Details

  • Constructor Details

    • V1CustomResourceConversion

      public V1CustomResourceConversion(String strategy)
  • Method Details

    • getStrategy

      public 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.
      Returns:
      the strategy property value
    • setStrategy

      public void setStrategy(String strategy)
      Set the strategy property value
      Parameters:
      strategy - property value to set
    • strategy

      public V1CustomResourceConversion strategy(String strategy)
      Set strategy in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceConversion for chaining.
    • getWebhook

      public V1WebhookConversion getWebhook()
      Returns:
      the webhook property value
    • setWebhook

      public void setWebhook(V1WebhookConversion webhook)
      Set the webhook property value
      Parameters:
      webhook - property value to set
    • webhook

      Set webhook in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceConversion for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object