Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the standard v1alpha1 API group +kubebuilder:object:generate=true +groupName=standard.oam.dev
Index ¶
- Variables
- type PodSpecWorkload
- func (in *PodSpecWorkload) DeepCopy() *PodSpecWorkload
- func (in *PodSpecWorkload) DeepCopyInto(out *PodSpecWorkload)
- func (in *PodSpecWorkload) DeepCopyObject() runtime.Object
- func (in *PodSpecWorkload) GetCondition(c cpv1alpha1.ConditionType) cpv1alpha1.Condition
- func (in *PodSpecWorkload) SetConditions(c ...cpv1alpha1.Condition)
- type PodSpecWorkloadList
- type PodSpecWorkloadSpec
- type PodSpecWorkloadStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "standard.oam.dev", 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 PodSpecWorkload ¶
type PodSpecWorkload struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PodSpecWorkloadSpec `json:"spec,omitempty"` Status PodSpecWorkloadStatus `json:"status,omitempty"` }
PodSpecWorkload is the Schema for the PodSpec API +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/api/autoscaling/v1.Scale +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale +kubebuilder:resource:categories={oam} +kubebuilder:subresource:status
func (*PodSpecWorkload) DeepCopy ¶
func (in *PodSpecWorkload) DeepCopy() *PodSpecWorkload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpecWorkload.
func (*PodSpecWorkload) DeepCopyInto ¶
func (in *PodSpecWorkload) DeepCopyInto(out *PodSpecWorkload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodSpecWorkload) DeepCopyObject ¶
func (in *PodSpecWorkload) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PodSpecWorkload) GetCondition ¶
func (in *PodSpecWorkload) GetCondition(c cpv1alpha1.ConditionType) cpv1alpha1.Condition
GetCondition set condition for this CR
func (*PodSpecWorkload) SetConditions ¶
func (in *PodSpecWorkload) SetConditions(c ...cpv1alpha1.Condition)
SetConditions set condition for this CR
type PodSpecWorkloadList ¶
type PodSpecWorkloadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PodSpecWorkload `json:"items"` }
PodSpecWorkloadList contains a list of PodSpecWorkload
func (*PodSpecWorkloadList) DeepCopy ¶
func (in *PodSpecWorkloadList) DeepCopy() *PodSpecWorkloadList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpecWorkloadList.
func (*PodSpecWorkloadList) DeepCopyInto ¶
func (in *PodSpecWorkloadList) DeepCopyInto(out *PodSpecWorkloadList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodSpecWorkloadList) DeepCopyObject ¶
func (in *PodSpecWorkloadList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodSpecWorkloadSpec ¶
type PodSpecWorkloadSpec struct { // Replicas is the desired number of replicas of the given podSpec. // These are replicas in the sense that they are instantiations of the same podSpec. // If unspecified, defaults to 1. Replicas *int32 `json:"replicas,omitempty"` // PodSpec describes the pods that will be created, // we omit the meta part as it will be exactly the same as the PodSpecWorkload PodSpec v1.PodSpec `json:"podSpec"` }
PodSpecWorkloadSpec defines the desired state of PodSpecWorkload
func (*PodSpecWorkloadSpec) DeepCopy ¶
func (in *PodSpecWorkloadSpec) DeepCopy() *PodSpecWorkloadSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpecWorkloadSpec.
func (*PodSpecWorkloadSpec) DeepCopyInto ¶
func (in *PodSpecWorkloadSpec) DeepCopyInto(out *PodSpecWorkloadSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodSpecWorkloadStatus ¶
type PodSpecWorkloadStatus struct { cpv1alpha1.ConditionedStatus `json:",inline"` // Resources managed by this workload. Resources []cpv1alpha1.TypedReference `json:"resources,omitempty"` }
PodSpecWorkloadStatus defines the observed state of PodSpecWorkload
func (*PodSpecWorkloadStatus) DeepCopy ¶
func (in *PodSpecWorkloadStatus) DeepCopy() *PodSpecWorkloadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSpecWorkloadStatus.
func (*PodSpecWorkloadStatus) DeepCopyInto ¶
func (in *PodSpecWorkloadStatus) DeepCopyInto(out *PodSpecWorkloadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.