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" validate:"required,apiversionmatch"`
Kind string `yaml:"kind" validate:"required,oneof=cluster Cluster"`
Metadata *ClusterMetadata `yaml:"metadata"`
Spec *cluster.Spec `yaml:"spec"`
}
Cluster describes launchpad.yaml configuration
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"`
}
ClusterMetadata defines cluster metadata
Click to show internal directories.
Click to hide internal directories.