create

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const LoftChartRepo = "https://charts.loft.sh"

Variables

View Source
var AllowedDistros = []string{"k3s", "k0s", "k8s", "eks"}

Functions

func DeployProCluster added in v0.16.0

func DeployProCluster(ctx context.Context, options *Options, proClient procli.Client, virtualClusterName, targetNamespace string, log log.Logger) error

Types

type HelmChart added in v0.11.0

type HelmChart struct {
	Bundle    string      `json:"bundle,omitempty"    mapstructure:"bundle,omitempty"`
	Name      string      `json:"name,omitempty"      mapstructure:"name"`
	Repo      string      `json:"repo,omitempty"      mapstructure:"repo"`
	Version   string      `json:"version,omitempty"   mapstructure:"version"`
	Namespace string      `json:"namespace,omitempty" mapstructure:"namespace"`
	Values    string      `json:"values,omitempty"    mapstructure:"values"`
	Release   HelmRelease `json:"release,omitempty"   mapstructure:"release"`
}

type HelmRelease added in v0.11.0

type HelmRelease struct {
	Name      string `json:"name,omitempty"      mapstructure:"name"`
	Namespace string `json:"namespace,omitempty" mapstructure:"namespace"`
}

type Init added in v0.11.0

type Init struct {
	Manifests string      `json:"manifests" mapstructure:"manifests"`
	Helm      []HelmChart `json:"helm"      mapstructure:"helm"`
}

type Options added in v0.16.0

type Options struct {
	KubeConfigContextName string
	ChartVersion          string
	ChartName             string
	ChartRepo             string
	LocalChartDir         string
	Distro                string
	CIDR                  string
	Values                []string
	SetValues             []string
	DeprecatedExtraValues []string

	KubernetesVersion string

	CreateNamespace    bool
	DisableIngressSync bool
	UpdateCurrent      bool
	Expose             bool
	ExposeLocal        bool

	Connect bool
	Upgrade bool
	Isolate bool

	// Pro
	Project         string
	Cluster         string
	Template        string
	TemplateVersion string
	Links           []string
	Annotations     []string
	Labels          []string
	Params          string
	SetParams       []string
	DisablePro      bool
}

Options holds the create cmd options

type Values added in v0.11.0

type Values struct {
	Init Init `json:"init" mapstructure:"init"`
}

Jump to

Keyboard shortcuts

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