Class CustomResourceConversion
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.apiextensions.v1beta1.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 Summary
Constructors Constructor Description CustomResourceConversion()No args constructor for use in serializationCustomResourceConversion(List<String> conversionReviewVersions, String strategy, WebhookClientConfig webhookClientConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomResourceConversionBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getConversionReviewVersions()conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.StringgetStrategy()strategy specifies how custom resources are converted between versions.WebhookClientConfiggetWebhookClientConfig()CustomResourceConversion describes how to convert different versions of a CR.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetConversionReviewVersions(List<String> conversionReviewVersions)conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.voidsetStrategy(String strategy)strategy specifies how custom resources are converted between versions.voidsetWebhookClientConfig(WebhookClientConfig webhookClientConfig)CustomResourceConversion describes how to convert different versions of a CR.CustomResourceConversionBuildertoBuilder()
-
-
-
Constructor Detail
-
CustomResourceConversion
public CustomResourceConversion()
No args constructor for use in serialization
-
CustomResourceConversion
public CustomResourceConversion(List<String> conversionReviewVersions, String strategy, WebhookClientConfig webhookClientConfig)
-
-
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 informationis 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 informationis 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.
-
edit
public CustomResourceConversionBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<CustomResourceConversionBuilder>
-
toBuilder
public CustomResourceConversionBuilder toBuilder()
-
-