Documentation
¶
Index ¶
- func InstallKindBinary(env config.Env, vm *remote.Host, kindVersion string, ...) (pulumi.Resource, error)
- func InstallOpenShiftBinary(env config.Env, vm *remote.Host, opts ...pulumi.ResourceOption) (pulumi.Resource, error)
- type AgentDependentWorkloadAppFunc
- type Cluster
- func NewKindCluster(env config.Env, vm *remote.Host, name string, kubeVersion string, ...) (*Cluster, error)
- func NewKindClusterWithConfig(env config.Env, vm *remote.Host, name, kubeVersion string, ...) (*Cluster, error)
- func NewLocalKindCluster(env config.Env, name string, kubeVersion string, opts ...pulumi.ResourceOption) (*Cluster, error)
- func NewLocalOpenShiftCluster(env config.Env, name string, pullSecretPath string, ...) (*Cluster, error)
- func NewOpenShiftCluster(env config.Env, vm *remote.Host, name string, pullSecretPath string, ...) (*Cluster, error)
- type ClusterOutput
- type KindConfig
- type KindConfigFlags
- type KubernetesObjRefOutput
- type KubernetesObjectRef
- type Workload
- type WorkloadAppFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallKindBinary ¶
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 NewOpenShiftCluster ¶
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 ¶
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 ¶
func (h *KubernetesObjectRef) Export(ctx *pulumi.Context, out *KubernetesObjRefOutput) error
type Workload ¶
type Workload struct {
pulumi.ResourceState
components.Component
}
Workload is a Component that represents a Kubernetes workload