Class V1CustomResourceConversion
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1CustomResourceConversion
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1CustomResourceConversion
extends Object
CustomResourceConversion describes how to convert different versions of a CR.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
strategy specifies how custom resources are converted between versions.int
hashCode()
void
setStrategy
(String strategy) Set the strategy property valuevoid
setWebhook
(V1WebhookConversion webhook) Set the webhook property valueSet strategy in a chainable fashion.toString()
webhook
(V1WebhookConversion webhook) Set webhook in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_STRATEGY
- See Also:
-
JSON_PROPERTY_WEBHOOK
- See Also:
-
-
Constructor Details
-
V1CustomResourceConversion
-
-
Method Details
-
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:
- the strategy property value
-
setStrategy
Set the strategy property value- Parameters:
strategy
- property value to set
-
strategy
Set strategy in a chainable fashion.- Returns:
- The same instance of V1CustomResourceConversion for chaining.
-
getWebhook
- Returns:
- the webhook property value
-
setWebhook
Set the webhook property value- Parameters:
webhook
- property value to set
-
webhook
Set webhook in a chainable fashion.- Returns:
- The same instance of V1CustomResourceConversion for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-