v1alpha1

package
v0.0.0-...-2d9dd87 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	// ResourceGroupAnnotationName tracks the name of a resource group a GoofyCluster cluster is linked to.
	ResourceGroupAnnotationName = "goofycluster.infrastructure.cluster.x-k8s.io/resourceGroup"

	// ClusterFinalizer allows GoofyClusterReconciler to clean up resources associated with GoofyCluster before
	// removing it from the API server.
	ClusterFinalizer = "goofycluster.infrastructure.cluster.x-k8s.io"
)
View Source
const (
	// MachineFinalizer allows ReconcileGoofyMachine to clean up resources associated with GoofyMachine before
	// removing it from the API server.
	MachineFinalizer = "goofymachine.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: "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 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.
	// Defaults to 6443 if not set.
	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 GoofyCluster

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

	Spec   GoofyClusterSpec   `json:"spec,omitempty"`
	Status GoofyClusterStatus `json:"status,omitempty"`
}

GoofyCluster is the Schema for the goofy clusters API.

func (*GoofyCluster) DeepCopy

func (in *GoofyCluster) DeepCopy() *GoofyCluster

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

func (*GoofyCluster) DeepCopyInto

func (in *GoofyCluster) DeepCopyInto(out *GoofyCluster)

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

func (*GoofyCluster) DeepCopyObject

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

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

func (*GoofyCluster) Default

func (c *GoofyCluster) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*GoofyCluster) GetConditions

func (c *GoofyCluster) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*GoofyCluster) SetConditions

func (c *GoofyCluster) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

func (*GoofyCluster) SetupWebhookWithManager

func (c *GoofyCluster) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*GoofyCluster) ValidateCreate

func (c *GoofyCluster) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*GoofyCluster) ValidateDelete

func (c *GoofyCluster) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*GoofyCluster) ValidateUpdate

func (c *GoofyCluster) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type GoofyClusterList

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

GoofyClusterList contains a list of GoofyCluster.

func (*GoofyClusterList) DeepCopy

func (in *GoofyClusterList) DeepCopy() *GoofyClusterList

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

func (*GoofyClusterList) DeepCopyInto

func (in *GoofyClusterList) DeepCopyInto(out *GoofyClusterList)

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

func (*GoofyClusterList) DeepCopyObject

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

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

type GoofyClusterSpec

type GoofyClusterSpec struct {
	// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
	// +optional
	ControlPlaneEndpoint APIEndpoint `json:"controlPlaneEndpoint"`
}

GoofyClusterSpec defines the desired state of the GoofyCluster.

func (*GoofyClusterSpec) DeepCopy

func (in *GoofyClusterSpec) DeepCopy() *GoofyClusterSpec

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

func (*GoofyClusterSpec) DeepCopyInto

func (in *GoofyClusterSpec) DeepCopyInto(out *GoofyClusterSpec)

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

type GoofyClusterStatus

type GoofyClusterStatus struct {
	// Ready denotes that the goofy cluster (infrastructure) is ready.
	// +optional
	Ready bool `json:"ready"`

	// Conditions defines current service state of the GoofyCluster.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

GoofyClusterStatus defines the observed state of the GoofyCluster.

func (*GoofyClusterStatus) DeepCopy

func (in *GoofyClusterStatus) DeepCopy() *GoofyClusterStatus

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

func (*GoofyClusterStatus) DeepCopyInto

func (in *GoofyClusterStatus) DeepCopyInto(out *GoofyClusterStatus)

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

type GoofyMachine

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

	Spec   GoofyMachineSpec   `json:"spec,omitempty"`
	Status GoofyMachineStatus `json:"status,omitempty"`
}

GoofyMachine is the Schema for the goofymachines API.

func (*GoofyMachine) DeepCopy

func (in *GoofyMachine) DeepCopy() *GoofyMachine

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

func (*GoofyMachine) DeepCopyInto

func (in *GoofyMachine) DeepCopyInto(out *GoofyMachine)

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

func (*GoofyMachine) DeepCopyObject

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

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

func (*GoofyMachine) Default

func (c *GoofyMachine) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*GoofyMachine) GetConditions

func (c *GoofyMachine) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*GoofyMachine) SetConditions

func (c *GoofyMachine) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

func (*GoofyMachine) SetupWebhookWithManager

func (c *GoofyMachine) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*GoofyMachine) ValidateCreate

func (c *GoofyMachine) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*GoofyMachine) ValidateDelete

func (c *GoofyMachine) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*GoofyMachine) ValidateUpdate

func (c *GoofyMachine) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type GoofyMachineList

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

GoofyMachineList contains a list of GoofyMachine.

func (*GoofyMachineList) DeepCopy

func (in *GoofyMachineList) DeepCopy() *GoofyMachineList

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

func (*GoofyMachineList) DeepCopyInto

func (in *GoofyMachineList) DeepCopyInto(out *GoofyMachineList)

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

func (*GoofyMachineList) DeepCopyObject

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

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

type GoofyMachineSpec

type GoofyMachineSpec struct {
	// ProviderID will be the container name in ProviderID format (goofy:////<name>)
	// +optional
	ProviderID *string `json:"providerID,omitempty"`
}

GoofyMachineSpec defines the desired state of GoofyMachine.

func (*GoofyMachineSpec) DeepCopy

func (in *GoofyMachineSpec) DeepCopy() *GoofyMachineSpec

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

func (*GoofyMachineSpec) DeepCopyInto

func (in *GoofyMachineSpec) DeepCopyInto(out *GoofyMachineSpec)

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

type GoofyMachineStatus

type GoofyMachineStatus struct {
	// Ready denotes that the machine is ready
	// +optional
	Ready bool `json:"ready"`

	// Conditions defines current service state of the GoofyMachine.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

GoofyMachineStatus defines the observed state of GoofyMachine.

func (*GoofyMachineStatus) DeepCopy

func (in *GoofyMachineStatus) DeepCopy() *GoofyMachineStatus

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

func (*GoofyMachineStatus) DeepCopyInto

func (in *GoofyMachineStatus) DeepCopyInto(out *GoofyMachineStatus)

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

type GoofyMachineTemplate

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

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

GoofyMachineTemplate is the Schema for the goofymachinetemplates API.

func (*GoofyMachineTemplate) DeepCopy

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

func (*GoofyMachineTemplate) DeepCopyInto

func (in *GoofyMachineTemplate) DeepCopyInto(out *GoofyMachineTemplate)

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

func (*GoofyMachineTemplate) DeepCopyObject

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

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

func (*GoofyMachineTemplate) Default

func (c *GoofyMachineTemplate) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*GoofyMachineTemplate) SetupWebhookWithManager

func (c *GoofyMachineTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*GoofyMachineTemplate) ValidateCreate

func (c *GoofyMachineTemplate) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*GoofyMachineTemplate) ValidateDelete

func (c *GoofyMachineTemplate) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*GoofyMachineTemplate) ValidateUpdate

func (c *GoofyMachineTemplate) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type GoofyMachineTemplateList

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

GoofyMachineTemplateList contains a list of GoofyMachineTemplate.

func (*GoofyMachineTemplateList) DeepCopy

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

func (*GoofyMachineTemplateList) DeepCopyInto

func (in *GoofyMachineTemplateList) DeepCopyInto(out *GoofyMachineTemplateList)

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

func (*GoofyMachineTemplateList) DeepCopyObject

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

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

type GoofyMachineTemplateResource

type GoofyMachineTemplateResource struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"`
	// Spec is the specification of the desired behavior of the machine.
	Spec GoofyMachineSpec `json:"spec"`
}

GoofyMachineTemplateResource describes the data needed to create a GoofyMachine from a template.

func (*GoofyMachineTemplateResource) DeepCopy

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

func (*GoofyMachineTemplateResource) DeepCopyInto

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

type GoofyMachineTemplateSpec

type GoofyMachineTemplateSpec struct {
	Template GoofyMachineTemplateResource `json:"template"`
}

GoofyMachineTemplateSpec defines the desired state of GoofyMachineTemplate.

func (*GoofyMachineTemplateSpec) DeepCopy

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

func (*GoofyMachineTemplateSpec) DeepCopyInto

func (in *GoofyMachineTemplateSpec) DeepCopyInto(out *GoofyMachineTemplateSpec)

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