config

package
v3.30.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCluster

func GetCluster(ctx *pulumi.Context) string

If present, the name of the kubeconfig cluster to use.

func GetContext

func GetContext(ctx *pulumi.Context) string

If present, the name of the kubeconfig context to use.

func GetDeleteUnreachable added in v3.19.4

func GetDeleteUnreachable(ctx *pulumi.Context) bool

If present and set to true, the provider will delete resources associated with an unreachable Kubernetes cluster from Pulumi state

func GetEnableConfigMapMutable added in v3.17.0

func GetEnableConfigMapMutable(ctx *pulumi.Context) bool

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.

func GetEnableDryRun deprecated

func GetEnableDryRun(ctx *pulumi.Context) bool

Deprecated. If present and set to true, enable server-side diff calculations.

Deprecated: This option has been replaced by `enableServerSideApply`.

func GetEnableReplaceCRD deprecated added in v3.12.1

func GetEnableReplaceCRD(ctx *pulumi.Context) bool

Obsolete. This option has no effect.

Deprecated: This option is deprecated, and will be removed in a future release.

func GetEnableServerSideApply added in v3.20.0

func GetEnableServerSideApply(ctx *pulumi.Context) bool

BETA FEATURE - If present and set to true, enable Server-Side Apply mode. See https://github.com/pulumi/pulumi-kubernetes/issues/2011 for additional details. This feature is in developer preview, and is disabled by default.

func GetKubeconfig

func GetKubeconfig(ctx *pulumi.Context) string

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.

func GetNamespace

func GetNamespace(ctx *pulumi.Context) string

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.

func GetRenderYamlToDirectory

func GetRenderYamlToDirectory(ctx *pulumi.Context) string

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.

func GetStrictMode added in v3.28.1

func GetStrictMode(ctx *pulumi.Context) bool

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.

func GetSuppressDeprecationWarnings

func GetSuppressDeprecationWarnings(ctx *pulumi.Context) bool

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.

func GetSuppressHelmHookWarnings added in v3.6.1

func GetSuppressHelmHookWarnings(ctx *pulumi.Context) bool

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL