Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the nyamber v1beta1 API group +kubebuilder:object:generate=true +groupName=nyamber.cybozu.io
Index ¶
Constants ¶
const ( TypePodCreated string = "PodCreated" TypePodAvailable string = "PodAvailable" TypeServiceCreated string = "ServiceCreated" TypePodJobCompleted string = "PodJobCompleted" )
const ( ReasonPodCreatedConflict string = "Conflict" ReasonPodCreatedFailed string = "Failed" ReasonPodCreatedTemplateError string = "TemplateError" ReasonPodAvailableNotAvailable string = "NotAvailable" ReasonPodAvailableNotExists string = "NotExists" ReasonPodAvailableNotScheduled string = "NotScheduled" ReasonServiceCreatedConflict string = "Conflict" ReasonServiceCreatedFailed string = "Failed" ReasonPodJobCompletedPending string = "Pending" ReasonPodJobCompletedRunning string = "Running" ReasonPodJobCompletedFailed string = "Failed" )
const ReasonOK string = "OK"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "nyamber.cybozu.io", Version: "v1beta1"} // 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 AutoVirtualDC ¶
type AutoVirtualDC struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AutoVirtualDCSpec `json:"spec,omitempty"` Status AutoVirtualDCStatus `json:"status,omitempty"` }
AutoVirtualDC is the Schema for the autovirtualdcs API
func (*AutoVirtualDC) DeepCopy ¶
func (in *AutoVirtualDC) DeepCopy() *AutoVirtualDC
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoVirtualDC.
func (*AutoVirtualDC) DeepCopyInto ¶
func (in *AutoVirtualDC) DeepCopyInto(out *AutoVirtualDC)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoVirtualDC) DeepCopyObject ¶
func (in *AutoVirtualDC) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoVirtualDCList ¶
type AutoVirtualDCList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AutoVirtualDC `json:"items"` }
AutoVirtualDCList contains a list of AutoVirtualDC
func (*AutoVirtualDCList) DeepCopy ¶
func (in *AutoVirtualDCList) DeepCopy() *AutoVirtualDCList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoVirtualDCList.
func (*AutoVirtualDCList) DeepCopyInto ¶
func (in *AutoVirtualDCList) DeepCopyInto(out *AutoVirtualDCList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoVirtualDCList) DeepCopyObject ¶
func (in *AutoVirtualDCList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoVirtualDCSpec ¶
type AutoVirtualDCSpec struct { // Template is a template for VirtualDC Template VirtualDC `json:"template,omitempty"` // StartSchedule is time to start VirtualDC. This format is cron format(UTC). StartSchedule string `json:"startSchedule,omitempty"` // StopSchedule is time to stop VirtualDC. this format is cron format(UTC). StopSchedule string `json:"stopSchedule,omitempty"` // TimeoutDuration is the duration of retry. This format is format used by ParseDuration(https://pkg.go.dev/time#ParseDuration) TimeoutDuration string `json:"timeoutDuration,omitempty"` }
AutoVirtualDCSpec defines the desired state of AutoVirtualDC
func (*AutoVirtualDCSpec) DeepCopy ¶
func (in *AutoVirtualDCSpec) DeepCopy() *AutoVirtualDCSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoVirtualDCSpec.
func (*AutoVirtualDCSpec) DeepCopyInto ¶
func (in *AutoVirtualDCSpec) DeepCopyInto(out *AutoVirtualDCSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AutoVirtualDCStatus ¶
type AutoVirtualDCStatus struct { // Next start time of VirtualDC's schedule. NextStartTime *metav1.Time `json:"nextStartTime,omitempty"` // Next stop time of VirtualDC's schedule. NextStopTime *metav1.Time `json:"nextStopTime,omitempty"` }
AutoVirtualDCStatus defines the observed state of AutoVirtualDC
func (*AutoVirtualDCStatus) DeepCopy ¶
func (in *AutoVirtualDCStatus) DeepCopy() *AutoVirtualDCStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoVirtualDCStatus.
func (*AutoVirtualDCStatus) DeepCopyInto ¶
func (in *AutoVirtualDCStatus) DeepCopyInto(out *AutoVirtualDCStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualDC ¶
type VirtualDC struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VirtualDCSpec `json:"spec,omitempty"` Status VirtualDCStatus `json:"status,omitempty"` }
VirtualDC is the Schema for the virtualdcs API
func (*VirtualDC) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDC.
func (*VirtualDC) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualDC) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualDCList ¶
type VirtualDCList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VirtualDC `json:"items"` }
VirtualDCList contains a list of VirtualDC
func (*VirtualDCList) DeepCopy ¶
func (in *VirtualDCList) DeepCopy() *VirtualDCList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDCList.
func (*VirtualDCList) DeepCopyInto ¶
func (in *VirtualDCList) DeepCopyInto(out *VirtualDCList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualDCList) DeepCopyObject ¶
func (in *VirtualDCList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualDCSpec ¶
type VirtualDCSpec struct { // Neco branch to use for dctest. // If this field is empty, controller runs dctest with "main" branch //+kubebuiler:validation:Optional NecoBranch string `json:"necoBranch,omitempty"` // Neco-apps branch to use for dctest. // If this field is empty, controller runs dctest with "main" branch //+kubebuiler:validation:Optional NecoAppsBranch string `json:"necoAppsBranch,omitempty"` // Skip bootstrapping neco-apps if true //+kubebuilder:validation:Optional SkipNecoApps bool `json:"skipNecoApps,omitempty"` // Path to a user-defined script and its arguments to run after bootstrapping dctest //+kubebuiler:validation:Optional Command []string `json:"command,omitempty"` //+kubebuiler:validation:Optional Resources corev1.ResourceRequirements `json:"resources,omitempty"` }
VirtualDCSpec defines the desired state of VirtualDC
func (*VirtualDCSpec) DeepCopy ¶
func (in *VirtualDCSpec) DeepCopy() *VirtualDCSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDCSpec.
func (*VirtualDCSpec) DeepCopyInto ¶
func (in *VirtualDCSpec) DeepCopyInto(out *VirtualDCSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualDCStatus ¶
type VirtualDCStatus struct { // Conditions is an array of conditions. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` }
VirtualDCStatus defines the observed state of VirtualDC
func (*VirtualDCStatus) DeepCopy ¶
func (in *VirtualDCStatus) DeepCopy() *VirtualDCStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualDCStatus.
func (*VirtualDCStatus) DeepCopyInto ¶
func (in *VirtualDCStatus) DeepCopyInto(out *VirtualDCStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.