v1alpha1

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 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 {
	SubnetID           string `json:"subnetID,omitempty"`
	SecurityGroupID    string `json:"securityGroup,omitempty"`
	NetworkInterfaceID string `json:"networkInterfaceID,omitempty"`
	PrivateAddress     string `json:"privateAddress,omitempty"`
	PublicIP           bool   `json:"publicIP,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:"aws-ca-k8s" json:"nodegroup,omitempty"`
	ControlPlane    bool                `json:"controlPlane,omitempty"`
	AllowDeployment bool                `json:"allowDeployment,omitempty"`
	InstanceType    string              `default:"t2.micro" json:"instanceType"`
	DiskSize        int                 `default:"10240" json:"diskSizeInMb"`
	DiskType        int                 `default:"gp2" json:"diskType"`
	ENI             *ManagedNodeNetwork `json:"eni,omitempty"`
	Labels          []string            `json:"labels,omitempty"`
	Annotations     []string            `json:"annotations,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"`
	// The instance created
	InstanceName string `json:"instancename,omitempty"`
	InstanceID   string `json:"instanceid,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.

Jump to

Keyboard shortcuts

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