v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

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

Index

Constants

View Source
const (
	// ConfigmapAvailableCondition documents the status of the EdgeX configmap.
	ConfigmapAvailableCondition clusterv1.ConditionType = "ConfigmapAvailable"

	ConfigmapProvisioningReason = "ConfigmapProvisioning"

	ConfigmapProvisioningFailedReason = "ConfigmapProvisioningFailed"
	// ServiceAvailableCondition documents the status of the EdgeX service.
	ServiceAvailableCondition clusterv1.ConditionType = "ServiceAvailable"

	ServiceProvisioningReason = "ServiceProvisioning"

	ServiceProvisioningFailedReason = "ServiceProvisioningFailed"
	// DeploymentAvailableCondition documents the status of the EdgeX deployment.
	DeploymentAvailableCondition clusterv1.ConditionType = "DeploymentAvailable"

	DeploymentProvisioningReason = "DeploymentProvisioning"

	DeploymentProvisioningFailedReason = "DeploymentProvisioningFailed"
)
View Source
const (
	// name of finalizer
	EdgexFinalizer = "edgex.edgexfoundry.org"

	LabelEdgeXGenerate = "www.edgexfoundry.org/generate"
)

Variables

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

type DeploymentTemplateSpec struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              appsv1.DeploymentSpec `json:"spec"`
}

DeploymentTemplateSpec defines the pool template of Deployment.

func (*DeploymentTemplateSpec) DeepCopy

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

func (*DeploymentTemplateSpec) DeepCopyInto

func (in *DeploymentTemplateSpec) DeepCopyInto(out *DeploymentTemplateSpec)

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

type EdgeX

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

	Spec   EdgeXSpec   `json:"spec,omitempty"`
	Status EdgeXStatus `json:"status,omitempty"`
}

EdgeX is the Schema for the edgexes API

func (*EdgeX) DeepCopy

func (in *EdgeX) DeepCopy() *EdgeX

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

func (*EdgeX) DeepCopyInto

func (in *EdgeX) DeepCopyInto(out *EdgeX)

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

func (*EdgeX) DeepCopyObject

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

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

func (*EdgeX) GetConditions

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

func (*EdgeX) SetConditions

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

type EdgeXList

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

EdgeXList contains a list of EdgeX

func (*EdgeXList) DeepCopy

func (in *EdgeXList) DeepCopy() *EdgeXList

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

func (*EdgeXList) DeepCopyInto

func (in *EdgeXList) DeepCopyInto(out *EdgeXList)

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

func (*EdgeXList) DeepCopyObject

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

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

type EdgeXSpec

type EdgeXSpec struct {
	Version string `json:"version,omitempty"`

	ImageRegistry string `json:"imageregistry,omitempty"`

	PoolName string `json:"poolname,omitempty"`

	ServiceType corev1.ServiceType `json:"servicetype,omitempty"`
	// +optional
	AdditionalService []ServiceTemplateSpec `json:"additinalservices,omitempty"`

	// +optional
	AdditionalDeployment []DeploymentTemplateSpec `json:"additinaldeployments,omitempty"`
}

EdgeXSpec defines the desired state of EdgeX

func (*EdgeXSpec) DeepCopy

func (in *EdgeXSpec) DeepCopy() *EdgeXSpec

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

func (*EdgeXSpec) DeepCopyInto

func (in *EdgeXSpec) DeepCopyInto(out *EdgeXSpec)

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

type EdgeXStatus

type EdgeXStatus struct {
	// +optional
	Ready bool `json:"ready,omitempty"`
	// +optional
	Initialized bool `json:"initialized,omitempty"`
	// +optional
	ServiceReplicas int32 `json:"servicereplicas,omitempty"`
	// +optional
	ServiceReadyReplicas int32 `json:"servicereadyreplicas,omitempty"`
	// +optional
	DeploymentReplicas int32 `json:"deploymentreplicas,omitempty"`
	// +optional
	DeploymentReadyReplicas int32 `json:"deploymentreadyreplicas,omitempty"`

	// Current Edgex state
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

EdgeXStatus defines the observed state of EdgeX

func (*EdgeXStatus) DeepCopy

func (in *EdgeXStatus) DeepCopy() *EdgeXStatus

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

func (*EdgeXStatus) DeepCopyInto

func (in *EdgeXStatus) DeepCopyInto(out *EdgeXStatus)

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

type ServiceTemplateSpec

type ServiceTemplateSpec struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              corev1.ServiceSpec `json:"spec"`
}

DeploymentTemplateSpec defines the pool template of Deployment.

func (*ServiceTemplateSpec) DeepCopy

func (in *ServiceTemplateSpec) DeepCopy() *ServiceTemplateSpec

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

func (*ServiceTemplateSpec) DeepCopyInto

func (in *ServiceTemplateSpec) DeepCopyInto(out *ServiceTemplateSpec)

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