v1alpha3

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha3 contains API Schema definitions for the bootstrap v1alpha3 API group.

+kubebuilder:object:generate=true +groupName=bootstrap.cluster.x-k8s.io

Index

Constants

View Source
const (
	// ConfigFinalizer allows us to clean up resources before deletion
	ConfigFinalizer = "talosconfig.bootstrap.cluster.x-k8s.io"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "bootstrap.cluster.x-k8s.io", Version: "v1alpha3"}

	// 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 ConfigPatches

type ConfigPatches struct {
	Op    string             `json:"op"`
	Path  string             `json:"path"`
	Value apiextensions.JSON `json:"value,omitempty"`
}

func (*ConfigPatches) DeepCopy

func (in *ConfigPatches) DeepCopy() *ConfigPatches

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

func (*ConfigPatches) DeepCopyInto

func (in *ConfigPatches) DeepCopyInto(out *ConfigPatches)

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

type TalosConfig

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

	Spec   TalosConfigSpec   `json:"spec,omitempty"`
	Status TalosConfigStatus `json:"status,omitempty"`
}

TalosConfig is the Schema for the talosconfigs API

func (*TalosConfig) DeepCopy

func (in *TalosConfig) DeepCopy() *TalosConfig

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

func (*TalosConfig) DeepCopyInto

func (in *TalosConfig) DeepCopyInto(out *TalosConfig)

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

func (*TalosConfig) DeepCopyObject

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

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

func (*TalosConfig) Hub

func (*TalosConfig) Hub()

func (*TalosConfig) SetupWebhookWithManager

func (r *TalosConfig) SetupWebhookWithManager(mgr ctrl.Manager) error

type TalosConfigList

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

TalosConfigList contains a list of TalosConfig

func (*TalosConfigList) DeepCopy

func (in *TalosConfigList) DeepCopy() *TalosConfigList

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

func (*TalosConfigList) DeepCopyInto

func (in *TalosConfigList) DeepCopyInto(out *TalosConfigList)

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

func (*TalosConfigList) DeepCopyObject

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

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

func (*TalosConfigList) Hub

func (*TalosConfigList) Hub()

func (*TalosConfigList) SetupWebhookWithManager

func (r *TalosConfigList) SetupWebhookWithManager(mgr ctrl.Manager) error

type TalosConfigSpec

type TalosConfigSpec struct {
	TalosVersion  string          `json:"talosVersion,omitempty"` //talos version formatted like v0.8. used for backwards compatibility
	GenerateType  string          `json:"generateType"`           //none,init,controlplane,worker mutually exclusive w/ data
	Data          string          `json:"data,omitempty"`
	ConfigPatches []ConfigPatches `json:"configPatches,omitempty"`
}

TalosConfigSpec defines the desired state of TalosConfig

func (*TalosConfigSpec) DeepCopy

func (in *TalosConfigSpec) DeepCopy() *TalosConfigSpec

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

func (*TalosConfigSpec) DeepCopyInto

func (in *TalosConfigSpec) DeepCopyInto(out *TalosConfigSpec)

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

type TalosConfigStatus

type TalosConfigStatus struct {
	// Ready indicates the BootstrapData field is ready to be consumed
	Ready bool `json:"ready,omitempty"`

	// DataSecretName is the name of the secret that stores the bootstrap data script.
	// +optional
	DataSecretName *string `json:"dataSecretName,omitempty"`

	// Talos config will be a string containing the config for download
	// +optional
	TalosConfig string `json:"talosConfig,omitempty"`

	// FailureReason will be set on non-retryable errors
	// +optional
	FailureReason string `json:"failureReason,omitempty"`

	// FailureMessage will be set on non-retryable errors
	// +optional
	FailureMessage string `json:"failureMessage,omitempty"`
}

TalosConfigStatus defines the observed state of TalosConfig

func (*TalosConfigStatus) DeepCopy

func (in *TalosConfigStatus) DeepCopy() *TalosConfigStatus

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

func (*TalosConfigStatus) DeepCopyInto

func (in *TalosConfigStatus) DeepCopyInto(out *TalosConfigStatus)

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

type TalosConfigTemplate

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

	Spec TalosConfigTemplateSpec `json:"spec,omitempty"`
}

TalosConfigTemplate is the Schema for the talosconfigtemplates API

func (*TalosConfigTemplate) DeepCopy

func (in *TalosConfigTemplate) DeepCopy() *TalosConfigTemplate

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

func (*TalosConfigTemplate) DeepCopyInto

func (in *TalosConfigTemplate) DeepCopyInto(out *TalosConfigTemplate)

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

func (*TalosConfigTemplate) DeepCopyObject

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

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

func (*TalosConfigTemplate) Hub

func (*TalosConfigTemplate) Hub()

func (*TalosConfigTemplate) SetupWebhookWithManager

func (r *TalosConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error

type TalosConfigTemplateList

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

TalosConfigTemplateList contains a list of TalosConfigTemplate

func (*TalosConfigTemplateList) DeepCopy

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

func (*TalosConfigTemplateList) DeepCopyInto

func (in *TalosConfigTemplateList) DeepCopyInto(out *TalosConfigTemplateList)

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

func (*TalosConfigTemplateList) DeepCopyObject

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

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

func (*TalosConfigTemplateList) Hub

func (*TalosConfigTemplateList) Hub()

func (*TalosConfigTemplateList) SetupWebhookWithManager

func (r *TalosConfigTemplateList) SetupWebhookWithManager(mgr ctrl.Manager) error

type TalosConfigTemplateResource

type TalosConfigTemplateResource struct {
	Spec TalosConfigSpec `json:"spec,omitempty"`
}

TalosConfigTemplateResource defines the Template structure

func (*TalosConfigTemplateResource) DeepCopy

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

func (*TalosConfigTemplateResource) DeepCopyInto

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

type TalosConfigTemplateSpec

type TalosConfigTemplateSpec struct {
	Template TalosConfigTemplateResource `json:"template"`
}

TalosConfigTemplateSpec defines the desired state of TalosConfigTemplate

func (*TalosConfigTemplateSpec) DeepCopy

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

func (*TalosConfigTemplateSpec) DeepCopyInto

func (in *TalosConfigTemplateSpec) DeepCopyInto(out *TalosConfigTemplateSpec)

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