Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the device v1alpha1 API group +kubebuilder:object:generate=true +groupName=device.openyurt.io
Index ¶
Constants ¶
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" )
const ( // name of finalizer EdgexFinalizer = "edgex.edgexfoundry.org" LabelEdgeXGenerate = "www.edgexfoundry.org/generate" )
Variables ¶
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 ¶
func (in *DeploymentTemplateSpec) DeepCopy() *DeploymentTemplateSpec
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeX.
func (*EdgeX) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeX) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeXList.
func (*EdgeXList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EdgeXList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EdgeXSpec.
func (*EdgeXSpec) DeepCopyInto ¶
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.