kubernetes

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 14 Imported by: 8

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 added in v0.0.4

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

Types

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 string, kubeVersion, kindConfig string, opts ...pulumi.ResourceOption) (*Cluster, error)

func NewLocalKindCluster

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

func NewLocalOpenShiftCluster added in v0.0.4

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

func NewOpenShiftCluster added in v0.0.4

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
}

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 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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