v1beta1

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 2 Imported by: 3

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) 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