kubernetes

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 71

Documentation

Overview

A Pulumi package for creating and managing Kubernetes resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type HelmReleaseSettings

type HelmReleaseSettings struct {
	// The backend storage driver for Helm. Values are: configmap, secret, memory, sql.
	Driver *string `pulumi:"driver"`
	// The path to the helm plugins directory.
	PluginsPath *string `pulumi:"pluginsPath"`
	// The path to the registry config file.
	RegistryConfigPath *string `pulumi:"registryConfigPath"`
	// The path to the file containing cached repository indexes.
	RepositoryCache *string `pulumi:"repositoryCache"`
	// The path to the file containing repository names and URLs.
	RepositoryConfigPath *string `pulumi:"repositoryConfigPath"`
}

Options to configure the Helm Release resource.

func (*HelmReleaseSettings) Defaults

func (val *HelmReleaseSettings) Defaults() *HelmReleaseSettings

Defaults sets the appropriate defaults for HelmReleaseSettings

type HelmReleaseSettingsArgs

type HelmReleaseSettingsArgs struct {
	// The backend storage driver for Helm. Values are: configmap, secret, memory, sql.
	Driver pulumi.StringPtrInput `pulumi:"driver"`
	// The path to the helm plugins directory.
	PluginsPath pulumi.StringPtrInput `pulumi:"pluginsPath"`
	// The path to the registry config file.
	RegistryConfigPath pulumi.StringPtrInput `pulumi:"registryConfigPath"`
	// The path to the file containing cached repository indexes.
	RepositoryCache pulumi.StringPtrInput `pulumi:"repositoryCache"`
	// The path to the file containing repository names and URLs.
	RepositoryConfigPath pulumi.StringPtrInput `pulumi:"repositoryConfigPath"`
}

Options to configure the Helm Release resource.

func (*HelmReleaseSettingsArgs) Defaults

Defaults sets the appropriate defaults for HelmReleaseSettingsArgs

func (HelmReleaseSettingsArgs) ElementType

func (HelmReleaseSettingsArgs) ElementType() reflect.Type

func (HelmReleaseSettingsArgs) ToHelmReleaseSettingsOutput

func (i HelmReleaseSettingsArgs) ToHelmReleaseSettingsOutput() HelmReleaseSettingsOutput

func (HelmReleaseSettingsArgs) ToHelmReleaseSettingsOutputWithContext

func (i HelmReleaseSettingsArgs) ToHelmReleaseSettingsOutputWithContext(ctx context.Context) HelmReleaseSettingsOutput

func (HelmReleaseSettingsArgs) ToHelmReleaseSettingsPtrOutput

func (i HelmReleaseSettingsArgs) ToHelmReleaseSettingsPtrOutput() HelmReleaseSettingsPtrOutput

func (HelmReleaseSettingsArgs) ToHelmReleaseSettingsPtrOutputWithContext

func (i HelmReleaseSettingsArgs) ToHelmReleaseSettingsPtrOutputWithContext(ctx context.Context) HelmReleaseSettingsPtrOutput

type HelmReleaseSettingsInput

type HelmReleaseSettingsInput interface {
	pulumi.Input

	ToHelmReleaseSettingsOutput() HelmReleaseSettingsOutput
	ToHelmReleaseSettingsOutputWithContext(context.Context) HelmReleaseSettingsOutput
}

HelmReleaseSettingsInput is an input type that accepts HelmReleaseSettingsArgs and HelmReleaseSettingsOutput values. You can construct a concrete instance of `HelmReleaseSettingsInput` via:

HelmReleaseSettingsArgs{...}

type HelmReleaseSettingsOutput

type HelmReleaseSettingsOutput struct{ *pulumi.OutputState }

Options to configure the Helm Release resource.

func (HelmReleaseSettingsOutput) Driver

The backend storage driver for Helm. Values are: configmap, secret, memory, sql.

func (HelmReleaseSettingsOutput) ElementType

func (HelmReleaseSettingsOutput) ElementType() reflect.Type

func (HelmReleaseSettingsOutput) PluginsPath

The path to the helm plugins directory.

func (HelmReleaseSettingsOutput) RegistryConfigPath

func (o HelmReleaseSettingsOutput) RegistryConfigPath() pulumi.StringPtrOutput

The path to the registry config file.

func (HelmReleaseSettingsOutput) RepositoryCache

func (o HelmReleaseSettingsOutput) RepositoryCache() pulumi.StringPtrOutput

The path to the file containing cached repository indexes.

func (HelmReleaseSettingsOutput) RepositoryConfigPath

func (o HelmReleaseSettingsOutput) RepositoryConfigPath() pulumi.StringPtrOutput

The path to the file containing repository names and URLs.

func (HelmReleaseSettingsOutput) ToHelmReleaseSettingsOutput

func (o HelmReleaseSettingsOutput) ToHelmReleaseSettingsOutput() HelmReleaseSettingsOutput

func (HelmReleaseSettingsOutput) ToHelmReleaseSettingsOutputWithContext

func (o HelmReleaseSettingsOutput) ToHelmReleaseSettingsOutputWithContext(ctx context.Context) HelmReleaseSettingsOutput

func (HelmReleaseSettingsOutput) ToHelmReleaseSettingsPtrOutput

func (o HelmReleaseSettingsOutput) ToHelmReleaseSettingsPtrOutput() HelmReleaseSettingsPtrOutput

func (HelmReleaseSettingsOutput) ToHelmReleaseSettingsPtrOutputWithContext

func (o HelmReleaseSettingsOutput) ToHelmReleaseSettingsPtrOutputWithContext(ctx context.Context) HelmReleaseSettingsPtrOutput

type HelmReleaseSettingsPtrInput

type HelmReleaseSettingsPtrInput interface {
	pulumi.Input

	ToHelmReleaseSettingsPtrOutput() HelmReleaseSettingsPtrOutput
	ToHelmReleaseSettingsPtrOutputWithContext(context.Context) HelmReleaseSettingsPtrOutput
}

HelmReleaseSettingsPtrInput is an input type that accepts HelmReleaseSettingsArgs, HelmReleaseSettingsPtr and HelmReleaseSettingsPtrOutput values. You can construct a concrete instance of `HelmReleaseSettingsPtrInput` via:

        HelmReleaseSettingsArgs{...}

or:

        nil

type HelmReleaseSettingsPtrOutput

type HelmReleaseSettingsPtrOutput struct{ *pulumi.OutputState }

func (HelmReleaseSettingsPtrOutput) Driver

The backend storage driver for Helm. Values are: configmap, secret, memory, sql.

func (HelmReleaseSettingsPtrOutput) Elem

func (HelmReleaseSettingsPtrOutput) ElementType

func (HelmReleaseSettingsPtrOutput) PluginsPath

The path to the helm plugins directory.

func (HelmReleaseSettingsPtrOutput) RegistryConfigPath

func (o HelmReleaseSettingsPtrOutput) RegistryConfigPath() pulumi.StringPtrOutput

The path to the registry config file.

func (HelmReleaseSettingsPtrOutput) RepositoryCache

The path to the file containing cached repository indexes.

func (HelmReleaseSettingsPtrOutput) RepositoryConfigPath

func (o HelmReleaseSettingsPtrOutput) RepositoryConfigPath() pulumi.StringPtrOutput

The path to the file containing repository names and URLs.

func (HelmReleaseSettingsPtrOutput) ToHelmReleaseSettingsPtrOutput

func (o HelmReleaseSettingsPtrOutput) ToHelmReleaseSettingsPtrOutput() HelmReleaseSettingsPtrOutput

func (HelmReleaseSettingsPtrOutput) ToHelmReleaseSettingsPtrOutputWithContext

func (o HelmReleaseSettingsPtrOutput) ToHelmReleaseSettingsPtrOutputWithContext(ctx context.Context) HelmReleaseSettingsPtrOutput

type KubeClientSettings

type KubeClientSettings struct {
	// Maximum burst for throttle. Default value is 10.
	Burst *int `pulumi:"burst"`
	// Maximum queries per second (QPS) to the API server from this client. Default value is 5.
	Qps *float64 `pulumi:"qps"`
	// Maximum time in seconds to wait before cancelling a HTTP request to the Kubernetes server. Default value is 32.
	Timeout *int `pulumi:"timeout"`
}

Options for tuning the Kubernetes client used by a Provider.

func (*KubeClientSettings) Defaults

func (val *KubeClientSettings) Defaults() *KubeClientSettings

Defaults sets the appropriate defaults for KubeClientSettings

type KubeClientSettingsArgs

type KubeClientSettingsArgs struct {
	// Maximum burst for throttle. Default value is 10.
	Burst pulumi.IntPtrInput `pulumi:"burst"`
	// Maximum queries per second (QPS) to the API server from this client. Default value is 5.
	Qps pulumi.Float64PtrInput `pulumi:"qps"`
	// Maximum time in seconds to wait before cancelling a HTTP request to the Kubernetes server. Default value is 32.
	Timeout pulumi.IntPtrInput `pulumi:"timeout"`
}

Options for tuning the Kubernetes client used by a Provider.

func (*KubeClientSettingsArgs) Defaults

Defaults sets the appropriate defaults for KubeClientSettingsArgs

func (KubeClientSettingsArgs) ElementType

func (KubeClientSettingsArgs) ElementType() reflect.Type

func (KubeClientSettingsArgs) ToKubeClientSettingsOutput

func (i KubeClientSettingsArgs) ToKubeClientSettingsOutput() KubeClientSettingsOutput

func (KubeClientSettingsArgs) ToKubeClientSettingsOutputWithContext

func (i KubeClientSettingsArgs) ToKubeClientSettingsOutputWithContext(ctx context.Context) KubeClientSettingsOutput

func (KubeClientSettingsArgs) ToKubeClientSettingsPtrOutput

func (i KubeClientSettingsArgs) ToKubeClientSettingsPtrOutput() KubeClientSettingsPtrOutput

func (KubeClientSettingsArgs) ToKubeClientSettingsPtrOutputWithContext

func (i KubeClientSettingsArgs) ToKubeClientSettingsPtrOutputWithContext(ctx context.Context) KubeClientSettingsPtrOutput

type KubeClientSettingsInput

type KubeClientSettingsInput interface {
	pulumi.Input

	ToKubeClientSettingsOutput() KubeClientSettingsOutput
	ToKubeClientSettingsOutputWithContext(context.Context) KubeClientSettingsOutput
}

KubeClientSettingsInput is an input type that accepts KubeClientSettingsArgs and KubeClientSettingsOutput values. You can construct a concrete instance of `KubeClientSettingsInput` via:

KubeClientSettingsArgs{...}

type KubeClientSettingsOutput

type KubeClientSettingsOutput struct{ *pulumi.OutputState }

Options for tuning the Kubernetes client used by a Provider.

func (KubeClientSettingsOutput) Burst

Maximum burst for throttle. Default value is 10.

func (KubeClientSettingsOutput) ElementType

func (KubeClientSettingsOutput) ElementType() reflect.Type

func (KubeClientSettingsOutput) Qps

Maximum queries per second (QPS) to the API server from this client. Default value is 5.

func (KubeClientSettingsOutput) Timeout

Maximum time in seconds to wait before cancelling a HTTP request to the Kubernetes server. Default value is 32.

func (KubeClientSettingsOutput) ToKubeClientSettingsOutput

func (o KubeClientSettingsOutput) ToKubeClientSettingsOutput() KubeClientSettingsOutput

func (KubeClientSettingsOutput) ToKubeClientSettingsOutputWithContext

func (o KubeClientSettingsOutput) ToKubeClientSettingsOutputWithContext(ctx context.Context) KubeClientSettingsOutput

func (KubeClientSettingsOutput) ToKubeClientSettingsPtrOutput

func (o KubeClientSettingsOutput) ToKubeClientSettingsPtrOutput() KubeClientSettingsPtrOutput

func (KubeClientSettingsOutput) ToKubeClientSettingsPtrOutputWithContext

func (o KubeClientSettingsOutput) ToKubeClientSettingsPtrOutputWithContext(ctx context.Context) KubeClientSettingsPtrOutput

type KubeClientSettingsPtrInput

type KubeClientSettingsPtrInput interface {
	pulumi.Input

	ToKubeClientSettingsPtrOutput() KubeClientSettingsPtrOutput
	ToKubeClientSettingsPtrOutputWithContext(context.Context) KubeClientSettingsPtrOutput
}

KubeClientSettingsPtrInput is an input type that accepts KubeClientSettingsArgs, KubeClientSettingsPtr and KubeClientSettingsPtrOutput values. You can construct a concrete instance of `KubeClientSettingsPtrInput` via:

        KubeClientSettingsArgs{...}

or:

        nil

type KubeClientSettingsPtrOutput

type KubeClientSettingsPtrOutput struct{ *pulumi.OutputState }

func (KubeClientSettingsPtrOutput) Burst

Maximum burst for throttle. Default value is 10.

func (KubeClientSettingsPtrOutput) Elem

func (KubeClientSettingsPtrOutput) ElementType

func (KubeClientSettingsPtrOutput) Qps

Maximum queries per second (QPS) to the API server from this client. Default value is 5.

func (KubeClientSettingsPtrOutput) Timeout

Maximum time in seconds to wait before cancelling a HTTP request to the Kubernetes server. Default value is 32.

func (KubeClientSettingsPtrOutput) ToKubeClientSettingsPtrOutput

func (o KubeClientSettingsPtrOutput) ToKubeClientSettingsPtrOutput() KubeClientSettingsPtrOutput

func (KubeClientSettingsPtrOutput) ToKubeClientSettingsPtrOutputWithContext

func (o KubeClientSettingsPtrOutput) ToKubeClientSettingsPtrOutputWithContext(ctx context.Context) KubeClientSettingsPtrOutput

type Provider

type Provider struct {
	pulumi.ProviderResourceState
}

The provider type for the kubernetes package.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// If present, the name of the kubeconfig cluster to use.
	Cluster pulumi.StringPtrInput
	// If present, the name of the kubeconfig context to use.
	Context pulumi.StringPtrInput
	// If present and set to true, the provider will delete resources associated with an unreachable Kubernetes cluster from Pulumi state
	DeleteUnreachable pulumi.BoolPtrInput
	// 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.
	EnableConfigMapMutable pulumi.BoolPtrInput
	// If present and set to false, disable Server-Side Apply mode.
	// See https://github.com/pulumi/pulumi-kubernetes/issues/2011 for additional details.
	EnableServerSideApply pulumi.BoolPtrInput
	// Options to configure the Helm Release resource.
	HelmReleaseSettings HelmReleaseSettingsPtrInput
	// Options for tuning the Kubernetes client used by a Provider.
	KubeClientSettings KubeClientSettingsPtrInput
	// The contents of a kubeconfig file or the path to a kubeconfig file.
	Kubeconfig pulumi.StringPtrInput
	// 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.
	Namespace pulumi.StringPtrInput
	// 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.
	RenderYamlToDirectory pulumi.StringPtrInput
	// If present and set to true, suppress apiVersion deprecation warnings from the CLI.
	SuppressDeprecationWarnings pulumi.BoolPtrInput
	// If present and set to true, suppress unsupported Helm hook warnings from the CLI.
	SuppressHelmHookWarnings pulumi.BoolPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type UntypedArgs

type UntypedArgs map[string]interface{}

UntypedArgs is an untyped interface that is required for YAML and CustomResource support.

func (UntypedArgs) ElementType

func (UntypedArgs) ElementType() reflect.Type

Directories

Path Synopsis
admissionregistration
v1
v1
apiregistration
v1
apps
v1
auditregistration
authentication
v1
authorization
v1
autoscaling
v1
v2
batch
v1
certificates
v1
coordination
v1
core
v1
discovery
v1
events
v1
extensions
flowcontrol
helm
v3
meta
v1
networking
v1
node
v1
pkg
policy
v1
rbac
v1
resource
scheduling
v1
settings
storage
v1

Jump to

Keyboard shortcuts

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