v1alpha1

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the fleet v1alpha1 API group +kubebuilder:object:generate=true +groupName=fleet.roboscale.io

Index

Constants

This section is empty.

Variables

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

type AttachedRobot struct {
	Reference          corev1.ObjectReference   `json:"reference,omitempty"`
	Phase              robotv1alpha1.RobotPhase `json:"phase,omitempty"`
	FleetCompatibility FleetCompatibilityStatus `json:"fleetCompatibility,omitempty"`
}

func (*AttachedRobot) DeepCopy

func (in *AttachedRobot) DeepCopy() *AttachedRobot

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

func (*AttachedRobot) DeepCopyInto

func (in *AttachedRobot) DeepCopyInto(out *AttachedRobot)

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

type DiscoveryServerInstanceStatus

type DiscoveryServerInstanceStatus struct {
	Created bool                               `json:"created,omitempty"`
	Phase   robotv1alpha1.DiscoveryServerPhase `json:"phase,omitempty"`
}

func (*DiscoveryServerInstanceStatus) DeepCopy

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

func (*DiscoveryServerInstanceStatus) DeepCopyInto

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

type Fleet

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

	Spec   FleetSpec   `json:"spec,omitempty"`
	Status FleetStatus `json:"status,omitempty"`
}

Fleet is the Schema for the fleets API

func (*Fleet) DeepCopy

func (in *Fleet) DeepCopy() *Fleet

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

func (*Fleet) DeepCopyInto

func (in *Fleet) DeepCopyInto(out *Fleet)

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

func (*Fleet) DeepCopyObject

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

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

func (*Fleet) Default

func (r *Fleet) Default()

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

func (*Fleet) GetDiscoveryServerMetadata

func (fleet *Fleet) GetDiscoveryServerMetadata() *types.NamespacedName

func (*Fleet) GetNamespaceMetadata

func (fleet *Fleet) GetNamespaceMetadata() *types.NamespacedName

func (*Fleet) SetupWebhookWithManager

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

func (*Fleet) ValidateCreate

func (r *Fleet) ValidateCreate() error

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

func (*Fleet) ValidateDelete

func (r *Fleet) ValidateDelete() error

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

func (*Fleet) ValidateUpdate

func (r *Fleet) ValidateUpdate(old runtime.Object) error

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

type FleetCompatibilityStatus

type FleetCompatibilityStatus struct {
	IsCompatible bool   `json:"isCompatible"`
	Reason       string `json:"reason,omitempty"`
}

func (*FleetCompatibilityStatus) DeepCopy

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

func (*FleetCompatibilityStatus) DeepCopyInto

func (in *FleetCompatibilityStatus) DeepCopyInto(out *FleetCompatibilityStatus)

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

type FleetList

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

FleetList contains a list of Fleet

func (*FleetList) DeepCopy

func (in *FleetList) DeepCopy() *FleetList

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

func (*FleetList) DeepCopyInto

func (in *FleetList) DeepCopyInto(out *FleetList)

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

func (*FleetList) DeepCopyObject

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

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

type FleetPhase

type FleetPhase string
const (
	FleetPhaseCheckingRemoteNamespace FleetPhase = "CheckingRemoteNamespace"
	FleetPhaseCreatingNamespace       FleetPhase = "CreatingNamespace"
	FleetPhaseCreatingDiscoveryServer FleetPhase = "CreatingDiscoveryServer"
	FleetPhaseReady                   FleetPhase = "Ready"
)

type FleetSpec

type FleetSpec struct {
	DiscoveryServerTemplate robotv1alpha1.DiscoveryServerSpec `json:"discoveryServerTemplate,omitempty"`
	Hybrid                  bool                              `json:"hybrid,omitempty"`
	Instances               []string                          `json:"instances,omitempty"`
}

FleetSpec defines the desired state of Fleet

func (*FleetSpec) DeepCopy

func (in *FleetSpec) DeepCopy() *FleetSpec

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

func (*FleetSpec) DeepCopyInto

func (in *FleetSpec) DeepCopyInto(out *FleetSpec)

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

type FleetStatus

type FleetStatus struct {
	Phase                 FleetPhase                    `json:"phase,omitempty"`
	NamespaceStatus       NamespaceStatus               `json:"namespaceStatus,omitempty"`
	DiscoveryServerStatus DiscoveryServerInstanceStatus `json:"discoveryServerStatus,omitempty"`
	// Attached launch object information
	AttachedRobots []AttachedRobot `json:"attachedRobots,omitempty"`
}

FleetStatus defines the observed state of Fleet

func (*FleetStatus) DeepCopy

func (in *FleetStatus) DeepCopy() *FleetStatus

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

func (*FleetStatus) DeepCopyInto

func (in *FleetStatus) DeepCopyInto(out *FleetStatus)

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

type NamespaceStatus

type NamespaceStatus struct {
	Created   bool `json:"created,omitempty"`
	Federated bool `json:"federated,omitempty"`
	Ready     bool `json:"ready,omitempty"`
}

func (*NamespaceStatus) DeepCopy

func (in *NamespaceStatus) DeepCopy() *NamespaceStatus

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

func (*NamespaceStatus) DeepCopyInto

func (in *NamespaceStatus) DeepCopyInto(out *NamespaceStatus)

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