v1alpha1

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: Apache-2.0 Imports: 12 Imported by: 6

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kubedgeoperator v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=kubedgeoperators.kubedge.cloud

Package v1alpha1 contains API Schema definitions for the kubedgeoperator v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=kubedgeoperators.kubedge.cloud

Index

Constants

View Source
const (
	ConditionStatusTrue    KubedgeConditionStatus = "True"
	ConditionStatusFalse                          = "False"
	ConditionStatusUnknown                        = "Unknown"
)

These represent acceptable values for a KubedgeConditionStatus

View Source
const (
	ConditionIrreconcilable KubedgeConditionType = "Irreconcilable"
	ConditionPending                             = "Pending"
	ConditionInitialized                         = "Initializing"
	ConditionError                               = "Error"
	ConditionRunning                             = "Running"
	ConditionDeployed                            = "Deployed"
	ConditionFailed                              = "Failed"
)

These represent acceptable values for a KubedgeConditionType

View Source
const (
	// Successful Conditions Reasons
	ReasonInstallSuccessful        KubedgeConditionReason = "InstallSuccessful"
	ReasonReconcileSuccessful                             = "ReconcileSuccessful"
	ReasonUninstallSuccessful                             = "UninstallSuccessful"
	ReasonUpdateSuccessful                                = "UpdateSuccessful"
	ReasonUnderlyingResourcesReady                        = "UnderlyingResourcesReady"
	ReasonUnderlyingResourcesError                        = "UnderlyingResourcesError"

	// Error Condition Reasons
	ReasonInstallError   KubedgeConditionReason = "InstallError"
	ReasonReconcileError                        = "ReconcileError"
	ReasonUninstallError                        = "UninstallError"
	ReasonUpdateError                           = "UpdateError"
)

The following represent the more fine-grained reasons for a given condition

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "kubedgeoperators.kubedge.cloud", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

func NewArpscanListVersionKind

func NewArpscanListVersionKind(namespace string, name string) *unstructured.Unstructured

Returns a GKV for ArpscanList

func NewArpscanVersionKind

func NewArpscanVersionKind(namespace string, name string) *unstructured.Unstructured

Returns a GKV for Arpscan

func NewECDSClusterListVersionKind

func NewECDSClusterListVersionKind(namespace string, name string) *unstructured.Unstructured

Returns a GKV for ECDSClusterList

func NewECDSClusterVersionKind

func NewECDSClusterVersionKind(namespace string, name string) *unstructured.Unstructured

Returns a GKV for ECDSCluster

func NewEMBBSliceListVersionKind added in v0.1.12

func NewEMBBSliceListVersionKind(namespace string, name string) *unstructured.Unstructured

Returns a GKV for EMBBSliceList

func NewEMBBSliceVersionKind added in v0.1.12

func NewEMBBSliceVersionKind(namespace string, name string) *unstructured.Unstructured

Returns a GKV for EMBBSlice

func NewMMESimListVersionKind

func NewMMESimListVersionKind(namespace string, name string) *unstructured.Unstructured

Returns a GKV for MMESimList

func NewMMESimVersionKind

func NewMMESimVersionKind(namespace string, name string) *unstructured.Unstructured

Returns a GKV for MMESim

Types

type Arpscan

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

	Spec   ArpscanSpec   `json:"spec,omitempty"`
	Status ArpscanStatus `json:"status,omitempty"`
}

Arpscan is the Schema for the openstackdeployments API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=arpscans,shortName=arp +kubebuilder:printcolumn:name="Satisfied",type="boolean",JSONPath=".status.satisfied",description="Satisfied"

func ToArpscan

func ToArpscan(u *unstructured.Unstructured) *Arpscan

Convert an unstructured.Unstructured into a typed Arpscan

func (*Arpscan) DeepCopy

func (in *Arpscan) DeepCopy() *Arpscan

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

func (*Arpscan) DeepCopyInto

func (in *Arpscan) DeepCopyInto(out *Arpscan)

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

func (*Arpscan) DeepCopyObject

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

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

func (*Arpscan) FromArpscan

func (obj *Arpscan) FromArpscan() *unstructured.Unstructured

Convert a typed Arpscan into an unstructured.Unstructured

func (*Arpscan) GetDependentResources

func (obj *Arpscan) GetDependentResources() []unstructured.Unstructured

Return the list of dependent resources to watch

func (*Arpscan) GetName

func (obj *Arpscan) GetName() string

func (*Arpscan) Init

func (obj *Arpscan) Init()

Init is used to initialize an Arpscan. Namely, if the state has not been specified, it will be set

func (*Arpscan) IsDeleted

func (obj *Arpscan) IsDeleted() bool

IsDeleted returns true if the chart group has been deleted

func (*Arpscan) IsSatisfied

func (obj *Arpscan) IsSatisfied() bool

IsSatisfied returns true if the chart's actual state meets its target state

type ArpscanList

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

ArpscanList contains a list of Arpscan

func ToArpscanList

func ToArpscanList(u *unstructured.Unstructured) *ArpscanList

Convert an unstructured.Unstructured into a typed ArpscanList

func (*ArpscanList) DeepCopy

func (in *ArpscanList) DeepCopy() *ArpscanList

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

func (*ArpscanList) DeepCopyInto

func (in *ArpscanList) DeepCopyInto(out *ArpscanList)

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

func (*ArpscanList) DeepCopyObject

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

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

func (*ArpscanList) Equivalent

func (obj *ArpscanList) Equivalent(other *ArpscanList) bool

JEB: Not sure yet if we really will need it

func (*ArpscanList) FromArpscanList

func (obj *ArpscanList) FromArpscanList() *unstructured.Unstructured

Convert a typed ArpscanList into an unstructured.Unstructured

type ArpscanSpec

type ArpscanSpec struct {
	KubedgeSpec `json:",inline"`

	// Scanners describes the set of arp scanners deployed in the kubedge cluster
	Scanners *KubedgeSetSpec `json:"scanners,omitempty"`
}

ArpscanSpec defines the desired state of Arpscan

func (*ArpscanSpec) DeepCopy

func (in *ArpscanSpec) DeepCopy() *ArpscanSpec

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

func (*ArpscanSpec) DeepCopyInto

func (in *ArpscanSpec) DeepCopyInto(out *ArpscanSpec)

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

type ArpscanStatus

type ArpscanStatus struct {
	KubedgeStatus `json:",inline"`
}

ArpscanStatus defines the observed state of Arpscan

func (*ArpscanStatus) DeepCopy

func (in *ArpscanStatus) DeepCopy() *ArpscanStatus

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

func (*ArpscanStatus) DeepCopyInto

func (in *ArpscanStatus) DeepCopyInto(out *ArpscanStatus)

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

type ControllerRevision

type ControllerRevision struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Data is the serialized representation of the state.
	// +k8s:openapi-gen:schema-type-format=object
	Data runtime.RawExtension `json:"data,omitempty" protobuf:"bytes,2,opt,name=data"`

	// Revision indicates the revision of the state represented by Data.
	Revision int64 `json:"revision" protobuf:"varint,3,opt,name=revision"`
}

ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.

func (*ControllerRevision) DeepCopy

func (in *ControllerRevision) DeepCopy() *ControllerRevision

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

func (*ControllerRevision) DeepCopyInto

func (in *ControllerRevision) DeepCopyInto(out *ControllerRevision)

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

func (*ControllerRevision) DeepCopyObject

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

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

type ControllerRevisionList

type ControllerRevisionList struct {
	metav1.TypeMeta `json:",inline"`

	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Items is the list of ControllerRevisions
	Items []ControllerRevision `json:"items" protobuf:"bytes,2,rep,name=items"`
}

ControllerRevisionList is a resource containing a list of ControllerRevision objects.

func (*ControllerRevisionList) DeepCopy

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

func (*ControllerRevisionList) DeepCopyInto

func (in *ControllerRevisionList) DeepCopyInto(out *ControllerRevisionList)

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

func (*ControllerRevisionList) DeepCopyObject

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

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

type ECDSCluster

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

	Spec   ECDSClusterSpec   `json:"spec,omitempty"`
	Status ECDSClusterStatus `json:"status,omitempty"`
}

ECDSCluster is the Schema for the openstackdeployments API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=ecdsclusters,shortName=ecds +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.actualState",description="State" +kubebuilder:printcolumn:name="Target State",type="string",JSONPath=".spec.targetState",description="Target State" +kubebuilder:printcolumn:name="Satisfied",type="boolean",JSONPath=".status.satisfied",description="Satisfied"

func ToECDSCluster

func ToECDSCluster(u *unstructured.Unstructured) *ECDSCluster

Convert an unstructured.Unstructured into a typed ECDSCluster

func (*ECDSCluster) DeepCopy

func (in *ECDSCluster) DeepCopy() *ECDSCluster

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

func (*ECDSCluster) DeepCopyInto

func (in *ECDSCluster) DeepCopyInto(out *ECDSCluster)

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

func (*ECDSCluster) DeepCopyObject

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

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

func (*ECDSCluster) FromECDSCluster

func (obj *ECDSCluster) FromECDSCluster() *unstructured.Unstructured

Convert a typed ECDSCluster into an unstructured.Unstructured

func (*ECDSCluster) GetDependentResources

func (obj *ECDSCluster) GetDependentResources() []unstructured.Unstructured

Return the list of dependent resources to watch

func (*ECDSCluster) GetName

func (obj *ECDSCluster) GetName() string

func (*ECDSCluster) Init

func (obj *ECDSCluster) Init()

Init is used to initialize an ECDSCluster. Namely, if the state has not been specified, it will be set

func (*ECDSCluster) IsDeleted

func (obj *ECDSCluster) IsDeleted() bool

IsDeleted returns true if the simulator has been deleted

func (*ECDSCluster) IsFailedOrError added in v0.1.14

func (obj *ECDSCluster) IsFailedOrError() bool

IsFailedOrError returns true if the simulator's actual state is failed or error

func (*ECDSCluster) IsReady added in v0.1.14

func (obj *ECDSCluster) IsReady() bool

IsReady returns true if the simulator's actual state is deployed

func (*ECDSCluster) IsSatisfied

func (obj *ECDSCluster) IsSatisfied() bool

IsSatisfied returns true if the simulator's actual state meets its target state

func (*ECDSCluster) IsTargetStateUninitialized added in v0.1.14

func (obj *ECDSCluster) IsTargetStateUninitialized() bool

IsTargetStateUnitialized returns true if the simulator is not managed by the reconcilier

type ECDSClusterList

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

ECDSClusterList contains a list of ECDSCluster

func ToECDSClusterList

func ToECDSClusterList(u *unstructured.Unstructured) *ECDSClusterList

Convert an unstructured.Unstructured into a typed ECDSClusterList

func (*ECDSClusterList) DeepCopy

func (in *ECDSClusterList) DeepCopy() *ECDSClusterList

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

func (*ECDSClusterList) DeepCopyInto

func (in *ECDSClusterList) DeepCopyInto(out *ECDSClusterList)

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

func (*ECDSClusterList) DeepCopyObject

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

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

func (*ECDSClusterList) Equivalent

func (obj *ECDSClusterList) Equivalent(other *ECDSClusterList) bool

JEB: Not sure yet if we really will need it

func (*ECDSClusterList) FromECDSClusterList

func (obj *ECDSClusterList) FromECDSClusterList() *unstructured.Unstructured

Convert a typed ECDSClusterList into an unstructured.Unstructured

type ECDSClusterSpec

type ECDSClusterSpec struct {
	KubedgeSpec `json:",inline"`

	// Platforms describes the set of Platform execution context deployed in the cluster
	Platforms *KubedgeSetSpec `json:"platforms,omitempty"`

	// FrontEnds describes the set of FrontEnd execution context deployed in the cluster
	FrontEnds *KubedgeSetSpec `json:"frontEnds,omitempty"`

	// Enrichments describes the set of Enrichment execution context deployed in the cluster
	Enrichments *KubedgeSetSpec `json:"enrichments,omitempty"`

	// BusinessLogics describes the set of BusinessLogic execution context deployed in the cluster
	BusinessLogics *KubedgeSetSpec `json:"businessLogics,omitempty"`

	// LoadBalancers describes the set of LoadBalancer deployed in the cluster
	LoadBalancers *KubedgeSetSpec `json:"loadbalancers,omitempty"`
}

ECDSClusterSpec defines the desired state of ECDSCluster

func (*ECDSClusterSpec) DeepCopy

func (in *ECDSClusterSpec) DeepCopy() *ECDSClusterSpec

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

func (*ECDSClusterSpec) DeepCopyInto

func (in *ECDSClusterSpec) DeepCopyInto(out *ECDSClusterSpec)

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

type ECDSClusterStatus

type ECDSClusterStatus struct {
	KubedgeStatus `json:",inline"`
}

ECDSClusterStatus defines the observed state of ECDSCluster

func (*ECDSClusterStatus) DeepCopy

func (in *ECDSClusterStatus) DeepCopy() *ECDSClusterStatus

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

func (*ECDSClusterStatus) DeepCopyInto

func (in *ECDSClusterStatus) DeepCopyInto(out *ECDSClusterStatus)

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

type EMBBSlice added in v0.1.12

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

	Spec   EMBBSliceSpec   `json:"spec,omitempty"`
	Status EMBBSliceStatus `json:"status,omitempty"`
}

EMBBSlice is the Schema for the openstackdeployments API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=embbslices,shortName=embb +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.actualState",description="State" +kubebuilder:printcolumn:name="Target State",type="string",JSONPath=".spec.targetState",description="Target State" +kubebuilder:printcolumn:name="Satisfied",type="boolean",JSONPath=".status.satisfied",description="Satisfied"

func ToEMBBSlice added in v0.1.12

func ToEMBBSlice(u *unstructured.Unstructured) *EMBBSlice

Convert an unstructured.Unstructured into a typed EMBBSlice

func (*EMBBSlice) DeepCopy added in v0.1.12

func (in *EMBBSlice) DeepCopy() *EMBBSlice

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

func (*EMBBSlice) DeepCopyInto added in v0.1.12

func (in *EMBBSlice) DeepCopyInto(out *EMBBSlice)

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

func (*EMBBSlice) DeepCopyObject added in v0.1.12

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

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

func (*EMBBSlice) FromEMBBSlice added in v0.1.12

func (obj *EMBBSlice) FromEMBBSlice() *unstructured.Unstructured

Convert a typed EMBBSlice into an unstructured.Unstructured

func (*EMBBSlice) GetDependentResources added in v0.1.12

func (obj *EMBBSlice) GetDependentResources() []unstructured.Unstructured

Return the list of dependent resources to watch

func (*EMBBSlice) GetName added in v0.1.12

func (obj *EMBBSlice) GetName() string

func (*EMBBSlice) Init added in v0.1.12

func (obj *EMBBSlice) Init()

Init is used to initialize an EMBBSlice. Namely, if the state has not been specified, it will be set

func (*EMBBSlice) IsDeleted added in v0.1.12

func (obj *EMBBSlice) IsDeleted() bool

IsDeleted returns true if the simulator has been deleted

func (*EMBBSlice) IsFailedOrError added in v0.1.14

func (obj *EMBBSlice) IsFailedOrError() bool

IsFailedOrError returns true if the simulator's actual state is failed or error

func (*EMBBSlice) IsReady added in v0.1.14

func (obj *EMBBSlice) IsReady() bool

IsReady returns true if the simulator's actual state is deployed

func (*EMBBSlice) IsSatisfied added in v0.1.12

func (obj *EMBBSlice) IsSatisfied() bool

IsSatisfied returns true if the simulator's actual state meets its target state

func (*EMBBSlice) IsTargetStateUninitialized added in v0.1.14

func (obj *EMBBSlice) IsTargetStateUninitialized() bool

IsTargetStateUnitialized returns true if the simulator is not managed by the reconcilier

type EMBBSliceList added in v0.1.12

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

EMBBSliceList contains a list of EMBBSlice

func ToEMBBSliceList added in v0.1.12

func ToEMBBSliceList(u *unstructured.Unstructured) *EMBBSliceList

Convert an unstructured.Unstructured into a typed EMBBSliceList

func (*EMBBSliceList) DeepCopy added in v0.1.12

func (in *EMBBSliceList) DeepCopy() *EMBBSliceList

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

func (*EMBBSliceList) DeepCopyInto added in v0.1.12

func (in *EMBBSliceList) DeepCopyInto(out *EMBBSliceList)

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

func (*EMBBSliceList) DeepCopyObject added in v0.1.12

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

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

func (*EMBBSliceList) Equivalent added in v0.1.12

func (obj *EMBBSliceList) Equivalent(other *EMBBSliceList) bool

JEB: Not sure yet if we really will need it

func (*EMBBSliceList) FromEMBBSliceList added in v0.1.12

func (obj *EMBBSliceList) FromEMBBSliceList() *unstructured.Unstructured

Convert a typed EMBBSliceList into an unstructured.Unstructured

type EMBBSliceSpec added in v0.1.12

type EMBBSliceSpec struct {
	KubedgeSpec `json:",inline"`

	// UPFs describes the set of UPF deployed in the simulator
	UPFs *KubedgeSetSpec `json:"upfs,omitempty"`

	// SMFs describes the set of UPF deployed in the simulator
	SMFs *KubedgeSetSpec `json:"smfs,omitempty"`
}

EMBBSliceSpec defines the desired state of EMBBSlice

func (*EMBBSliceSpec) DeepCopy added in v0.1.12

func (in *EMBBSliceSpec) DeepCopy() *EMBBSliceSpec

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

func (*EMBBSliceSpec) DeepCopyInto added in v0.1.12

func (in *EMBBSliceSpec) DeepCopyInto(out *EMBBSliceSpec)

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

type EMBBSliceStatus added in v0.1.12

type EMBBSliceStatus struct {
	KubedgeStatus `json:",inline"`
}

EMBBSliceStatus defines the observed state of EMBBSlice

func (*EMBBSliceStatus) DeepCopy added in v0.1.12

func (in *EMBBSliceStatus) DeepCopy() *EMBBSliceStatus

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

func (*EMBBSliceStatus) DeepCopyInto added in v0.1.12

func (in *EMBBSliceStatus) DeepCopyInto(out *EMBBSliceStatus)

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

type KubedgeCondition

type KubedgeCondition struct {
	Type               KubedgeConditionType   `json:"type"`
	Status             KubedgeConditionStatus `json:"status"`
	Reason             KubedgeConditionReason `json:"reason,omitempty"`
	Message            string                 `json:"message,omitempty"`
	ResourceName       string                 `json:"resourceName,omitempty"`
	ResourceVersion    int32                  `json:"resourceVersion,omitempty"`
	LastTransitionTime metav1.Time            `json:"lastTransitionTime,omitempty"`
}

KubedgeCondition represents one current condition of an Kubedge resource A condition might not show up if it is not happening. For example, if a chart is not deploying, the Deploying condition would not show up. If a chart is deploying and encountered a problem that prevents the deployment, the Deploying condition's status will would be False and communicate the problem back.

func (*KubedgeCondition) DeepCopy

func (in *KubedgeCondition) DeepCopy() *KubedgeCondition

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

func (*KubedgeCondition) DeepCopyInto

func (in *KubedgeCondition) DeepCopyInto(out *KubedgeCondition)

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

type KubedgeConditionListHelper

type KubedgeConditionListHelper struct {
	Items []KubedgeCondition `json:"items"`
}

func (*KubedgeConditionListHelper) DeepCopy

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

func (*KubedgeConditionListHelper) DeepCopyInto

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

func (*KubedgeConditionListHelper) FindCondition

func (s *KubedgeConditionListHelper) FindCondition(conditionType KubedgeConditionType, conditionStatus KubedgeConditionStatus) *KubedgeCondition

Utility function to find an KubedgeCondition within the List

func (*KubedgeConditionListHelper) InitIfEmpty

func (s *KubedgeConditionListHelper) InitIfEmpty() []KubedgeCondition

Initialize the KubedgeCondition list

func (*KubedgeConditionListHelper) PrettyPrint

func (s *KubedgeConditionListHelper) PrettyPrint() string

Utility function to print an KubedgeCondition list

func (*KubedgeConditionListHelper) RemoveCondition

func (s *KubedgeConditionListHelper) RemoveCondition(conditionType KubedgeConditionType) []KubedgeCondition

RemoveCondition removes the condition with the passed condition type from the status object. If the condition is not already present, the returned status object is returned unchanged. RemoveCondition does not update the resource in the cluster.

func (*KubedgeConditionListHelper) SetCondition

func (s *KubedgeConditionListHelper) SetCondition(condition KubedgeCondition) []KubedgeCondition

SetCondition sets a condition on the status object. If the condition already exists, it will be replaced. SetCondition does not update the resource in the cluster.

type KubedgeConditionReason

type KubedgeConditionReason string

func (KubedgeConditionReason) String

func (x KubedgeConditionReason) String() string

String converts a KubedgeConditionReason to a printable string

type KubedgeConditionStatus

type KubedgeConditionStatus string

KubedgeConditionStatus represents the current status of a Condition

func (KubedgeConditionStatus) String

func (x KubedgeConditionStatus) String() string

String converts a KubedgeConditionState to a printable string

type KubedgeConditionType

type KubedgeConditionType string

func (KubedgeConditionType) String

func (x KubedgeConditionType) String() string

String converts a KubedgeConditionType to a printable string

type KubedgeResourceState

type KubedgeResourceState string

KubedgeResourceState is the status of a release/chart/chartgroup/manifest

const (
	// StateUninitialied indicates that a release/chart/chartgroup/manifest exists, but has not been acted upon
	StateUninitialized KubedgeResourceState = "uninitialized"
	// StateUnknown indicates that a release/chart/chartgroup/manifest is in an uncertain state.
	StateUnknown KubedgeResourceState = "unknown"
	// StateInitialized indicates that a release/chart/chartgroup/manifest is in an Kubernetes
	StateInitialized KubedgeResourceState = "initialized"
	// StateDeployed indicates that the release/chart/chartgroup/manifest has been pushed to Kubernetes.
	StateDeployed KubedgeResourceState = "deployed"
	// StateUninstalled indicates that a release/chart/chartgroup/manifest has been uninstalled from Kubermetes.
	StateUninstalled KubedgeResourceState = "uninstalled"
	// StateFailed indicates that the release/chart/chartgroup/manifest was not successfully deployed.
	StateFailed KubedgeResourceState = "failed"
	// StatePending indicates that resource was xxx
	StatePending KubedgeResourceState = "pending"
	// StateRunning indicates that resource was xxx
	StateRunning KubedgeResourceState = "running"
	// StateError indicates that resource was xxx
	StateError KubedgeResourceState = "error"
)

Describe the status of a release

func (KubedgeResourceState) String

func (x KubedgeResourceState) String() string

String converts a KubedgeResourceState to a printable string

type KubedgeSetSpec added in v0.1.4

type KubedgeSetSpec struct {
	// number of replicas
	Replicas *int32 `json:"replicas,omitempty"`
	// selector
	Selector *metav1.LabelSelector `json:"selector"`
	// pod template
	Template v1.PodTemplateSpec `json:"template"`
}

A KubedgeSetSpec is the specification of a KubedgeSet.

func (*KubedgeSetSpec) DeepCopy added in v0.1.4

func (in *KubedgeSetSpec) DeepCopy() *KubedgeSetSpec

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

func (*KubedgeSetSpec) DeepCopyInto added in v0.1.4

func (in *KubedgeSetSpec) DeepCopyInto(out *KubedgeSetSpec)

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

type KubedgeSource added in v0.1.4

type KubedgeSource struct {
	// “url“ or “path“ to the chart's parent directory
	Location string `json:"location"`
	// source to build the chart: “git“, “local“, or “tar“
	Type string `json:"type"`
}

KubedgeSource describe the location of the CR

func (*KubedgeSource) DeepCopy added in v0.1.4

func (in *KubedgeSource) DeepCopy() *KubedgeSource

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

func (*KubedgeSource) DeepCopyInto added in v0.1.4

func (in *KubedgeSource) DeepCopyInto(out *KubedgeSource)

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

type KubedgeSpec added in v0.1.4

type KubedgeSpec struct {
	// provide a path to a “git repo“, “local dir“, or “tarball url“ chart
	Source *KubedgeSource `json:"source"`
	// Target state of the Kubedge Custom Resources
	TargetState KubedgeResourceState `json:"targetState"`
}

KubedgeSpec defines the desired state of Phase

func (*KubedgeSpec) DeepCopy added in v0.1.4

func (in *KubedgeSpec) DeepCopy() *KubedgeSpec

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

func (*KubedgeSpec) DeepCopyInto added in v0.1.4

func (in *KubedgeSpec) DeepCopyInto(out *KubedgeSpec)

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

type KubedgeStatus

type KubedgeStatus struct {
	// Satisfied indicates if the release's ActualState satisfies its target state
	Satisfied bool `json:"satisfied"`
	// Reason indicates the reason for any related failures.
	Reason string `json:"reason,omitempty"`
	// Actual state of the Kubedge Custom Resources
	ActualState KubedgeResourceState `json:"actualState"`
	// List of conditions and states related to the resource. JEB: Feature kind of overlap with event recorder
	Conditions []KubedgeCondition `json:"conditions,omitempty"`
}

KubedgeStatus represents the common attributes shared amongst armada resources

func (*KubedgeStatus) ComputeActualState

func (s *KubedgeStatus) ComputeActualState(cond KubedgeCondition, target KubedgeResourceState)

func (*KubedgeStatus) DeepCopy

func (in *KubedgeStatus) DeepCopy() *KubedgeStatus

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

func (*KubedgeStatus) DeepCopyInto

func (in *KubedgeStatus) DeepCopyInto(out *KubedgeStatus)

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

func (*KubedgeStatus) RemoveCondition

func (s *KubedgeStatus) RemoveCondition(conditionType KubedgeConditionType)

RemoveCondition removes the condition with the passed condition type from the status object. If the condition is not already present, the returned status object is returned unchanged. RemoveCondition does not update the resource in the cluster.

func (*KubedgeStatus) SetCondition

func (s *KubedgeStatus) SetCondition(cond KubedgeCondition, tgt KubedgeResourceState)

SetCondition sets a condition on the status object. If the condition already exists, it will be replaced. SetCondition does not update the resource in the cluster.

type KubernetesDependency added in v0.1.14

type KubernetesDependency struct {
}

func (*KubernetesDependency) CustomResourceStatusChanged added in v0.1.14

func (obj *KubernetesDependency) CustomResourceStatusChanged(key string,
	u *unstructured.Unstructured,
	v *unstructured.Unstructured) (bool, string, string)

Compare the status between two CustomResource A status of "" is considered as a default value, hence transition to and from "" is not considered as a status change.

func (*KubernetesDependency) DeepCopy added in v0.1.14

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

func (*KubernetesDependency) DeepCopyInto added in v0.1.14

func (in *KubernetesDependency) DeepCopyInto(out *KubernetesDependency)

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

func (*KubernetesDependency) ECDSClusterStatusChanged added in v0.1.14

func (obj *KubernetesDependency) ECDSClusterStatusChanged(u *unstructured.Unstructured, v *unstructured.Unstructured) (bool, string, string)

func (*KubernetesDependency) EMBBSliceStatusChanged added in v0.1.14

func (obj *KubernetesDependency) EMBBSliceStatusChanged(u *unstructured.Unstructured, v *unstructured.Unstructured) (bool, string, string)

func (*KubernetesDependency) IsContainerReady added in v0.1.14

func (obj *KubernetesDependency) IsContainerReady(containerName string, u *unstructured.Unstructured) bool

Check the state of a container This code is inspired from the kubernetes-entrypoint project

func (*KubernetesDependency) IsCustomResourceReady added in v0.1.14

func (obj *KubernetesDependency) IsCustomResourceReady(key string, expectedValues []string,
	u *unstructured.Unstructured) bool

Check the state of a custom resource This code is inspired from the kubernetes-entrypoint project

func (*KubernetesDependency) IsECDSClusterFailedOrError added in v0.1.14

func (obj *KubernetesDependency) IsECDSClusterFailedOrError(u *unstructured.Unstructured) bool

Check the state of the ECDSCluster to figure out if it failed

func (*KubernetesDependency) IsECDSClusterReady added in v0.1.14

func (obj *KubernetesDependency) IsECDSClusterReady(u *unstructured.Unstructured) bool

Check the state of the ECDSCluster to figure out if it is still running

func (*KubernetesDependency) IsEMBBSliceFailedOrError added in v0.1.14

func (obj *KubernetesDependency) IsEMBBSliceFailedOrError(u *unstructured.Unstructured) bool

Check the state of the EMBBSlice to figure out if it is still running

func (*KubernetesDependency) IsEMBBSliceReady added in v0.1.14

func (obj *KubernetesDependency) IsEMBBSliceReady(u *unstructured.Unstructured) bool

Check the state of the EMBBSlice to figure out if it is still running

func (*KubernetesDependency) IsJobFailedOrError added in v0.1.14

func (obj *KubernetesDependency) IsJobFailedOrError(u *unstructured.Unstructured) bool

func (*KubernetesDependency) IsJobReady added in v0.1.14

func (obj *KubernetesDependency) IsJobReady(u *unstructured.Unstructured) bool

Check the state of a job This code is inspired from the kubernetes-entrypoint project

func (*KubernetesDependency) IsMMESimFailedOrError added in v0.1.14

func (obj *KubernetesDependency) IsMMESimFailedOrError(u *unstructured.Unstructured) bool

Check the state of the MMESim to figure out if it failed

func (*KubernetesDependency) IsMMESimReady added in v0.1.14

func (obj *KubernetesDependency) IsMMESimReady(u *unstructured.Unstructured) bool

Check the state of the MMESim to figure out if it is still running

func (*KubernetesDependency) IsPodFailedOrError added in v0.1.14

func (obj *KubernetesDependency) IsPodFailedOrError(u *unstructured.Unstructured) bool

func (*KubernetesDependency) IsPodReady added in v0.1.14

func (obj *KubernetesDependency) IsPodReady(u *unstructured.Unstructured) bool

Check the state of a pod This code is inspired from the kubernetes-entrypoint project

func (*KubernetesDependency) IsServiceFailedOrError added in v0.1.14

func (obj *KubernetesDependency) IsServiceFailedOrError(u *unstructured.Unstructured) bool

func (*KubernetesDependency) IsServiceReady added in v0.1.14

func (obj *KubernetesDependency) IsServiceReady(u *unstructured.Unstructured) bool

Check the state of a service This code is inspired from the kubernetes-entrypoint project

func (*KubernetesDependency) IsUnstructuredFailedOrError added in v0.1.14

func (obj *KubernetesDependency) IsUnstructuredFailedOrError(u *unstructured.Unstructured) bool

Is the status of the Unstructured ready

func (*KubernetesDependency) IsUnstructuredReady added in v0.1.14

func (obj *KubernetesDependency) IsUnstructuredReady(u *unstructured.Unstructured) bool

Is the status of the Unstructured ready

func (*KubernetesDependency) IsWorkflowFailedOrError added in v0.1.14

func (obj *KubernetesDependency) IsWorkflowFailedOrError(u *unstructured.Unstructured) bool

func (*KubernetesDependency) IsWorkflowReady added in v0.1.14

func (obj *KubernetesDependency) IsWorkflowReady(u *unstructured.Unstructured) bool

Check the state of the Main workflow to figure out if the phase is still running This code is inspired from the kubernetes-entrypoint project

func (*KubernetesDependency) JobStatusChanged added in v0.1.14

Compare the status field between two Job

func (*KubernetesDependency) MMESimStatusChanged added in v0.1.14

func (*KubernetesDependency) PodStatusChanged added in v0.1.14

PodStatus changed

func (*KubernetesDependency) UnstructuredStatusChanged added in v0.1.14

func (obj *KubernetesDependency) UnstructuredStatusChanged(u *unstructured.Unstructured, v *unstructured.Unstructured) (bool, string, string)

Did the status changed

func (*KubernetesDependency) WorkflowStatusChanged added in v0.1.14

Compare the phase between to Workflow

type MMESim

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

	Spec   MMESimSpec   `json:"spec,omitempty"`
	Status MMESimStatus `json:"status,omitempty"`
}

MMESim is the Schema for the openstackdeployments API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=mmesims,shortName=mme +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.actualState",description="State" +kubebuilder:printcolumn:name="Target State",type="string",JSONPath=".spec.targetState",description="Target State" +kubebuilder:printcolumn:name="Satisfied",type="boolean",JSONPath=".status.satisfied",description="Satisfied"

func ToMMESim

func ToMMESim(u *unstructured.Unstructured) *MMESim

Convert an unstructured.Unstructured into a typed MMESim

func (*MMESim) DeepCopy

func (in *MMESim) DeepCopy() *MMESim

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

func (*MMESim) DeepCopyInto

func (in *MMESim) DeepCopyInto(out *MMESim)

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

func (*MMESim) DeepCopyObject

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

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

func (*MMESim) FromMMESim

func (obj *MMESim) FromMMESim() *unstructured.Unstructured

Convert a typed MMESim into an unstructured.Unstructured

func (*MMESim) GetDependentResources

func (obj *MMESim) GetDependentResources() []unstructured.Unstructured

Return the list of dependent resources to watch

func (*MMESim) GetName

func (obj *MMESim) GetName() string

func (*MMESim) Init

func (obj *MMESim) Init()

Init is used to initialize an MMESim. Namely, if the state has not been specified, it will be set

func (*MMESim) IsDeleted

func (obj *MMESim) IsDeleted() bool

IsDeleted returns true if the simulator has been deleted

func (*MMESim) IsFailedOrError added in v0.1.14

func (obj *MMESim) IsFailedOrError() bool

IsFailedOrError returns true if the simulator's actual state is failed or error

func (*MMESim) IsReady added in v0.1.14

func (obj *MMESim) IsReady() bool

IsReady returns true if the simulator's actual state is deployed

func (*MMESim) IsSatisfied

func (obj *MMESim) IsSatisfied() bool

IsSatisfied returns true if the simulator's actual state meets its target state

func (*MMESim) IsTargetStateUninitialized added in v0.1.14

func (obj *MMESim) IsTargetStateUninitialized() bool

IsTargetStateUnitialized returns true if the simulator is not managed by the reconcilier

type MMESimList

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

MMESimList contains a list of MMESim

func ToMMESimList

func ToMMESimList(u *unstructured.Unstructured) *MMESimList

Convert an unstructured.Unstructured into a typed MMESimList

func (*MMESimList) DeepCopy

func (in *MMESimList) DeepCopy() *MMESimList

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

func (*MMESimList) DeepCopyInto

func (in *MMESimList) DeepCopyInto(out *MMESimList)

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

func (*MMESimList) DeepCopyObject

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

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

func (*MMESimList) Equivalent

func (obj *MMESimList) Equivalent(other *MMESimList) bool

JEB: Not sure yet if we really will need it

func (*MMESimList) FromMMESimList

func (obj *MMESimList) FromMMESimList() *unstructured.Unstructured

Convert a typed MMESimList into an unstructured.Unstructured

type MMESimSpec

type MMESimSpec struct {
	KubedgeSpec `json:",inline"`

	// LCs describes the set of LC deployed in the simulator
	LCs *KubedgeSetSpec `json:"lcs,omitempty"`

	// GPBs describes the set of GPB deployed in the simulator
	GPBs *KubedgeSetSpec `json:"gpbs,omitempty"`

	// NCBs describes the set of NCB deployed in the simulator
	NCBs *KubedgeSetSpec `json:"ncbs,omitempty"`

	// FSBs describes the set of FSB deployed in the simulator
	FSBs *KubedgeSetSpec `json:"fsbs,omitempty"`
}

MMESimSpec defines the desired state of MMESim

func (*MMESimSpec) DeepCopy

func (in *MMESimSpec) DeepCopy() *MMESimSpec

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

func (*MMESimSpec) DeepCopyInto

func (in *MMESimSpec) DeepCopyInto(out *MMESimSpec)

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

type MMESimStatus

type MMESimStatus struct {
	KubedgeStatus `json:",inline"`
}

MMESimStatus defines the observed state of MMESim

func (*MMESimStatus) DeepCopy

func (in *MMESimStatus) DeepCopy() *MMESimStatus

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

func (*MMESimStatus) DeepCopyInto

func (in *MMESimStatus) DeepCopyInto(out *MMESimStatus)

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

type OslcPhase

type OslcPhase string

Phase of the Openstack Service Life Cyle

const (
	PhaseTest     OslcPhase = "test"
	PhaseUpgrade  OslcPhase = "upgrade"
	PhaseRollback OslcPhase = "roolback"
)

Describe the Phase of the Openstack Service Life Cycle

func (OslcPhase) String

func (x OslcPhase) String() string

String converts a OslcPhase to a printable string

type SubResourceList

type SubResourceList struct {
	Name      string
	Namespace string
	Notes     string
	Version   int32

	// Items is the list of Resources deployed in the K8s cluster
	Items [](unstructured.Unstructured)
}

SubResourceList represent the list of

func NewSubResourceList

func NewSubResourceList(namespace string, name string) *SubResourceList

Returns a new SubResourceList

func (*SubResourceList) CheckOwnerReference added in v0.1.14

func (obj *SubResourceList) CheckOwnerReference(refs []metav1.OwnerReference) bool

Let's check the reference are setup properly.

func (*SubResourceList) DeepCopy

func (in *SubResourceList) DeepCopy() *SubResourceList

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

func (*SubResourceList) DeepCopyInto

func (in *SubResourceList) DeepCopyInto(out *SubResourceList)

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

func (*SubResourceList) Equivalent added in v0.1.14

func (obj *SubResourceList) Equivalent(other *SubResourceList) bool

JEB: Not sure yet if we really will need it

func (*SubResourceList) GetDependentResources

func (obj *SubResourceList) GetDependentResources() []unstructured.Unstructured

Returns the DependentResource for this SubResourceList

func (*SubResourceList) GetName

func (obj *SubResourceList) GetName() string

Returns the Name for the SubResourceList

func (*SubResourceList) GetNamespace

func (obj *SubResourceList) GetNamespace() string

Returns the Namespace for this SubResourceList

func (*SubResourceList) GetNotes

func (obj *SubResourceList) GetNotes() string

Returns the Notes for this SubResourceList

func (*SubResourceList) GetVersion

func (obj *SubResourceList) GetVersion() int32

Returns the Version for this SubResourceList

func (*SubResourceList) IsFailedOrError added in v0.1.14

func (obj *SubResourceList) IsFailedOrError() bool

func (*SubResourceList) IsReady added in v0.1.14

func (obj *SubResourceList) IsReady() bool

Check the state of a service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL