Class CustomResourceConversion

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<CustomResourceConversionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class CustomResourceConversion
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<CustomResourceConversionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    CustomResourceConversion describes how to convert different versions of a CR.
    See Also:
    Serialized Form
    • Constructor Detail

      • CustomResourceConversion

        public CustomResourceConversion()
        No args constructor for use in serialization
    • Method Detail

      • 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.

      • setStrategy

        public void setStrategy​(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.

      • getWebhook

        public WebhookConversion getWebhook()
        CustomResourceConversion describes how to convert different versions of a CR.
      • setWebhook

        public void setWebhook​(WebhookConversion webhook)
        CustomResourceConversion describes how to convert different versions of a CR.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)