v1alpha1

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: nodemanager.GroupName, Version: nodemanager.GroupVersion}

SchemeGroupVersion is group version used to register these objects

View Source
var SchemeGroupVersionKind = SchemeGroupVersion.WithKind(nodemanager.CRDKind)

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ManagedNode

type ManagedNode struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ManagedNodeSpec   `json:"spec,omitempty"`
	Status            ManagedNodeStatus `json:"status,omitempty"`
}

ManagedNode is a specification for a ManagedNode resource

func (*ManagedNode) DeepCopy

func (in *ManagedNode) DeepCopy() *ManagedNode

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

func (*ManagedNode) DeepCopyInto

func (in *ManagedNode) DeepCopyInto(out *ManagedNode)

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

func (*ManagedNode) DeepCopyObject

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

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

func (*ManagedNode) GetNodegroup

func (mn *ManagedNode) GetNodegroup() string

type ManagedNodeList

type ManagedNodeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ManagedNode `json:"items"`
}

ManagedNodeList is a list of ManagedNode resources

func (*ManagedNodeList) DeepCopy

func (in *ManagedNodeList) DeepCopy() *ManagedNodeList

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

func (*ManagedNodeList) DeepCopyInto

func (in *ManagedNodeList) DeepCopyInto(out *ManagedNodeList)

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

func (*ManagedNodeList) DeepCopyObject

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

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

type ManagedNodeNetwork

type ManagedNodeNetwork struct {
	NetworkName string          `json:"network,omitempty"`
	DHCP        bool            `json:"dhcp,omitempty"`
	UseRoutes   bool            `default:"true" json:"use-dhcp-routes,omitempty" yaml:"use-dhcp-routes,omitempty"`
	IPV4Address string          `json:"address,omitempty"`
	Gateway     string          `json:"gateway,omitempty"`
	Netmask     string          `json:"netmask,omitempty"`
	MacAddress  string          `json:"mac-address,omitempty" yaml:"mac-address,omitempty"`
	Routes      []NetworkRoutes `json:"routes,omitempty" yaml:"routes,omitempty"`
}

ManagedNodeNetwork is a specification for a network ManagedNode resource

func (*ManagedNodeNetwork) DeepCopy

func (in *ManagedNodeNetwork) DeepCopy() *ManagedNodeNetwork

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

func (*ManagedNodeNetwork) DeepCopyInto

func (in *ManagedNodeNetwork) DeepCopyInto(out *ManagedNodeNetwork)

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

type ManagedNodeSpec

type ManagedNodeSpec struct {
	Nodegroup         string               `default:"vmware-ca-k8s" json:"nodegroup,omitempty"`
	ControlPlane      bool                 `json:"controlPlane,omitempty"`
	AllowDeployment   bool                 `json:"allowDeployment,omitempty"`
	VCpus             int                  `default:"2" json:"vcpus"`
	MemorySize        int                  `default:"2048" json:"memorySizeInMb"`
	DiskSize          int                  `default:"10240" json:"diskSizeInMb"`
	Labels            []string             `json:"labels,omitempty"`
	Annotations       []string             `json:"annotations,omitempty"`
	NetworkManagement []ManagedNodeNetwork `json:"networks,omitempty"`
}

ManagedNodeSpec is the spec for a ManagedNode resource

func (*ManagedNodeSpec) DeepCopy

func (in *ManagedNodeSpec) DeepCopy() *ManagedNodeSpec

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

func (*ManagedNodeSpec) DeepCopyInto

func (in *ManagedNodeSpec) DeepCopyInto(out *ManagedNodeSpec)

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

type ManagedNodeStatus

type ManagedNodeStatus struct {
	// The last time this status was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// The node name created
	NodeName string `json:"nodename,omitempty"`
	// A human-readable description of the status of this operation.
	// +optional
	Message string `json:"message,omitempty"`
	// A machine-readable description of why this operation is in the
	// "Failure" status. If this value is empty there
	// is no information available. A Reason clarifies an HTTP status
	// code but does not override it.
	// +optional
	Reason metav1.StatusReason `json:"reason,omitempty"`
	// Suggested HTTP return code for this status, 0 if not set.
	// +optional
	Code int32 `json:"code,omitempty"`
}

ManagedNodeStatus is the status for a ManagedNode resource

func (*ManagedNodeStatus) DeepCopy

func (in *ManagedNodeStatus) DeepCopy() *ManagedNodeStatus

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

func (*ManagedNodeStatus) DeepCopyInto

func (in *ManagedNodeStatus) DeepCopyInto(out *ManagedNodeStatus)

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

type NetworkRoutes added in v1.24.3

type NetworkRoutes struct {
	To     string `json:"to,omitempty" yaml:"to,omitempty"`
	Via    string `json:"via,omitempty" yaml:"via,omitempty"`
	Metric int    `json:"metric,omitempty" yaml:"metric,omitempty"`
}

NetworkRoutes is a specification for a network route ManagedNode resource

func (*NetworkRoutes) DeepCopy added in v1.24.3

func (in *NetworkRoutes) DeepCopy() *NetworkRoutes

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

func (*NetworkRoutes) DeepCopyInto added in v1.24.3

func (in *NetworkRoutes) DeepCopyInto(out *NetworkRoutes)

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