Class CustomResourceConversion

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