kubernetes

package
v0.78.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallKindBinary

func InstallKindBinary(env config.Env, vm *remote.Host, kindVersion string, opts ...pulumi.ResourceOption) (pulumi.Resource, error)

func InstallOpenShiftBinary

func InstallOpenShiftBinary(env config.Env, vm *remote.Host, opts ...pulumi.ResourceOption) (pulumi.Resource, error)

Types

type AgentDependentWorkloadAppFunc added in v0.75.0

type AgentDependentWorkloadAppFunc func(e config.Env, kubeProvider *kubernetes.Provider, dependsOnAgent pulumi.ResourceOption) (*Workload, error)

AgentDependentWorkloadAppFunc is a function that deploys a workload app to a kube provider with the agent passed in

type Cluster

type Cluster struct {
	pulumi.ResourceState
	components.Component

	KubeProvider *kubernetes.Provider

	ClusterName               pulumi.StringOutput `pulumi:"clusterName"`
	KubeConfig                pulumi.StringOutput `pulumi:"kubeConfig"`
	KubeInternalServerAddress pulumi.StringOutput `pulumi:"kubeInternalServerAddress"`
	KubeInternalServerPort    pulumi.StringOutput `pulumi:"kubeInternalServerPort"`
}

Cluster represents a Kubernetes cluster

func NewKindCluster

func NewKindCluster(env config.Env, vm *remote.Host, name string, kubeVersion string, opts ...pulumi.ResourceOption) (*Cluster, error)

Install Kind on a Linux virtual machine.

func NewKindClusterWithConfig

func NewKindClusterWithConfig(env config.Env, vm *remote.Host, name, kubeVersion string, kindFlags KindConfigFlags, opts ...pulumi.ResourceOption) (*Cluster, error)

func NewLocalKindCluster

func NewLocalKindCluster(env config.Env, name string, kubeVersion string, opts ...pulumi.ResourceOption) (*Cluster, error)

func NewLocalOpenShiftCluster

func NewLocalOpenShiftCluster(env config.Env, name string, pullSecretPath string, opts ...pulumi.ResourceOption) (*Cluster, error)

func NewOpenShiftCluster

func NewOpenShiftCluster(env config.Env, vm *remote.Host, name string, pullSecretPath string, opts ...pulumi.ResourceOption) (*Cluster, error)

func (*Cluster) Export

func (c *Cluster) Export(ctx *pulumi.Context, out *ClusterOutput) error

type ClusterOutput

type ClusterOutput struct {
	components.JSONImporter

	ClusterName string `json:"clusterName"`
	KubeConfig  string `json:"kubeConfig"`
}

The type that is used to import the KubernetesCluster component

type KindConfig

type KindConfig struct {
	KindVersion            string
	NodeImageVersion       string
	UseNewContainerdConfig bool
}

KindConfig contains the kind version and the kind node image to use

func GetKindVersionConfig

func GetKindVersionConfig(kubeVersion string) (*KindConfig, error)

GetKindVersionConfig returns the kind version and the kind node image to use based on kubernetes version

type KindConfigFlags

type KindConfigFlags struct {
	NewContainerdRegistryConfig bool // whether to use the new containerd registry mirror config format (for containerd >= 2.2, used in kubernetes >= v1.32)
	KubeProxyReplacement        bool // whether to set kubeProxyMode to "none" in the kind config
	DualNodeSetup               bool
}

KindConfigFlags contains flags to generate a kind cluster configuration It can be used to generate different kind cluster configurations based on the flags set It can be extended in the future to add more configuration options, mount path, featureflags etc. It must match the fields in the kind-cluster.yaml template

type KubernetesObjRefOutput

type KubernetesObjRefOutput struct {
	components.JSONImporter

	Namespace      string            `json:"namespace"`
	Name           string            `json:"name"`
	Kind           string            `json:"kind"`
	AppVersion     string            `json:"installAppVersion"`
	Version        string            `json:"installVersion"`
	LabelSelectors map[string]string `json:"labelSelectors"`
}

type KubernetesObjectRef

type KubernetesObjectRef struct {
	pulumi.ResourceState
	components.Component

	Namespace      pulumi.String       `pulumi:"namespace"`
	Name           pulumi.String       `pulumi:"name"`
	Kind           pulumi.String       `pulumi:"kind"`
	AppVersion     pulumi.StringOutput `pulumi:"installAppVersion"`
	Version        pulumi.StringOutput `pulumi:"installVersion"`
	LabelSelectors pulumi.Map          `pulumi:"labelSelectors"`
}

func NewKubernetesObjRef

func NewKubernetesObjRef(e config.Env, name string, namespace string, kind string, appVersion pulumi.StringOutput, version pulumi.StringOutput, labelSelectors map[string]string) (*KubernetesObjectRef, error)

func (*KubernetesObjectRef) Export

type Workload

type Workload struct {
	pulumi.ResourceState
	components.Component
}

Workload is a Component that represents a Kubernetes workload

type WorkloadAppFunc added in v0.75.0

type WorkloadAppFunc func(e config.Env, kubeProvider *kubernetes.Provider) (*Workload, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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