com.pulumi.kubernetes.Config 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;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.Optional;
public final class Config {
private static final com.pulumi.Config config = com.pulumi.Config.of("kubernetes");
/**
* If present, the name of the kubeconfig cluster to use.
*
*/
public Optional cluster() {
return Codegen.stringProp("cluster").config(config).get();
}
/**
* If present, this value will control the provider's replacement behavior. In particular, the provider will _only_ be replaced when `clusterIdentifier` changes; all other changes to provider configuration will be treated as updates.
*
* Kubernetes does not yet offer an API for cluster identification, so Pulumi uses heuristics to decide when a provider resource should be replaced or updated. These heuristics can sometimes lead to destructive replace operations when an update would be more appropriate, or vice versa.
*
* Use `clusterIdentifier` for more fine-grained control of the provider resource's lifecycle.
*
*/
public Optional clusterIdentifier() {
return Codegen.stringProp("clusterIdentifier").config(config).get();
}
/**
* If present, the name of the kubeconfig context to use.
*
*/
public Optional context() {
return Codegen.stringProp("context").config(config).get();
}
/**
* If present and set to true, the provider will delete resources associated with an unreachable Kubernetes cluster from Pulumi state
*
*/
public Optional deleteUnreachable() {
return Codegen.booleanProp("deleteUnreachable").config(config).get();
}
/**
* BETA FEATURE - If present and set to true, allow ConfigMaps to be mutated.
* This feature is in developer preview, and is disabled by default.
*
* This config can be specified in the following ways using this precedence:
* 1. This `enableConfigMapMutable` parameter.
* 2. The `PULUMI_K8S_ENABLE_CONFIGMAP_MUTABLE` environment variable.
*
*/
public Optional enableConfigMapMutable() {
return Codegen.booleanProp("enableConfigMapMutable").config(config).get();
}
/**
* Obsolete. This option has no effect.
*
*/
public Optional enableReplaceCRD() {
return Codegen.booleanProp("enableReplaceCRD").config(config).get();
}
/**
* BETA FEATURE - If present and set to true, allow Secrets to be mutated.
* This feature is in developer preview, and is disabled by default.
*
* This config can be specified in the following ways using this precedence:
* 1. This `enableSecretMutable` parameter.
* 2. The `PULUMI_K8S_ENABLE_SECRET_MUTABLE` environment variable.
*
*/
public Optional enableSecretMutable() {
return Codegen.booleanProp("enableSecretMutable").config(config).get();
}
/**
* If present and set to false, disable Server-Side Apply mode.
* See https://github.com/pulumi/pulumi-kubernetes/issues/2011 for additional details.
*
*/
public Optional enableServerSideApply() {
return Codegen.booleanProp("enableServerSideApply").config(config).get();
}
/**
* The contents of a kubeconfig file or the path to a kubeconfig file. If this is set, this config will be used instead of $KUBECONFIG.
*
*/
public Optional kubeconfig() {
return Codegen.stringProp("kubeconfig").config(config).get();
}
/**
* If present, the default namespace to use. This flag is ignored for cluster-scoped resources.
*
* A namespace can be specified in multiple places, and the precedence is as follows:
* 1. `.metadata.namespace` set on the resource.
* 2. This `namespace` parameter.
* 3. `namespace` set for the active context in the kubeconfig.
*
*/
public Optional namespace() {
return Codegen.stringProp("namespace").config(config).get();
}
/**
* BETA FEATURE - If present, render resource manifests to this directory. In this mode, resources will not
* be created on a Kubernetes cluster, but the rendered manifests will be kept in sync with changes
* to the Pulumi program. This feature is in developer preview, and is disabled by default.
*
* Note that some computed Outputs such as status fields will not be populated
* since the resources are not created on a Kubernetes cluster. These Output values will remain undefined,
* and may result in an error if they are referenced by other resources. Also note that any secret values
* used in these resources will be rendered in plaintext to the resulting YAML.
*
*/
public Optional renderYamlToDirectory() {
return Codegen.stringProp("renderYamlToDirectory").config(config).get();
}
/**
* If present and set to true, the provider will skip resources update associated with an unreachable Kubernetes cluster from Pulumi state
*
*/
public Optional skipUpdateUnreachable() {
return Codegen.booleanProp("skipUpdateUnreachable").config(config).get();
}
/**
* If present and set to true, the provider will use strict configuration mode. Recommended for production stacks. In this mode, the default Kubernetes provider is disabled, and the `kubeconfig` and `context` settings are required for Provider configuration. These settings unambiguously ensure that every Kubernetes resource is associated with a particular cluster.
*
*/
public Optional strictMode() {
return Codegen.booleanProp("strictMode").config(config).get();
}
/**
* If present and set to true, suppress apiVersion deprecation warnings from the CLI.
*
* This config can be specified in the following ways, using this precedence:
* 1. This `suppressDeprecationWarnings` parameter.
* 2. The `PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS` environment variable.
*
*/
public Optional suppressDeprecationWarnings() {
return Codegen.booleanProp("suppressDeprecationWarnings").config(config).get();
}
/**
* If present and set to true, suppress unsupported Helm hook warnings from the CLI.
*
* This config can be specified in the following ways, using this precedence:
* 1. This `suppressHelmHookWarnings` parameter.
* 2. The `PULUMI_K8S_SUPPRESS_HELM_HOOK_WARNINGS` environment variable.
*
*/
public Optional suppressHelmHookWarnings() {
return Codegen.booleanProp("suppressHelmHookWarnings").config(config).get();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy