Class V1CustomResourceConversion
java.lang.Object
io.kubernetes.client.openapi.models.V1CustomResourceConversion
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T21:37:40.170033Z[Etc/UTC]")
public class V1CustomResourceConversion
extends Object
CustomResourceConversion describes how to convert different versions of a CR.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
strategy specifies how custom resources are converted between versions.Get webhookint
hashCode()
void
setStrategy
(String strategy) void
setWebhook
(V1WebhookConversion webhook) toString()
webhook
(V1WebhookConversion webhook)
-
Field Details
-
SERIALIZED_NAME_STRATEGY
- See Also:
-
SERIALIZED_NAME_WEBHOOK
- See Also:
-
-
Constructor Details
-
V1CustomResourceConversion
public V1CustomResourceConversion()
-
-
Method Details
-
strategy
-
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.- Returns:
- strategy
-
setStrategy
-
webhook
-
getWebhook
Get webhook- Returns:
- webhook
-
setWebhook
-
equals
-
hashCode
public int hashCode() -
toString
-