v1alpha1

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the config v1alpha1 API group +kubebuilder:object:generate=true +groupName=config.operators.annismckenzie.github.com

Index

Constants

View Source
const K3OSConfigFileKind = "K3OSConfigFile"

K3OSConfigFileKind contains the Kind of the K3OSConfigFile CR.

View Source
const K3OSConfigKind = "K3OSConfig"

K3OSConfigKind contains the Kind of the K3OSConfig CR.

View Source
const K3OSConfigListKind = "K3OSConfigList"

K3OSConfigListKind contains the Kind of a list of K3OSConfig CRs.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "config.operators.annismckenzie.github.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type K3OSConfig

type K3OSConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   K3OSConfigSpec   `json:"spec,omitempty"`
	Status K3OSConfigStatus `json:"status,omitempty"`
}

K3OSConfig is the Schema for the k3osconfigs API.

func (*K3OSConfig) DeepCopy

func (in *K3OSConfig) DeepCopy() *K3OSConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3OSConfig.

func (*K3OSConfig) DeepCopyInto

func (in *K3OSConfig) DeepCopyInto(out *K3OSConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*K3OSConfig) DeepCopyObject

func (in *K3OSConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type K3OSConfigFile added in v0.2.0

type K3OSConfigFile struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   K3OSConfigFileSpec   `json:"spec,omitempty"`
	Status K3OSConfigFileStatus `json:"status,omitempty"`
}

K3OSConfigFile is the Schema for the k3osconfigfiles API.

func (*K3OSConfigFile) DeepCopy added in v0.2.0

func (in *K3OSConfigFile) DeepCopy() *K3OSConfigFile

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3OSConfigFile.

func (*K3OSConfigFile) DeepCopyInto added in v0.2.0

func (in *K3OSConfigFile) DeepCopyInto(out *K3OSConfigFile)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*K3OSConfigFile) DeepCopyObject added in v0.2.0

func (in *K3OSConfigFile) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*K3OSConfigFile) MarshalYAML added in v0.3.0

func (s *K3OSConfigFile) MarshalYAML() ([]byte, error)

MarshalYAML returns the YAML representation of the config file.

type K3OSConfigFileList added in v0.2.0

type K3OSConfigFileList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []K3OSConfigFile `json:"items"`
}

K3OSConfigFileList contains a list of K3OSConfigFile.

func (*K3OSConfigFileList) DeepCopy added in v0.2.0

func (in *K3OSConfigFileList) DeepCopy() *K3OSConfigFileList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3OSConfigFileList.

func (*K3OSConfigFileList) DeepCopyInto added in v0.2.0

func (in *K3OSConfigFileList) DeepCopyInto(out *K3OSConfigFileList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*K3OSConfigFileList) DeepCopyObject added in v0.2.0

func (in *K3OSConfigFileList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type K3OSConfigFileSectionK3OS added in v0.2.0

type K3OSConfigFileSectionK3OS struct {
	Labels map[string]string `json:"labels" yaml:"labels"`
	Taints []string          `json:"taints" yaml:"taints"`
}

K3OSConfigFileSectionK3OS contains the spec of the `k3os` section of the K3OS YAML config file.

func (*K3OSConfigFileSectionK3OS) DeepCopy added in v0.2.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3OSConfigFileSectionK3OS.

func (*K3OSConfigFileSectionK3OS) DeepCopyInto added in v0.2.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type K3OSConfigFileSpec added in v0.2.0

type K3OSConfigFileSpec struct {
	Hostname string `json:"hostname" yaml:"hostname"`

	K3OS K3OSConfigFileSectionK3OS `json:"k3os" yaml:"k3os"`

	// Data contains the raw contents of the config file.
	Data []byte `json:"-" yaml:"-"`
}

K3OSConfigFileSpec defines the desired state of K3OSConfigFile. Use `ParseConfigYAML()` to parse a k3OS config.yaml file.

func ParseConfigYAML added in v0.2.0

func ParseConfigYAML(data []byte) (*K3OSConfigFileSpec, error)

ParseConfigYAML parses the data of a k3OS config.yaml into a K3OSConfigFileSpec object.

func (*K3OSConfigFileSpec) DeepCopy added in v0.2.0

func (in *K3OSConfigFileSpec) DeepCopy() *K3OSConfigFileSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3OSConfigFileSpec.

func (*K3OSConfigFileSpec) DeepCopyInto added in v0.2.0

func (in *K3OSConfigFileSpec) DeepCopyInto(out *K3OSConfigFileSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*K3OSConfigFileSpec) Validate added in v0.2.0

func (s *K3OSConfigFileSpec) Validate() error

Validate checks the contents of the spec for errors and returns them.

type K3OSConfigFileStatus added in v0.2.0

type K3OSConfigFileStatus struct{}

K3OSConfigFileStatus defines the observed state of K3OSConfigFile.

func (*K3OSConfigFileStatus) DeepCopy added in v0.2.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3OSConfigFileStatus.

func (*K3OSConfigFileStatus) DeepCopyInto added in v0.2.0

func (in *K3OSConfigFileStatus) DeepCopyInto(out *K3OSConfigFileStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type K3OSConfigList

type K3OSConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []K3OSConfig `json:"items"`
}

K3OSConfigList contains a list of K3OSConfig.

func (*K3OSConfigList) DeepCopy

func (in *K3OSConfigList) DeepCopy() *K3OSConfigList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3OSConfigList.

func (*K3OSConfigList) DeepCopyInto

func (in *K3OSConfigList) DeepCopyInto(out *K3OSConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*K3OSConfigList) DeepCopyObject

func (in *K3OSConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type K3OSConfigSpec

type K3OSConfigSpec struct {
	// SyncNodeLabels enables syncing node labels set in the K3OS config.yaml.
	// K3OS by default only sets labels on nodes on first boot.
	SyncNodeLabels bool `json:"syncNodeLabels,omitempty"`

	// SyncNodeTaints enables syncing node taints set in the K3OS config.yaml.
	// K3OS by default only sets taints on nodes on first boot.
	SyncNodeTaints bool `json:"syncNodeTaints,omitempty"`
}

K3OSConfigSpec defines the desired state of K3OSConfig.

func (*K3OSConfigSpec) DeepCopy

func (in *K3OSConfigSpec) DeepCopy() *K3OSConfigSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3OSConfigSpec.

func (*K3OSConfigSpec) DeepCopyInto

func (in *K3OSConfigSpec) DeepCopyInto(out *K3OSConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type K3OSConfigStatus

type K3OSConfigStatus struct{}

K3OSConfigStatus defines the observed state of K3OSConfig.

func (*K3OSConfigStatus) DeepCopy

func (in *K3OSConfigStatus) DeepCopy() *K3OSConfigStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K3OSConfigStatus.

func (*K3OSConfigStatus) DeepCopyInto

func (in *K3OSConfigStatus) DeepCopyInto(out *K3OSConfigStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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