Package net.stickycode.kuuty.model.v18
Class IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1CustomResourceConversion
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1CustomResourceConversion
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1CustomResourceConversion extends Object
CustomResourceConversion describes how to convert different versions of a CR.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONVERSION_REVIEW_VERSIONSstatic StringJSON_PROPERTY_STRATEGYstatic StringJSON_PROPERTY_WEBHOOK_CLIENT_CONFIG
-
Constructor Summary
Constructors Constructor Description IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1CustomResourceConversion()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_CONVERSION_REVIEW_VERSIONS
public static final String JSON_PROPERTY_CONVERSION_REVIEW_VERSIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STRATEGY
public static final String JSON_PROPERTY_STRATEGY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WEBHOOK_CLIENT_CONFIG
public static final String JSON_PROPERTY_WEBHOOK_CLIENT_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
conversionReviewVersions
public IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1CustomResourceConversion conversionReviewVersions(List<String> conversionReviewVersions)
-
addConversionReviewVersionsItem
public IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1CustomResourceConversion addConversionReviewVersionsItem(String conversionReviewVersionsItem)
-
getConversionReviewVersions
@Nullable 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\"]`.- Returns:
- conversionReviewVersions
-
setConversionReviewVersions
public void setConversionReviewVersions(List<String> conversionReviewVersions)
-
strategy
public IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1CustomResourceConversion strategy(String strategy)
-
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.- Returns:
- strategy
-
setStrategy
public void setStrategy(String strategy)
-
webhookClientConfig
public IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1CustomResourceConversion webhookClientConfig(IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1WebhookClientConfig webhookClientConfig)
-
getWebhookClientConfig
@Nullable public IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1WebhookClientConfig getWebhookClientConfig()
Get webhookClientConfig- Returns:
- webhookClientConfig
-
setWebhookClientConfig
public void setWebhookClientConfig(IoK8sApiextensionsApiserverPkgApisApiextensionsV1beta1WebhookClientConfig webhookClientConfig)
-
-