v1alpha3

package
v0.0.0-...-fffe440 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha3 contains API Schema definitions for the infrastructure v1alpha3 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io

Index

Constants

View Source
const (
	// ClusterFinalizer allows ReconcileMetamorphCluster to clean up Metamorph resources associated with MetamorphCluster before
	// removing it from the apiserver.
	ClusterFinalizer = "metamorphcluster.infrastructure.cluster.x-k8s.io"
)
View Source
const (
	// MachineFinalizer allows ReconcileMetamorphMachine to clean up resources associated with MetamorphMachine before
	// removing it from the apiserver.
	MachineFinalizer = "metamorphmachine.infrastructure.cluster.x-k8s.io"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructure.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 API

type API struct {
	//PluginsID uint
	Name   string `yaml:"name" json:"name"`
	Plugin string `yaml:"plugin" json:"plugin"`
}

func (*API) DeepCopy

func (in *API) DeepCopy() *API

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

func (*API) DeepCopyInto

func (in *API) DeepCopyInto(out *API)

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

type APIEndpoint

type APIEndpoint struct {
	// Host is the hostname on which the API server is serving.
	Host string `json:"host"`

	// Port is the port on which the API server is serving.
	Port int `json:"port"`
}

APIEndpoint represents a reachable Kubernetes API endpoint.

func (*APIEndpoint) DeepCopy

func (in *APIEndpoint) DeepCopy() *APIEndpoint

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

func (*APIEndpoint) DeepCopyInto

func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint)

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

type BondInterface

type BondInterface struct {
	BondInterface string
}

func (*BondInterface) DeepCopy

func (in *BondInterface) DeepCopy() *BondInterface

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

func (*BondInterface) DeepCopyInto

func (in *BondInterface) DeepCopyInto(out *BondInterface)

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

type BondParameter

type BondParameter struct {
	Key   string
	Value string
}

func (*BondParameter) DeepCopy

func (in *BondParameter) DeepCopy() *BondParameter

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

func (*BondParameter) DeepCopyInto

func (in *BondParameter) DeepCopyInto(out *BondParameter)

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

type BootAction

type BootAction struct {
	Name     string `yaml:"name" json:"name"`
	Location string `yaml:"location" json:"location"`
	Priority uint   `yaml:"priority" json:"priority"`
	Control  string `yaml:"control" json:"control"`
	Args     string `yaml:"args,omitempty" json:"args,omitempty"`
}

func (*BootAction) DeepCopy

func (in *BootAction) DeepCopy() *BootAction

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

func (*BootAction) DeepCopyInto

func (in *BootAction) DeepCopyInto(out *BootAction)

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

type Filesystem

type Filesystem struct {
	//PartitionID  uint
	Mountpoint   string `yaml:"mountpoint" json:"mountpoint"`
	Fstype       string `yaml:"fstype" json:"fstype"`
	MountOptions string `yaml:"mount-options" json:"mount-options"`
}

func (*Filesystem) DeepCopy

func (in *Filesystem) DeepCopy() *Filesystem

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

func (*Filesystem) DeepCopyInto

func (in *Filesystem) DeepCopyInto(out *Filesystem)

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

type Firmware

type Firmware struct {
	Name    string `yaml:"name" json:"name"`
	Version string `yaml:"version" json:"version"`
	URL     string `yaml:"url" json:"url"`
}

func (*Firmware) DeepCopy

func (in *Firmware) DeepCopy() *Firmware

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

func (*Firmware) DeepCopyInto

func (in *Firmware) DeepCopyInto(out *Firmware)

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

type IPMIDetails

type IPMIDetails struct {
	Address                        string `json:"address"`
	CredentialsName                string `json:"credentialsName"`
	DisableCertificateVerification bool   `json:"disableCertificateVerification,omitempty"`
}

IPMIDetails contains the IPMI details of target node.

func (*IPMIDetails) DeepCopy

func (in *IPMIDetails) DeepCopy() *IPMIDetails

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

func (*IPMIDetails) DeepCopyInto

func (in *IPMIDetails) DeepCopyInto(out *IPMIDetails)

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

type Image

type Image struct {
	// URL is a location of the image.
	URL string `json:"url"`
	// Checksum is a location of md5sum for the image.
	Checksum string `json:"checksum"`
}

Image contains the details of the image to bootstrap the node.

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

type KvmPolicy

type KvmPolicy struct {
	CpuAllocation     string `yaml:"cpuAllocation" json:"cpuAllocation"`
	CpuPinning        string `yaml:"cpuHyperthreading" json:"cpuHyperthreading"`
	CpuHyperthreading string `yaml:"cpuPinning" json:"cpuPinning"`
}

func (*KvmPolicy) DeepCopy

func (in *KvmPolicy) DeepCopy() *KvmPolicy

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

func (*KvmPolicy) DeepCopyInto

func (in *KvmPolicy) DeepCopyInto(out *KvmPolicy)

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

type MetamorphCluster

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

	Spec   MetamorphClusterSpec   `json:"spec,omitempty"`
	Status MetamorphClusterStatus `json:"status,omitempty"`
}

MetamorphCluster is the Schema for the metamorphclusters API

func (*MetamorphCluster) DeepCopy

func (in *MetamorphCluster) DeepCopy() *MetamorphCluster

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

func (*MetamorphCluster) DeepCopyInto

func (in *MetamorphCluster) DeepCopyInto(out *MetamorphCluster)

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

func (*MetamorphCluster) DeepCopyObject

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

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

type MetamorphClusterList

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

MetamorphClusterList contains a list of MetamorphCluster

func (*MetamorphClusterList) DeepCopy

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

func (*MetamorphClusterList) DeepCopyInto

func (in *MetamorphClusterList) DeepCopyInto(out *MetamorphClusterList)

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

func (*MetamorphClusterList) DeepCopyObject

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

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

type MetamorphClusterSpec

type MetamorphClusterSpec struct {

	//ControlPlaneEndpoint APIEndpoint `json:"controlPlaneEndpoint"`
	ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint"`
}

MetamorphClusterSpec defines the desired state of MetamorphCluster

func (*MetamorphClusterSpec) DeepCopy

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

func (*MetamorphClusterSpec) DeepCopyInto

func (in *MetamorphClusterSpec) DeepCopyInto(out *MetamorphClusterSpec)

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

type MetamorphClusterStatus

type MetamorphClusterStatus struct {
	Ready bool `json:"ready"`

	// FailureReason indicates that there is a fatal problem reconciling the
	// state, and will be set to a token value suitable for
	// programmatic interpretation.
	// +optional
	FailureReason *capierrors.ClusterStatusError `json:"failureReason,omitempty"`

	// FailureMessage indicates that there is a fatal problem reconciling the
	// state, and will be set to a descriptive error message.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

MetamorphClusterStatus defines the observed state of MetamorphCluster

func (*MetamorphClusterStatus) DeepCopy

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

func (*MetamorphClusterStatus) DeepCopyInto

func (in *MetamorphClusterStatus) DeepCopyInto(out *MetamorphClusterStatus)

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

type MetamorphMachine

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

	Spec   MetamorphMachineSpec   `json:"spec,omitempty"`
	Status MetamorphMachineStatus `json:"status,omitempty"`
}

MetamorphMachine is the Schema for the metamorphmachines API

func (*MetamorphMachine) DeepCopy

func (in *MetamorphMachine) DeepCopy() *MetamorphMachine

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

func (*MetamorphMachine) DeepCopyInto

func (in *MetamorphMachine) DeepCopyInto(out *MetamorphMachine)

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

func (*MetamorphMachine) DeepCopyObject

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

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

type MetamorphMachineList

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

MetamorphMachineList contains a list of MetamorphMachine

func (*MetamorphMachineList) DeepCopy

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

func (*MetamorphMachineList) DeepCopyInto

func (in *MetamorphMachineList) DeepCopyInto(out *MetamorphMachineList)

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

func (*MetamorphMachineList) DeepCopyObject

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

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

type MetamorphMachineSpec

type MetamorphMachineSpec struct {
	ProviderID *string `json:"providerID,omitempty"`

	Online bool `json:"online"`

	// Image is the image to be deployed.
	Image Image `json:"image"`

	UserData *corev1.SecretReference `json:"userData,omitempty"`

	IPMIDetails IPMIDetails `json:"IPMIDetails,omitempty"`
}

MetamorphMachineSpec defines the desired state of MetamorphMachine

func (*MetamorphMachineSpec) DeepCopy

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

func (*MetamorphMachineSpec) DeepCopyInto

func (in *MetamorphMachineSpec) DeepCopyInto(out *MetamorphMachineSpec)

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

type MetamorphMachineStatus

type MetamorphMachineStatus struct {

	// ProviderID is the unique identifier as specified by the provider.
	ProviderID *string `json:"providerID,omitempty"`
	// Ready is true when the provider resource is ready.
	// +optional
	Ready bool `json:"ready"`

	InstanceState string `json:"state,omitempty"`

	// ddresses is a list of addresses assigned to the machine.
	// +optional
	Addresses []corev1.NodeAddress `json:"addresses,omitempty"`

	FailureReason *capierrors.MachineStatusError `json:"failureReason,omitempty"`

	// FailureMessage will be set in the event that there is a terminal problem
	// reconciling the Machine and will contain a more verbose string suitable
	// for logging and human consumption.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the Machine's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Machines
	// can be added as events to the Machine object and/or logged in the
	// controller's output.
	// +optional
	FailureMessage *string `json:"errorMessage,omitempty"`
}

MetamorphMachineStatus defines the observed state of MetamorphMachine

func (*MetamorphMachineStatus) DeepCopy

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

func (*MetamorphMachineStatus) DeepCopyInto

func (in *MetamorphMachineStatus) DeepCopyInto(out *MetamorphMachineStatus)

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

type NameServer

type NameServer struct {
	NameServer string `yaml:"NameServer" json:"NameServer"`
}

func (*NameServer) DeepCopy

func (in *NameServer) DeepCopy() *NameServer

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

func (*NameServer) DeepCopyInto

func (in *NameServer) DeepCopyInto(out *NameServer)

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

type Node

type Node struct {
	Name        string `yaml:"name" json:"name"`
	ISOURL      string `yaml:"isoUrl" json:"isoUrl"`
	ISOChecksum string `yaml:"isoChecksum" json:"isoChecksum"`
	//ImageURL    string
	//ChecksumURL           string
	//ImageReadilyAvailable bool
	//OamIP                 string
	//OamGateway            string
	//NameServers           []NameServer  `json:"NameServers"`
	OsDisk       string        `yaml:"osDisk" json:"osDisk"`
	Partitions   []Partition   `yaml:"partitions" json:"partitions"`
	GrubConfig   string        `yaml:"grubConfig" json:"grubConfig"`
	KvmPolicy    KvmPolicy     `yaml:"kvmPolicy" json:"kvmPolicy"`
	SSHPubKeys   []SSHPubKey   `yaml:"sshPubKeys" json:"sshPubKeys"`
	IPMIIP       string        `yaml:"ipmiIp" json:"ipmiIp"`
	IPMIUser     string        `yaml:"ipmiUser" json:"ipmiUser"`
	IPMIPassword string        `yaml:"ipmiPassword" json:"ipmiPassword"`
	Vendor       string        `yaml:"vendor" json:"vendor"`
	ServerModel  string        `yaml:"model" json:"model"`
	VirtualDisks []VirtualDisk `yaml:"virtualDisks" json:"virtualDisks"`
	State        string        `yaml:"State,omitempty" json:"State,omitempty"`
	//ProvisioningIP        string
	//ProvisionerPort       int
	//HTTPPort              int
	BootActions   []BootAction `yaml:"bootActions" json:"bootActions"`
	NetworkConfig string       `yaml:"networkConfig" json:"networkConfig"`
	RAID_reset    bool         `yaml:"raidReset" json:"raidReset"`
	//RedfishManagerID      string
	//RedfishSystemID       string
	//RedfishVersion        string
	Domain               string     `yaml:"domain" json:"domain"`
	Firmwares            []Firmware `yaml:"firmwares" json:"firmwares"`
	AllowFirmwareUpgrade bool       `yaml:"allowFirwareUpgrade" json:"allowFirwareUpgrade"`
	Plugins              Plugins    `yaml:"plugins" json:"plugins"`
	CloudInit            string     `yaml:"cloudInit" json:"cloudInit"`
}

func (*Node) DeepCopy

func (in *Node) DeepCopy() *Node

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

func (*Node) DeepCopyInto

func (in *Node) DeepCopyInto(out *Node)

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

type Partition

type Partition struct {
	Name       string     `yaml:"name" json:"name"`
	Size       string     `yaml:"size" json:"size"`
	Bootable   bool       `yaml:"bootable,omitempty" json:"bootable,omitempty"`
	Primary    bool       `yaml:"primary,omitempty" json:"primary,omitempty"`
	Filesystem Filesystem `yaml:"filesystem" json:"filesystem"`
}

func (*Partition) DeepCopy

func (in *Partition) DeepCopy() *Partition

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

func (*Partition) DeepCopyInto

func (in *Partition) DeepCopyInto(out *Partition)

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

type PhysicalDisk

type PhysicalDisk struct {
	VirtualDiskID uint   `yaml:"virtualDiskID" json:"virtualDiskID"`
	PhysicalDisk  string `yaml:"physicalDisk" json:"physicalDisk"`
}

func (*PhysicalDisk) DeepCopy

func (in *PhysicalDisk) DeepCopy() *PhysicalDisk

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

func (*PhysicalDisk) DeepCopyInto

func (in *PhysicalDisk) DeepCopyInto(out *PhysicalDisk)

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

type Plugins

type Plugins struct {
	APIs []API `yaml:"apis" json:"apis"`
}

func (*Plugins) DeepCopy

func (in *Plugins) DeepCopy() *Plugins

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

func (*Plugins) DeepCopyInto

func (in *Plugins) DeepCopyInto(out *Plugins)

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

type SSHPubKey

type SSHPubKey struct {
	SSHPubKey string `yaml:"sshPubKey" json:"sshPubKey"`
}

func (*SSHPubKey) DeepCopy

func (in *SSHPubKey) DeepCopy() *SSHPubKey

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

func (*SSHPubKey) DeepCopyInto

func (in *SSHPubKey) DeepCopyInto(out *SSHPubKey)

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

type VirtualDisk

type VirtualDisk struct {
	DiskName       string         `yaml:"diskName" json:"diskName"`
	RaidType       int            `yaml:"raidType" json:"raidType"`
	RaidController string         `yaml:"raidController" json:"raidController"`
	PhysicalDisks  []PhysicalDisk `yaml:"physicalDisks" json:"physicalDisks"`
}

func (*VirtualDisk) DeepCopy

func (in *VirtualDisk) DeepCopy() *VirtualDisk

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

func (*VirtualDisk) DeepCopyInto

func (in *VirtualDisk) DeepCopyInto(out *VirtualDisk)

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