v1alpha1

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the control-plane v1alpha1 API group +kubebuilder:object:generate=true +groupName=control-plane.threeport.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "control-plane.threeport.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
)
View Source
var (
	// Resource is the name of the ThreeportWorkload resource
	ThreeportWorkloadResource = "threeportworkloads"

	// Kind is the name of the the ThreeportWorkload kind
	ThreeportWorkloadKind = "ThreeportWorkload"

	// GroupVersionResource is the group version resource used with dynamic
	// clients
	ThreeportWorkloadGVR = schema.GroupVersionResource{
		Group:    GroupVersion.Group,
		Version:  GroupVersion.Version,
		Resource: ThreeportWorkloadResource,
	}
)

Functions

func UnstructuredThreeportWorkload

func UnstructuredThreeportWorkload(threeportWorkload *ThreeportWorkload) (*unstructured.Unstructured, error)

Unstructured takes a typed ThreeportWorkload instance a returns an unstructured object for use with a dynamic client.

Types

type ThreeportWorkload

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

	Spec   ThreeportWorkloadSpec   `json:"spec,omitempty"`
	Status ThreeportWorkloadStatus `json:"status,omitempty"`
}

ThreeportWorkload is the Schema for the threeportworkloads API

func (*ThreeportWorkload) DeepCopy

func (in *ThreeportWorkload) DeepCopy() *ThreeportWorkload

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

func (*ThreeportWorkload) DeepCopyInto

func (in *ThreeportWorkload) DeepCopyInto(out *ThreeportWorkload)

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

func (*ThreeportWorkload) DeepCopyObject

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

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

type ThreeportWorkloadList

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

ThreeportWorkloadList contains a list of ThreeportWorkload

func (*ThreeportWorkloadList) DeepCopy

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

func (*ThreeportWorkloadList) DeepCopyInto

func (in *ThreeportWorkloadList) DeepCopyInto(out *ThreeportWorkloadList)

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

func (*ThreeportWorkloadList) DeepCopyObject

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

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

type ThreeportWorkloadSpec

type ThreeportWorkloadSpec struct {
	// +kubebuilder:validation:Enum=WorkloadInstance;HelmWorkloadInstance
	// WorkloadType informs the threeport agent which threeport API type was
	// used to represent a Kubernetes workload.
	WorkloadType string `json:"workloadType,omitempty"`

	// WorkloadInstance is the unique ID for a threeport object that represents
	// a deployed instance of a workload.
	WorkloadInstanceID uint `json:"workloadInstanceId,omitempty"`

	// WorkloadResources is a slice of WorkloadResource objects.
	WorkloadResourceInstances []WorkloadResourceInstance `json:"workloadResourceInstances,omitempty"`
}

ThreeportWorkloadSpec defines the desired state of ThreeportWorkload

func (*ThreeportWorkloadSpec) DeepCopy

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

func (*ThreeportWorkloadSpec) DeepCopyInto

func (in *ThreeportWorkloadSpec) DeepCopyInto(out *ThreeportWorkloadSpec)

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

type ThreeportWorkloadStatus

type ThreeportWorkloadStatus struct {
}

ThreeportWorkloadStatus defines the observed state of ThreeportWorkload

func (*ThreeportWorkloadStatus) DeepCopy

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

func (*ThreeportWorkloadStatus) DeepCopyInto

func (in *ThreeportWorkloadStatus) DeepCopyInto(out *ThreeportWorkloadStatus)

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

type WorkloadResourceInstance

type WorkloadResourceInstance struct {
	Name        string `json:"name,omitempty"`
	Namespace   string `json:"namespace,omitempty"`
	Group       string `json:"group,omitempty"`
	Version     string `json:"version,omitempty"`
	Kind        string `json:"kind,omitempty"`
	ThreeportID uint   `json:"threeportID,omitempty"`
}

WorkloadResource is a Kubernetes resource that should be watched and reported upon by the threeport agent.

func (*WorkloadResourceInstance) DeepCopy

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

func (*WorkloadResourceInstance) DeepCopyInto

func (in *WorkloadResourceInstance) DeepCopyInto(out *WorkloadResourceInstance)

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