com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceConversionArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.kubernetes.apiextensions.v1.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.apiextensions.v1.inputs.WebhookConversionArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* CustomResourceConversion describes how to convert different versions of a CR.
*
*/
public final class CustomResourceConversionArgs extends com.pulumi.resources.ResourceArgs {
public static final CustomResourceConversionArgs Empty = new CustomResourceConversionArgs();
/**
* 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.
*
*/
@Import(name="strategy", required=true)
private Output strategy;
/**
* @return 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.
*
*/
public Output strategy() {
return this.strategy;
}
/**
* webhook describes how to call the conversion webhook. Required when `strategy` is set to `"Webhook"`.
*
*/
@Import(name="webhook")
private @Nullable Output webhook;
/**
* @return webhook describes how to call the conversion webhook. Required when `strategy` is set to `"Webhook"`.
*
*/
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy