config

package
v0.12.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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

func (c *Cluster) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML sets in some sane defaults when unmarshaling the data from yaml

func (*Cluster) Validate

func (c *Cluster) Validate() error

Validate performs a configuration sanity check

type ClusterMetadata

type ClusterMetadata struct {
	Name string `yaml:"name" validate:"required" default:"k0s-cluster"`
}

ClusterMetadata defines cluster metadata

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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