v1alpha1

package
v0.1.6 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: 16 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	GlobalFederationOperatorResourceName string = "federation"
	FederationOperatorNamespace          string = "kube-federation-system"
)
View Source
const (
	RobolaunchCloudInstanceLabelKey      = "robolaunch.io/cloud-instance"
	RobolaunchCloudInstanceAliasLabelKey = "robolaunch.io/cloud-instance-alias"
	RobolaunchPhysicalInstanceLabelKey   = "robolaunch.io/physical-instance"
)
View Source
const (
	EndpointClusterIDLabelKey = "submariner-io/clusterID"
)
View Source
const (
	GlobalSubmarinerResourceName = "submariner"
)
View Source
const (
	SubmarinerBrokerNamespace string = "submariner-k8s-broker"
)
View Source
const (
	SubmarinerOperatorNamespace string = "submariner-operator"
)

Variables

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

type BrokerCredentials struct {
	Token string `json:"token,omitempty"`
	CA    string `json:"ca,omitempty"`
}

func (*BrokerCredentials) DeepCopy

func (in *BrokerCredentials) DeepCopy() *BrokerCredentials

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

func (*BrokerCredentials) DeepCopyInto

func (in *BrokerCredentials) DeepCopyInto(out *BrokerCredentials)

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

type BrokerStatus

type BrokerStatus struct {
	Created bool                   `json:"created,omitempty"`
	Phase   SubmarinerBrokerPhase  `json:"phase,omitempty"`
	Status  SubmarinerBrokerStatus `json:"status,omitempty"`
}

func (*BrokerStatus) DeepCopy

func (in *BrokerStatus) DeepCopy() *BrokerStatus

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

func (*BrokerStatus) DeepCopyInto

func (in *BrokerStatus) DeepCopyInto(out *BrokerStatus)

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

type ChartResourceStatus

type ChartResourceStatus struct {
	Deployed bool `json:"deployed,omitempty"`
}

func (*ChartResourceStatus) DeepCopy

func (in *ChartResourceStatus) DeepCopy() *ChartResourceStatus

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

func (*ChartResourceStatus) DeepCopyInto

func (in *ChartResourceStatus) DeepCopyInto(out *ChartResourceStatus)

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

type ChartStatus

type ChartStatus struct {
	Deployed bool `json:"deployed,omitempty"`
}

func (*ChartStatus) DeepCopy

func (in *ChartStatus) DeepCopy() *ChartStatus

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

func (*ChartStatus) DeepCopyInto

func (in *ChartStatus) DeepCopyInto(out *ChartStatus)

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

type CloudInstance

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

	Spec   CloudInstanceSpec   `json:"spec,omitempty"`
	Status CloudInstanceStatus `json:"status,omitempty"`
}

CloudInstance is the Schema for the cloudinstances API

func (*CloudInstance) DeepCopy

func (in *CloudInstance) DeepCopy() *CloudInstance

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

func (*CloudInstance) DeepCopyInto

func (in *CloudInstance) DeepCopyInto(out *CloudInstance)

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

func (*CloudInstance) DeepCopyObject

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

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

func (*CloudInstance) Default

func (r *CloudInstance) Default()

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

func (*CloudInstance) GetSubmarinerClusterMetadata

func (cloudinstance *CloudInstance) GetSubmarinerClusterMetadata() types.NamespacedName

func (*CloudInstance) GetSubmarinerDeployerMetadata

func (cloudinstance *CloudInstance) GetSubmarinerDeployerMetadata() types.NamespacedName

func (*CloudInstance) SetupWebhookWithManager

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

func (*CloudInstance) ValidateCreate

func (r *CloudInstance) ValidateCreate() error

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

func (*CloudInstance) ValidateDelete

func (r *CloudInstance) ValidateDelete() error

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

func (*CloudInstance) ValidateUpdate

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

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

type CloudInstanceInstanceStatus

type CloudInstanceInstanceStatus struct {
	Created bool               `json:"created,omitempty"`
	Phase   CloudInstancePhase `json:"phase,omitempty"`
}

func (*CloudInstanceInstanceStatus) DeepCopy

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

func (*CloudInstanceInstanceStatus) DeepCopyInto

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

type CloudInstanceList

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

CloudInstanceList contains a list of CloudInstance

func (*CloudInstanceList) DeepCopy

func (in *CloudInstanceList) DeepCopy() *CloudInstanceList

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

func (*CloudInstanceList) DeepCopyInto

func (in *CloudInstanceList) DeepCopyInto(out *CloudInstanceList)

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

func (*CloudInstanceList) DeepCopyObject

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

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

type CloudInstancePhase

type CloudInstancePhase string
const (
	CloudInstancePhaseLookingForDeployer  CloudInstancePhase = "LookingForDeployer"
	CloudInstancePhaseOwningDeployer      CloudInstancePhase = "OwningDeployer"
	CloudInstancePhaseWaitingForDeployer  CloudInstancePhase = "WaitingForDeployer"
	CloudInstancePhaseWaitingForResources CloudInstancePhase = "WaitingForResources"
	CloudInstancePhaseConnecting          CloudInstancePhase = "Connecting"
	CloudInstancePhaseConnected           CloudInstancePhase = "Connected"
	CloudInstancePhaseNotConnected        CloudInstancePhase = "NotConnected"
)

type CloudInstanceSpec

type CloudInstanceSpec struct {
}

CloudInstanceSpec defines the desired state of CloudInstance

func (*CloudInstanceSpec) DeepCopy

func (in *CloudInstanceSpec) DeepCopy() *CloudInstanceSpec

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

func (*CloudInstanceSpec) DeepCopyInto

func (in *CloudInstanceSpec) DeepCopyInto(out *CloudInstanceSpec)

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

type CloudInstanceStatus

type CloudInstanceStatus struct {
	DeployerStatus      DeployerStatus             `json:"deployerStatus,omitempty"`
	ConnectionResources ConnectionResourceStatuses `json:"connectionResources,omitempty"`
	GatewayConnection   GatewayConnection          `json:"gatewayConnection,omitempty"`
	Phase               CloudInstancePhase         `json:"phase,omitempty"`
}

CloudInstanceStatus defines the observed state of CloudInstance

func (*CloudInstanceStatus) DeepCopy

func (in *CloudInstanceStatus) DeepCopy() *CloudInstanceStatus

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

func (*CloudInstanceStatus) DeepCopyInto

func (in *CloudInstanceStatus) DeepCopyInto(out *CloudInstanceStatus)

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

type ConnectionHub

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

	Spec   ConnectionHubSpec   `json:"spec,omitempty"`
	Status ConnectionHubStatus `json:"status,omitempty"`
}

ConnectionHub is the Schema for the connectionhubs API

func (*ConnectionHub) DeepCopy

func (in *ConnectionHub) DeepCopy() *ConnectionHub

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

func (*ConnectionHub) DeepCopyInto

func (in *ConnectionHub) DeepCopyInto(out *ConnectionHub)

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

func (*ConnectionHub) DeepCopyObject

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

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

func (*ConnectionHub) Default

func (r *ConnectionHub) Default()

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

func (*ConnectionHub) GetCloudInstanceMetadata

func (ch *ConnectionHub) GetCloudInstanceMetadata() *types.NamespacedName

func (*ConnectionHub) GetFederationHostMetadata

func (ch *ConnectionHub) GetFederationHostMetadata() *types.NamespacedName

func (*ConnectionHub) GetFederationMetadata

func (ch *ConnectionHub) GetFederationMetadata() *types.NamespacedName

func (*ConnectionHub) GetSubmarinerMetadata

func (ch *ConnectionHub) GetSubmarinerMetadata() *types.NamespacedName

func (*ConnectionHub) GetTenancySelectors

func (ch *ConnectionHub) GetTenancySelectors() *Tenancy

func (*ConnectionHub) SetupWebhookWithManager

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

func (*ConnectionHub) ValidateCreate

func (r *ConnectionHub) ValidateCreate() error

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

func (*ConnectionHub) ValidateDelete

func (r *ConnectionHub) ValidateDelete() error

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

func (*ConnectionHub) ValidateUpdate

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

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

type ConnectionHubList

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

ConnectionHubList contains a list of ConnectionHub

func (*ConnectionHubList) DeepCopy

func (in *ConnectionHubList) DeepCopy() *ConnectionHubList

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

func (*ConnectionHubList) DeepCopyInto

func (in *ConnectionHubList) DeepCopyInto(out *ConnectionHubList)

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

func (*ConnectionHubList) DeepCopyObject

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

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

type ConnectionHubPhase

type ConnectionHubPhase string
const (
	ConnectionHubPhaseSubmarinerSettingUp    ConnectionHubPhase = "SubmarinerSettingUp"
	ConnectionHubPhaseFederationSettingUp    ConnectionHubPhase = "FederationSettingUp"
	ConnectionHubPhaseCreatingFederationHost ConnectionHubPhase = "CreatingFederationHost"
	ConnectionHubPhaseCreatingCloudInstance  ConnectionHubPhase = "CreatingCloudInstance"
	ConnectionHubPhaseReadyForOperation      ConnectionHubPhase = "ReadyForOperation"

	ConnectionHubPhaseLabelsNotMatched ConnectionHubPhase = "LabelsNotMatched"
	ConnectionHubPhaseMalfunctioned    ConnectionHubPhase = "Malfunctioned"
)

type ConnectionHubSpec

type ConnectionHubSpec struct {
	// +kubebuilder:validation:Enum=CloudInstance;PhysicalInstance
	InstanceType `json:"instanceType,omitempty"`
	// +kubebuilder:validation:Required
	SubmarinerSpec SubmarinerSpec `json:"submarinerSpec"`
	// +kubebuilder:validation:Required
	FederationSpec FederationOperatorSpec `json:"federationSpec"`
}

ConnectionHubSpec defines the desired state of ConnectionHub

func (*ConnectionHubSpec) DeepCopy

func (in *ConnectionHubSpec) DeepCopy() *ConnectionHubSpec

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

func (*ConnectionHubSpec) DeepCopyInto

func (in *ConnectionHubSpec) DeepCopyInto(out *ConnectionHubSpec)

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

type ConnectionHubStatus

type ConnectionHubStatus struct {
	NodeInfo   K8sNodeInfo              `json:"nodeInfo,omitempty"`
	Phase      ConnectionHubPhase       `json:"phase,omitempty"`
	Submariner SubmarinerInstanceStatus `json:"submariner,omitempty"`
	Federation FederationInstanceStatus `json:"federation,omitempty"`

	FederationHost FederationHostInstanceStatus `json:"federationHost,omitempty"`
	CloudInstance  CloudInstanceInstanceStatus  `json:"cloudInstance,omitempty"`

	ConnectionInterfaces ConnectionInterfaces `json:"connectionInterfaces,omitempty"`
}

ConnectionHubStatus defines the observed state of ConnectionHub

func (*ConnectionHubStatus) DeepCopy

func (in *ConnectionHubStatus) DeepCopy() *ConnectionHubStatus

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

func (*ConnectionHubStatus) DeepCopyInto

func (in *ConnectionHubStatus) DeepCopyInto(out *ConnectionHubStatus)

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

type ConnectionInterfaces

type ConnectionInterfaces struct {
	ForPhysicalInstance ConnectionHubSpec               `json:"forPhysicalInstance,omitempty"`
	ForCloudInstance    map[string]FederationMemberSpec `json:"forCloudInstance,omitempty"`
}

func (*ConnectionInterfaces) DeepCopy

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

func (*ConnectionInterfaces) DeepCopyInto

func (in *ConnectionInterfaces) DeepCopyInto(out *ConnectionInterfaces)

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

type ConnectionResourceStatus

type ConnectionResourceStatus struct {
	Name   string `json:"name,omitempty"`
	Exists bool   `json:"exists,omitempty"`
}

func (*ConnectionResourceStatus) DeepCopy

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

func (*ConnectionResourceStatus) DeepCopyInto

func (in *ConnectionResourceStatus) DeepCopyInto(out *ConnectionResourceStatus)

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

type ConnectionResourceStatuses

type ConnectionResourceStatuses struct {
	ClusterStatus  ConnectionResourceStatus `json:"clusterStatus,omitempty"`
	EndpointStatus ConnectionResourceStatus `json:"endpointStatus,omitempty"`
}

func (*ConnectionResourceStatuses) DeepCopy

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

func (*ConnectionResourceStatuses) DeepCopyInto

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

type CustomResourceStatus

type CustomResourceStatus struct {
	Created             bool                `json:"created,omitempty"`
	OwnedResourceStatus OwnedResourceStatus `json:"ownedResourceStatus,omitempty"`
}

func (*CustomResourceStatus) DeepCopy

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

func (*CustomResourceStatus) DeepCopyInto

func (in *CustomResourceStatus) DeepCopyInto(out *CustomResourceStatus)

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

type DeployerStatus

type DeployerStatus struct {
	Name   string          `json:"name,omitempty"`
	Exists bool            `json:"exists,omitempty"`
	Phase  SubmarinerPhase `json:"phase,omitempty"`
}

func (*DeployerStatus) DeepCopy

func (in *DeployerStatus) DeepCopy() *DeployerStatus

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

func (*DeployerStatus) DeepCopyInto

func (in *DeployerStatus) DeepCopyInto(out *DeployerStatus)

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

type FederationHost

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

	Status FederationHostStatus `json:"status,omitempty"`
}

FederationHost is the Schema for the federationhosts API

func (*FederationHost) DeepCopy

func (in *FederationHost) DeepCopy() *FederationHost

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

func (*FederationHost) DeepCopyInto

func (in *FederationHost) DeepCopyInto(out *FederationHost)

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

func (*FederationHost) DeepCopyObject

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

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

type FederationHostInstanceStatus

type FederationHostInstanceStatus struct {
	Created bool                `json:"created,omitempty"`
	Phase   FederationHostPhase `json:"phase,omitempty"`
}

func (*FederationHostInstanceStatus) DeepCopy

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

func (*FederationHostInstanceStatus) DeepCopyInto

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

type FederationHostList

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

FederationHostList contains a list of FederationHost

func (*FederationHostList) DeepCopy

func (in *FederationHostList) DeepCopy() *FederationHostList

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

func (*FederationHostList) DeepCopyInto

func (in *FederationHostList) DeepCopyInto(out *FederationHostList)

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

func (*FederationHostList) DeepCopyObject

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

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

type FederationHostPhase

type FederationHostPhase string
const (
	FederationHostPhaseJoiningSelf     FederationHostPhase = "JoiningSelf"
	FederationHostPhaseReady           FederationHostPhase = "Ready"
	FederationHostPhaseDeletingMembers FederationHostPhase = "DeletingMembers"
)

type FederationHostStatus

type FederationHostStatus struct {
	SelfJoined bool                              `json:"selfJoined,omitempty"`
	Members    map[string]FederationMemberStatus `json:"memberStatuses,omitempty"`
	Phase      FederationHostPhase               `json:"phase,omitempty"`
}

FederationHostStatus defines the observed state of FederationHost

func (*FederationHostStatus) DeepCopy

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

func (*FederationHostStatus) DeepCopyInto

func (in *FederationHostStatus) DeepCopyInto(out *FederationHostStatus)

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

type FederationInstanceStatus

type FederationInstanceStatus struct {
	Created bool                    `json:"created,omitempty"`
	Phase   FederationOperatorPhase `json:"phase,omitempty"`
}

func (*FederationInstanceStatus) DeepCopy

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

func (*FederationInstanceStatus) DeepCopyInto

func (in *FederationInstanceStatus) DeepCopyInto(out *FederationInstanceStatus)

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

type FederationMember

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

	Spec   FederationMemberSpec   `json:"spec,omitempty"`
	Status FederationMemberStatus `json:"status,omitempty"`
}

FederationMember is the Schema for the federationmembers API

func (*FederationMember) DeepCopy

func (in *FederationMember) DeepCopy() *FederationMember

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

func (*FederationMember) DeepCopyInto

func (in *FederationMember) DeepCopyInto(out *FederationMember)

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

func (*FederationMember) DeepCopyObject

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

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

func (*FederationMember) GetHostClientset

func (member *FederationMember) GetHostClientset(config *rest.Config) (*kubernetes.Clientset, error)

func (*FederationMember) GetMemberClientset

func (member *FederationMember) GetMemberClientset() (*kubernetes.Clientset, error)

func (*FederationMember) GetMemberConfig

func (member *FederationMember) GetMemberConfig() (*rest.Config, error)

func (*FederationMember) GetOwnerMetadata

func (federationmember *FederationMember) GetOwnerMetadata() *types.NamespacedName

func (*FederationMember) GetResourcesForCheck

func (fm *FederationMember) GetResourcesForCheck() []MulticlusterResourceItem

type FederationMemberInstanceStatus added in v0.1.1

type FederationMemberInstanceStatus struct {
	Created bool                   `json:"created,omitempty"`
	Status  FederationMemberStatus `json:"status,omitempty"`
}

func (*FederationMemberInstanceStatus) DeepCopy added in v0.1.1

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

func (*FederationMemberInstanceStatus) DeepCopyInto added in v0.1.1

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

type FederationMemberList

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

FederationMemberList contains a list of FederationMember

func (*FederationMemberList) DeepCopy

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

func (*FederationMemberList) DeepCopyInto

func (in *FederationMemberList) DeepCopyInto(out *FederationMemberList)

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

func (*FederationMemberList) DeepCopyObject

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

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

type FederationMemberPhase

type FederationMemberPhase string
const (
	FederationMemberPhaseSearchingForHost      FederationMemberPhase = "SearchingForHost"
	FederationMemberPhaseWaitingForCredentials FederationMemberPhase = "WaitingForCredentials"
	FederationMemberPhaseJoiningFederation     FederationMemberPhase = "JoiningFederation"
	FederationMemberPhaseOffline               FederationMemberPhase = "Offline"
	FederationMemberPhaseReady                 FederationMemberPhase = "Ready"
	FederationMemberPhaseMalfunctioned         FederationMemberPhase = "Malfunctioned"

	FederationMemberPhaseCannotJoinFederation FederationMemberPhase = "CannotJoinFederation"
	FederationMemberPhaseUnjoiningFederation  FederationMemberPhase = "UnjoiningFederation"
)

type FederationMemberSpec

type FederationMemberSpec struct {
	// +kubebuilder:validation:Required
	Server string `json:"server"`
	// +kubebuilder:validation:Required
	Credentials PhysicalInstanceCredentials `json:"credentials"`

	IsHost bool `json:"isHost,omitempty"`
}

FederationMemberSpec defines the desired state of FederationMember

func (*FederationMemberSpec) DeepCopy

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

func (*FederationMemberSpec) DeepCopyInto

func (in *FederationMemberSpec) DeepCopyInto(out *FederationMemberSpec)

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

type FederationMemberStatus

type FederationMemberStatus struct {
	Host                 HostInstanceStatus    `json:"host,omitempty"`
	JoinAttempted        bool                  `json:"joinAttempted,omitempty"`
	KubeFedClusterStatus KubeFedClusterStatus  `json:"kubefedClusterStatus,omitempty"`
	Phase                FederationMemberPhase `json:"phase,omitempty"`
}

FederationMemberStatus defines the observed state of FederationMember

func (*FederationMemberStatus) DeepCopy

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

func (*FederationMemberStatus) DeepCopyInto

func (in *FederationMemberStatus) DeepCopyInto(out *FederationMemberStatus)

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

type FederationOperator

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

	Spec   FederationOperatorSpec   `json:"spec,omitempty"`
	Status FederationOperatorStatus `json:"status,omitempty"`
}

FederationOperator is the Schema for the federationoperators API

func (*FederationOperator) DeepCopy

func (in *FederationOperator) DeepCopy() *FederationOperator

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

func (*FederationOperator) DeepCopyInto

func (in *FederationOperator) DeepCopyInto(out *FederationOperator)

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

func (*FederationOperator) DeepCopyObject

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

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

func (*FederationOperator) Default

func (r *FederationOperator) Default()

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

func (*FederationOperator) GetNamespaceMetadata

func (fo *FederationOperator) GetNamespaceMetadata() *types.NamespacedName

func (*FederationOperator) GetResourcesForCheck

func (fo *FederationOperator) GetResourcesForCheck() []ResourceItem

func (*FederationOperator) SetupWebhookWithManager

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

func (*FederationOperator) ValidateCreate

func (r *FederationOperator) ValidateCreate() error

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

func (*FederationOperator) ValidateDelete

func (r *FederationOperator) ValidateDelete() error

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

func (*FederationOperator) ValidateUpdate

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

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

type FederationOperatorList

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

FederationOperatorList contains a list of FederationOperator

func (*FederationOperatorList) DeepCopy

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

func (*FederationOperatorList) DeepCopyInto

func (in *FederationOperatorList) DeepCopyInto(out *FederationOperatorList)

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

func (*FederationOperatorList) DeepCopyObject

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

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

type FederationOperatorPhase

type FederationOperatorPhase string
const (
	FederationOperatorPhaseCreatingNamespace        FederationOperatorPhase = "CreatingNamespace"
	FederationOperatorPhaseDeployingChart           FederationOperatorPhase = "DeployingChart"
	FederationOperatorPhaseCheckingResources        FederationOperatorPhase = "CheckingResources"
	FederationOperatorPhaseDisablingFederationTypes FederationOperatorPhase = "DisablingFederationTypes"
	FederationOperatorPhaseFederatingObjects        FederationOperatorPhase = "FederatingObjects"
	FederationOperatorPhaseDeployed                 FederationOperatorPhase = "Deployed"
	FederationOperatorPhaseMalfunctioned            FederationOperatorPhase = "Malfunctioned"

	FederationOperatorPhaseDeletingFederatedTypeCRDs    FederationOperatorPhase = "DeletingFederatedTypeCRDs"
	FederationOperatorPhaseDeletingFederatedTypeConfigs FederationOperatorPhase = "DeletingFederatedTypeConfigs"
	FederationOperatorPhaseUninstallingChart            FederationOperatorPhase = "UninstallingChart"
	FederationOperatorPhaseDeletingFederatedCoreCRDs    FederationOperatorPhase = "DeletingFederatedCoreCRDs"
	FederationOperatorPhaseTerminatingNamespace         FederationOperatorPhase = "TerminatingNamespace"
)

type FederationOperatorSpec

type FederationOperatorSpec struct {
	// +kubebuilder:validation:Required
	HelmRepository HelmRepository `json:"helmRepository"`
	// +kubebuilder:validation:Required
	HelmChart      HelmChart `json:"helmChart"`
	FederatedTypes []string  `json:"federatedTypes,omitempty"`
}

FederationOperatorSpec defines the desired state of FederationOperator

func (*FederationOperatorSpec) DeepCopy

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

func (*FederationOperatorSpec) DeepCopyInto

func (in *FederationOperatorSpec) DeepCopyInto(out *FederationOperatorSpec)

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

type FederationOperatorStatus

type FederationOperatorStatus struct {
	NamespaceStatus        NamespaceStatus         `json:"namespaceStatus,omitempty"`
	ChartStatus            ChartStatus             `json:"chartStatus,omitempty"`
	ChartResourceStatus    ChartResourceStatus     `json:"chartResourceStatus,omitempty"`
	FederationTypeStatuses map[string]bool         `json:"federationTypeStatuses,omitempty"`
	FederationTypesEnabled bool                    `json:"federationTypesEnabled,omitempty"`
	TypesInitiallyDisabled bool                    `json:"typesInitiallyDisabled,omitempty"`
	Phase                  FederationOperatorPhase `json:"phase,omitempty"`
}

FederationOperatorStatus defines the observed state of FederationOperator

func (*FederationOperatorStatus) DeepCopy

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

func (*FederationOperatorStatus) DeepCopyInto

func (in *FederationOperatorStatus) DeepCopyInto(out *FederationOperatorStatus)

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

type GatewayConnection

type GatewayConnection struct {
	GatewayResource  string                    `json:"gatewayResource,omitempty"`
	ClusterID        string                    `json:"clusterID,omitempty"`
	Hostname         string                    `json:"hostname,omitempty"`
	ConnectionStatus brokerv1.ConnectionStatus `json:"connectionStatus,omitempty"`
}

func (*GatewayConnection) DeepCopy

func (in *GatewayConnection) DeepCopy() *GatewayConnection

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

func (*GatewayConnection) DeepCopyInto

func (in *GatewayConnection) DeepCopyInto(out *GatewayConnection)

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

type HelmChart added in v0.1.1

type HelmChart struct {
	// +kubebuilder:validation:Required
	ReleaseName string `json:"releaseName"`
	// +kubebuilder:validation:Required
	ChartName string `json:"chartName"`
	// +kubebuilder:validation:Required
	Version string `json:"version"`
}

func (*HelmChart) DeepCopy added in v0.1.1

func (in *HelmChart) DeepCopy() *HelmChart

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

func (*HelmChart) DeepCopyInto added in v0.1.1

func (in *HelmChart) DeepCopyInto(out *HelmChart)

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

type HelmRepository

type HelmRepository struct {
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// +kubebuilder:validation:Required
	URL string `json:"url"`
}

func (*HelmRepository) DeepCopy

func (in *HelmRepository) DeepCopy() *HelmRepository

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

func (*HelmRepository) DeepCopyInto

func (in *HelmRepository) DeepCopyInto(out *HelmRepository)

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

type HostInstanceStatus added in v0.1.1

type HostInstanceStatus struct {
	Exists bool   `json:"exists,omitempty"`
	Name   string `json:"name,omitempty"`
}

func (*HostInstanceStatus) DeepCopy added in v0.1.1

func (in *HostInstanceStatus) DeepCopy() *HostInstanceStatus

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

func (*HostInstanceStatus) DeepCopyInto added in v0.1.1

func (in *HostInstanceStatus) DeepCopyInto(out *HostInstanceStatus)

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

type InstanceType

type InstanceType string
const (
	InstanceTypeCloud    InstanceType = "CloudInstance"
	InstanceTypePhysical InstanceType = "PhysicalInstance"
)

type K8sNodeInfo

type K8sNodeInfo struct {
	Name      string            `json:"name,omitempty"`
	Selectors map[string]string `json:"selectors,omitempty"`
}

func (*K8sNodeInfo) DeepCopy

func (in *K8sNodeInfo) DeepCopy() *K8sNodeInfo

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

func (*K8sNodeInfo) DeepCopyInto

func (in *K8sNodeInfo) DeepCopyInto(out *K8sNodeInfo)

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

type KubeFedClusterStatus

type KubeFedClusterStatus struct {
	Created       bool                        `json:"created,omitempty"`
	ConditionType common.ClusterConditionType `json:"conditionType,omitempty"`
	Reason        string                      `json:"reason,omitempty"`
}

func (*KubeFedClusterStatus) DeepCopy

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

func (*KubeFedClusterStatus) DeepCopyInto

func (in *KubeFedClusterStatus) DeepCopyInto(out *KubeFedClusterStatus)

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

type MulticlusterResourceItem

type MulticlusterResourceItem struct {
	TargetCluster
	client.ObjectKey
	GroupVersionKind metav1.GroupVersionKind
}

func (*MulticlusterResourceItem) DeepCopy

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

func (*MulticlusterResourceItem) DeepCopyInto

func (in *MulticlusterResourceItem) DeepCopyInto(out *MulticlusterResourceItem)

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"`
}

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.

type OperatorStatus

type OperatorStatus struct {
	Created bool                    `json:"created,omitempty"`
	Phase   SubmarinerOperatorPhase `json:"phase,omitempty"`
}

func (*OperatorStatus) DeepCopy

func (in *OperatorStatus) DeepCopy() *OperatorStatus

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

func (*OperatorStatus) DeepCopyInto

func (in *OperatorStatus) DeepCopyInto(out *OperatorStatus)

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

type OwnedResourceStatus

type OwnedResourceStatus struct {
	Deployed bool `json:"deployed,omitempty"`
}

func (*OwnedResourceStatus) DeepCopy

func (in *OwnedResourceStatus) DeepCopy() *OwnedResourceStatus

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

func (*OwnedResourceStatus) DeepCopyInto

func (in *OwnedResourceStatus) DeepCopyInto(out *OwnedResourceStatus)

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

type PhysicalInstance

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

	Spec   PhysicalInstanceSpec   `json:"spec,omitempty"`
	Status PhysicalInstanceStatus `json:"status,omitempty"`
}

PhysicalInstance is the Schema for the physicalinstances API

func (*PhysicalInstance) DeepCopy

func (in *PhysicalInstance) DeepCopy() *PhysicalInstance

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

func (*PhysicalInstance) DeepCopyInto

func (in *PhysicalInstance) DeepCopyInto(out *PhysicalInstance)

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

func (*PhysicalInstance) DeepCopyObject

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

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

func (*PhysicalInstance) GetSubmarinerClusterMetadata

func (physicalinstance *PhysicalInstance) GetSubmarinerClusterMetadata() types.NamespacedName

func (*PhysicalInstance) GetSubmarinerDeployerMetadata

func (physicalinstance *PhysicalInstance) GetSubmarinerDeployerMetadata() types.NamespacedName

type PhysicalInstanceCredentials added in v0.1.1

type PhysicalInstanceCredentials struct {
	// +kubebuilder:validation:Required
	CertificateAuthority string `json:"certificateAuthority"`
	// +kubebuilder:validation:Required
	ClientCertificate string `json:"clientCertificate"`
	// +kubebuilder:validation:Required
	ClientKey string `json:"clientKey"`
}

func (*PhysicalInstanceCredentials) DeepCopy added in v0.1.1

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

func (*PhysicalInstanceCredentials) DeepCopyInto added in v0.1.1

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

type PhysicalInstanceFederationConnectionPhase added in v0.1.3

type PhysicalInstanceFederationConnectionPhase string
const (
	PhysicalInstanceFederationConnectionPhaseWaitingForMulticast   PhysicalInstanceFederationConnectionPhase = "WaitingForMulticast"
	PhysicalInstanceFederationConnectionPhaseWaitingForCredentials PhysicalInstanceFederationConnectionPhase = "WaitingForCredentials"
	PhysicalInstanceFederationConnectionPhaseConnecting            PhysicalInstanceFederationConnectionPhase = "Connecting"
	PhysicalInstanceFederationConnectionPhaseConnected             PhysicalInstanceFederationConnectionPhase = "Connected"
	PhysicalInstanceFederationConnectionPhaseFailed                PhysicalInstanceFederationConnectionPhase = "Failed"
)

type PhysicalInstanceList

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

PhysicalInstanceList contains a list of PhysicalInstance

func (*PhysicalInstanceList) DeepCopy

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

func (*PhysicalInstanceList) DeepCopyInto

func (in *PhysicalInstanceList) DeepCopyInto(out *PhysicalInstanceList)

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

func (*PhysicalInstanceList) DeepCopyObject

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

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

type PhysicalInstanceMulticastConnectionPhase added in v0.1.3

type PhysicalInstanceMulticastConnectionPhase string
const (
	PhysicalInstanceMulticastConnectionPhaseWaitingForConnection PhysicalInstanceMulticastConnectionPhase = "WaitingForConnection"
	PhysicalInstanceMulticastConnectionPhaseConnecting           PhysicalInstanceMulticastConnectionPhase = "Connecting"
	PhysicalInstanceMulticastConnectionPhaseConnected            PhysicalInstanceMulticastConnectionPhase = "Connected"
	PhysicalInstanceMulticastConnectionPhaseFailed               PhysicalInstanceMulticastConnectionPhase = "Failed"
)

type PhysicalInstancePhase

type PhysicalInstancePhase string
const (
	PhysicalInstancePhaseLookingForDeployer PhysicalInstancePhase = "LookingForDeployer"
	PhysicalInstancePhaseWaitingForDeployer PhysicalInstancePhase = "WaitingForDeployer"
	PhysicalInstancePhaseRegistered         PhysicalInstancePhase = "Registered"
	PhysicalInstancePhaseConnected          PhysicalInstancePhase = "Connected"
	PhysicalInstancePhaseNotReady           PhysicalInstancePhase = "NotReady"
)

type PhysicalInstanceSpec

type PhysicalInstanceSpec struct {
	// +kubebuilder:validation:Required
	Server string `json:"server"`
	// +kubebuilder:validation:Required
	Credentials PhysicalInstanceCredentials `json:"credentials"`
}

PhysicalInstanceSpec defines the desired state of PhysicalInstance

func (*PhysicalInstanceSpec) DeepCopy

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

func (*PhysicalInstanceSpec) DeepCopyInto

func (in *PhysicalInstanceSpec) DeepCopyInto(out *PhysicalInstanceSpec)

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

type PhysicalInstanceStatus

type PhysicalInstanceStatus struct {
	Submariner                SubmarinerResourceStates                  `json:"submariner,omitempty"`
	FederationMember          FederationMemberInstanceStatus            `json:"federation,omitempty"`
	Phase                     PhysicalInstancePhase                     `json:"phase,omitempty"`
	MulticastConnectionPhase  PhysicalInstanceMulticastConnectionPhase  `json:"multicastPhase,omitempty"`
	FederationConnectionPhase PhysicalInstanceFederationConnectionPhase `json:"federationPhase,omitempty"`
	Subnets                   SubnetsInformation                        `json:"subnets,omitempty"`
}

PhysicalInstanceStatus defines the observed state of PhysicalInstance

func (*PhysicalInstanceStatus) DeepCopy

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

func (*PhysicalInstanceStatus) DeepCopyInto

func (in *PhysicalInstanceStatus) DeepCopyInto(out *PhysicalInstanceStatus)

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

type ResourceItem

type ResourceItem struct {
	client.ObjectKey
	GroupVersionKind metav1.GroupVersionKind
}

func (*ResourceItem) DeepCopy

func (in *ResourceItem) DeepCopy() *ResourceItem

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

func (*ResourceItem) DeepCopyInto

func (in *ResourceItem) DeepCopyInto(out *ResourceItem)

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

type Submariner

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

	Spec   SubmarinerSpec   `json:"spec,omitempty"`
	Status SubmarinerStatus `json:"status,omitempty"`
}

Submariner is the Schema for the submariners API

func (*Submariner) DeepCopy

func (in *Submariner) DeepCopy() *Submariner

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

func (*Submariner) DeepCopyInto

func (in *Submariner) DeepCopyInto(out *Submariner)

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

func (*Submariner) DeepCopyObject

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

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

func (*Submariner) Default

func (r *Submariner) Default()

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

func (*Submariner) GetResourcesForCheck

func (submariner *Submariner) GetResourcesForCheck() []ResourceItem

func (*Submariner) GetSubmarinerBrokerMetadata

func (submariner *Submariner) GetSubmarinerBrokerMetadata() *types.NamespacedName

func (*Submariner) GetSubmarinerCustomResourceMetadata

func (submariner *Submariner) GetSubmarinerCustomResourceMetadata() *types.NamespacedName

func (*Submariner) GetSubmarinerOperatorMetadata

func (submariner *Submariner) GetSubmarinerOperatorMetadata() *types.NamespacedName

func (*Submariner) GetTenancySelectors

func (submariner *Submariner) GetTenancySelectors() *Tenancy

func (*Submariner) SetupWebhookWithManager

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

func (*Submariner) ValidateCreate

func (r *Submariner) ValidateCreate() error

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

func (*Submariner) ValidateDelete

func (r *Submariner) ValidateDelete() error

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

func (*Submariner) ValidateUpdate

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

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

type SubmarinerBroker

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

	Spec   SubmarinerBrokerSpec   `json:"spec,omitempty"`
	Status SubmarinerBrokerStatus `json:"status,omitempty"`
}

SubmarinerBroker is the Schema for the submarinerbrokers API

func (*SubmarinerBroker) DeepCopy

func (in *SubmarinerBroker) DeepCopy() *SubmarinerBroker

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

func (*SubmarinerBroker) DeepCopyInto

func (in *SubmarinerBroker) DeepCopyInto(out *SubmarinerBroker)

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

func (*SubmarinerBroker) DeepCopyObject

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

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

func (*SubmarinerBroker) Default

func (r *SubmarinerBroker) Default()

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

func (*SubmarinerBroker) GetNamespaceMetadata

func (smb *SubmarinerBroker) GetNamespaceMetadata() *types.NamespacedName

func (*SubmarinerBroker) GetTenancySelectors

func (smb *SubmarinerBroker) GetTenancySelectors() *Tenancy

func (*SubmarinerBroker) SetupWebhookWithManager

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

func (*SubmarinerBroker) ValidateCreate

func (r *SubmarinerBroker) ValidateCreate() error

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

func (*SubmarinerBroker) ValidateDelete

func (r *SubmarinerBroker) ValidateDelete() error

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

func (*SubmarinerBroker) ValidateUpdate

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

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

type SubmarinerBrokerList

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

SubmarinerBrokerList contains a list of SubmarinerBroker

func (*SubmarinerBrokerList) DeepCopy

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

func (*SubmarinerBrokerList) DeepCopyInto

func (in *SubmarinerBrokerList) DeepCopyInto(out *SubmarinerBrokerList)

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

func (*SubmarinerBrokerList) DeepCopyObject

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

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

type SubmarinerBrokerPhase

type SubmarinerBrokerPhase string
const (
	SubmarinerBrokerPhaseCreatingNamespace SubmarinerBrokerPhase = "CreatingNamespace"
	SubmarinerBrokerPhaseDeployingChart    SubmarinerBrokerPhase = "DeployingChart"
	SubmarinerBrokerPhaseCheckingResources SubmarinerBrokerPhase = "CheckingResources"
	SubmarinerBrokerPhaseDeployed          SubmarinerBrokerPhase = "Deployed"
	SubmarinerBrokerPhaseMalfunctioned     SubmarinerBrokerPhase = "Malfunctioned"

	SubmarinerBrokerPhaseUninstallingChart    SubmarinerBrokerPhase = "UninstallingChart"
	SubmarinerBrokerPhaseTerminatingNamespace SubmarinerBrokerPhase = "TerminatingNamespace"
)

type SubmarinerBrokerSpec

type SubmarinerBrokerSpec struct {
	// +kubebuilder:validation:Required
	HelmRepository HelmRepository `json:"helmRepository"`
	HelmChart      HelmChart      `json:"helmChart"`
	// +kubebuilder:validation:Required
	APIServerURL string `json:"apiServerURL"`
}

SubmarinerBrokerSpec defines the desired state of SubmarinerBroker

func (*SubmarinerBrokerSpec) DeepCopy

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

func (*SubmarinerBrokerSpec) DeepCopyInto

func (in *SubmarinerBrokerSpec) DeepCopyInto(out *SubmarinerBrokerSpec)

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

type SubmarinerBrokerStatus

type SubmarinerBrokerStatus struct {
	NamespaceStatus     NamespaceStatus       `json:"namespaceStatus,omitempty"`
	ChartStatus         ChartStatus           `json:"chartStatus,omitempty"`
	ChartResourceStatus ChartResourceStatus   `json:"chartResourceStatus,omitempty"`
	Phase               SubmarinerBrokerPhase `json:"phase,omitempty"`
	NodeInfo            K8sNodeInfo           `json:"nodeInfo,omitempty"`
	BrokerCredentials   BrokerCredentials     `json:"brokerCredentials,omitempty"`
}

SubmarinerBrokerStatus defines the observed state of SubmarinerBroker

func (*SubmarinerBrokerStatus) DeepCopy

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

func (*SubmarinerBrokerStatus) DeepCopyInto

func (in *SubmarinerBrokerStatus) DeepCopyInto(out *SubmarinerBrokerStatus)

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

type SubmarinerInstanceStatus

type SubmarinerInstanceStatus struct {
	Created bool            `json:"created,omitempty"`
	Phase   SubmarinerPhase `json:"phase,omitempty"`
}

func (*SubmarinerInstanceStatus) DeepCopy

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

func (*SubmarinerInstanceStatus) DeepCopyInto

func (in *SubmarinerInstanceStatus) DeepCopyInto(out *SubmarinerInstanceStatus)

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

type SubmarinerList

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

SubmarinerList contains a list of Submariner

func (*SubmarinerList) DeepCopy

func (in *SubmarinerList) DeepCopy() *SubmarinerList

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

func (*SubmarinerList) DeepCopyInto

func (in *SubmarinerList) DeepCopyInto(out *SubmarinerList)

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

func (*SubmarinerList) DeepCopyObject

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

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

type SubmarinerOperator

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

	Spec   SubmarinerOperatorSpec   `json:"spec,omitempty"`
	Status SubmarinerOperatorStatus `json:"status,omitempty"`
}

SubmarinerOperator is the Schema for the submarineroperators API

func (*SubmarinerOperator) DeepCopy

func (in *SubmarinerOperator) DeepCopy() *SubmarinerOperator

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

func (*SubmarinerOperator) DeepCopyInto

func (in *SubmarinerOperator) DeepCopyInto(out *SubmarinerOperator)

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

func (*SubmarinerOperator) DeepCopyObject

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

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

func (*SubmarinerOperator) Default

func (r *SubmarinerOperator) Default()

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

func (*SubmarinerOperator) GetNamespaceMetadata

func (so *SubmarinerOperator) GetNamespaceMetadata() *types.NamespacedName

func (*SubmarinerOperator) GetResourcesForCheck

func (so *SubmarinerOperator) GetResourcesForCheck() []ResourceItem

func (*SubmarinerOperator) GetTenancySelectors

func (so *SubmarinerOperator) GetTenancySelectors() *Tenancy

func (*SubmarinerOperator) SetupWebhookWithManager

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

func (*SubmarinerOperator) ValidateCreate

func (r *SubmarinerOperator) ValidateCreate() error

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

func (*SubmarinerOperator) ValidateDelete

func (r *SubmarinerOperator) ValidateDelete() error

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

func (*SubmarinerOperator) ValidateUpdate

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

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

type SubmarinerOperatorList

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

SubmarinerOperatorList contains a list of SubmarinerOperator

func (*SubmarinerOperatorList) DeepCopy

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

func (*SubmarinerOperatorList) DeepCopyInto

func (in *SubmarinerOperatorList) DeepCopyInto(out *SubmarinerOperatorList)

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

func (*SubmarinerOperatorList) DeepCopyObject

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

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

type SubmarinerOperatorPhase

type SubmarinerOperatorPhase string
const (
	SubmarinerOperatorPhaseCreatingNamespace SubmarinerOperatorPhase = "CreatingNamespace"
	SubmarinerOperatorPhaseDeployingChart    SubmarinerOperatorPhase = "DeployingChart"
	SubmarinerOperatorPhaseCheckingResources SubmarinerOperatorPhase = "CheckingResources"
	SubmarinerOperatorPhaseDeployed          SubmarinerOperatorPhase = "Deployed"
	SubmarinerOperatorPhaseMalfunctioned     SubmarinerOperatorPhase = "Malfunctioned"

	SubmarinerOperatorPhaseUninstallingChart    SubmarinerOperatorPhase = "UninstallingChart"
	SubmarinerOperatorPhaseTerminatingNamespace SubmarinerOperatorPhase = "TerminatingNamespace"
)

type SubmarinerOperatorSpec

type SubmarinerOperatorSpec struct {
	// +kubebuilder:validation:Required
	ClusterCIDR string `json:"clusterCIDR"`
	// +kubebuilder:validation:Required
	ServiceCIDR string `json:"serviceCIDR"`
	// +kubebuilder:validation:Required
	PresharedKey string `json:"presharedKey"`
	// +kubebuilder:validation:Required
	BrokerCredentials BrokerCredentials `json:"broker"`
	// +kubebuilder:validation:Required
	ClusterID string `json:"clusterID"`
	// +kubebuilder:validation:Required
	APIServerURL string `json:"apiServerURL"`
	// +kubebuilder:validation:Required
	HelmRepository HelmRepository `json:"helmRepository"`
	// +kubebuilder:validation:Required
	HelmChart HelmChart `json:"helmChart"`
}

SubmarinerOperatorSpec defines the desired state of SubmarinerOperator

func (*SubmarinerOperatorSpec) DeepCopy

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

func (*SubmarinerOperatorSpec) DeepCopyInto

func (in *SubmarinerOperatorSpec) DeepCopyInto(out *SubmarinerOperatorSpec)

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

type SubmarinerOperatorStatus

type SubmarinerOperatorStatus struct {
	NamespaceStatus     NamespaceStatus         `json:"namespaceStatus,omitempty"`
	ChartStatus         ChartStatus             `json:"chartStatus,omitempty"`
	ChartResourceStatus ChartResourceStatus     `json:"chartResourceStatus,omitempty"`
	Phase               SubmarinerOperatorPhase `json:"phase,omitempty"`
	NodeInfo            K8sNodeInfo             `json:"nodeInfo,omitempty"`
}

SubmarinerOperatorStatus defines the observed state of SubmarinerOperator

func (*SubmarinerOperatorStatus) DeepCopy

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

func (*SubmarinerOperatorStatus) DeepCopyInto

func (in *SubmarinerOperatorStatus) DeepCopyInto(out *SubmarinerOperatorStatus)

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

type SubmarinerPhase

type SubmarinerPhase string
const (
	SubmarinerPhaseCreatingBroker         SubmarinerPhase = "CreatingBroker"
	SubmarinerPhaseCreatingOperator       SubmarinerPhase = "CreatingOperator"
	SubmarinerPhaseCreatingCustomResource SubmarinerPhase = "CreatingCustomResource"
	SubmarinerPhaseCheckingResources      SubmarinerPhase = "CheckingResources"
	SubmarinerPhaseReadyToConnect         SubmarinerPhase = "ReadyToConnect"
	SubmarinerPhaseMalfunctioned          SubmarinerPhase = "Malfunctioned"

	SubmarinerPhaseTerminatingSubmarinerCR       SubmarinerPhase = "TerminatingSubmarinerCR"
	SubmarinerPhaseTerminatingSubmarinerOperator SubmarinerPhase = "TerminatingSubmarinerOperator"
	SubmarinerPhaseTerminatingSubmarinerBroker   SubmarinerPhase = "TerminatingSubmarinerBroker"
)

type SubmarinerResourceStates added in v0.1.1

type SubmarinerResourceStates struct {
	DeployerStatus      DeployerStatus             `json:"deployerStatus,omitempty"`
	ConnectionResources ConnectionResourceStatuses `json:"connectionResources,omitempty"`
	GatewayConnection   GatewayConnection          `json:"gatewayConnection,omitempty"`
}

func (*SubmarinerResourceStates) DeepCopy added in v0.1.1

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

func (*SubmarinerResourceStates) DeepCopyInto added in v0.1.1

func (in *SubmarinerResourceStates) DeepCopyInto(out *SubmarinerResourceStates)

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

type SubmarinerSpec

type SubmarinerSpec struct {
	// +kubebuilder:validation:Enum=CloudInstance;PhysicalInstance
	InstanceType InstanceType `json:"instanceType,omitempty"`
	// +kubebuilder:validation:Required
	ClusterCIDR string `json:"clusterCIDR"`
	// +kubebuilder:default="10.32.0.0/16"
	ServiceCIDR string `json:"serviceCIDR,omitempty"`

	PresharedKey string `json:"presharedKey,omitempty"`

	BrokerCredentials BrokerCredentials `json:"broker,omitempty"`
	// +kubebuilder:validation:Required
	APIServerURL string `json:"apiServerURL"`
	// +kubebuilder:validation:Required
	HelmRepository HelmRepository `json:"helmRepository"`
	// +kubebuilder:validation:Required
	BrokerHelmChart HelmChart `json:"brokerHelmChart"`
	// +kubebuilder:validation:Required
	OperatorHelmChart HelmChart `json:"operatorHelmChart"`
}

SubmarinerSpec defines the desired state of Submariner

func (*SubmarinerSpec) DeepCopy

func (in *SubmarinerSpec) DeepCopy() *SubmarinerSpec

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

func (*SubmarinerSpec) DeepCopyInto

func (in *SubmarinerSpec) DeepCopyInto(out *SubmarinerSpec)

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

type SubmarinerStatus

type SubmarinerStatus struct {
	Phase    SubmarinerPhase `json:"phase,omitempty"`
	NodeInfo K8sNodeInfo     `json:"nodeInfo,omitempty"`

	BrokerStatus         BrokerStatus         `json:"brokerStatus,omitempty"`
	OperatorStatus       OperatorStatus       `json:"operatorStatus,omitempty"`
	CustomResourceStatus CustomResourceStatus `json:"customResourceStatus,omitempty"`
}

SubmarinerStatus defines the observed state of Submariner

func (*SubmarinerStatus) DeepCopy

func (in *SubmarinerStatus) DeepCopy() *SubmarinerStatus

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

func (*SubmarinerStatus) DeepCopyInto

func (in *SubmarinerStatus) DeepCopyInto(out *SubmarinerStatus)

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

type SubnetsInformation added in v0.1.3

type SubnetsInformation struct {
	List      []string `json:"list,omitempty"`
	ListInStr string   `json:"listInStr,omitempty"`
}

func (*SubnetsInformation) DeepCopy added in v0.1.3

func (in *SubnetsInformation) DeepCopy() *SubnetsInformation

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

func (*SubnetsInformation) DeepCopyInto added in v0.1.3

func (in *SubnetsInformation) DeepCopyInto(out *SubnetsInformation)

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

type TargetCluster

type TargetCluster string
const (
	TargetClusterHost   TargetCluster = "Host"
	TargetClusterMember TargetCluster = "Member"
)

type Tenancy

type Tenancy struct {
	RobolaunchCloudInstance      string `json:"cloudInstance,omitempty"`
	RobolaunchCloudInstanceAlias string `json:"cloudInstanceAlias,omitempty"`
	RobolaunchPhysicalInstance   string `json:"physicalInstance,omitempty"`
}

Not used in robot manifest, needed for internal use.

func (*Tenancy) DeepCopy

func (in *Tenancy) DeepCopy() *Tenancy

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

func (*Tenancy) DeepCopyInto

func (in *Tenancy) DeepCopyInto(out *Tenancy)

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