Documentation
¶
Index ¶
Constants ¶
View Source
const APIVersion = "k0sctl.k0sproject.io/v1beta1"
APIVersion is the current api version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata *ClusterMetadata `yaml:"metadata"` Spec *cluster.Spec `yaml:"spec"` }
Cluster describes launchpad.yaml configuration
func (*Cluster) StorageType ¶ added in v0.22.0
StorageType returns the k0s storage type.
func (*Cluster) UnmarshalYAML ¶
UnmarshalYAML sets in some sane defaults when unmarshaling the data from yaml
type ClusterMetadata ¶
type ClusterMetadata struct { Name string `yaml:"name" validate:"required" default:"k0s-cluster"` User string `yaml:"user" default:"admin"` Kubeconfig string `yaml:"-"` EtcdMembers []string `yaml:"-"` Manifests map[string][]byte `yaml:"-"` }
ClusterMetadata defines cluster metadata
Click to show internal directories.
Click to hide internal directories.