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

      • getConversionReviewVersions

        public List<String> getConversionReviewVersions()
        conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`.
      • setConversionReviewVersions

        public void setConversionReviewVersions​(List<String> conversionReviewVersions)
        conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`.
      • 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.webhookClientConfig 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.webhookClientConfig to be set.

      • getWebhookClientConfig

        public WebhookClientConfig getWebhookClientConfig()
        CustomResourceConversion describes how to convert different versions of a CR.
      • setWebhookClientConfig

        public void setWebhookClientConfig​(WebhookClientConfig webhookClientConfig)
        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)