Documentation ¶
Overview ¶
+groupName=ehpc.alicloud.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type JobTemplate
- func (in *JobTemplate) DeepCopy() *JobTemplate
- func (in *JobTemplate) DeepCopyInto(out *JobTemplate)
- func (in *JobTemplate) DeepCopyObject() runtime.Object
- func (r *JobTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *JobTemplate) ValidateCreate() error
- func (r *JobTemplate) ValidateDelete() error
- func (r *JobTemplate) ValidateUpdate(old runtime.Object) error
- type JobTemplateList
- type JobTemplateSpec
- type JobTemplateSpecResource
- type JobTemplateStatus
Constants ¶
This section is empty.
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: ehpc.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Kind ¶
Kind takes an unqualified kind and returns a Group qualified GroupKind
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type JobTemplate ¶
type JobTemplate struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec JobTemplateSpec `json:"spec,omitempty"` Status JobTemplateStatus `json:"status,omitempty"` }
func (*JobTemplate) DeepCopy ¶
func (in *JobTemplate) DeepCopy() *JobTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplate.
func (*JobTemplate) DeepCopyInto ¶
func (in *JobTemplate) DeepCopyInto(out *JobTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobTemplate) DeepCopyObject ¶
func (in *JobTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*JobTemplate) SetupWebhookWithManager ¶
func (r *JobTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*JobTemplate) ValidateCreate ¶
func (r *JobTemplate) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*JobTemplate) ValidateDelete ¶
func (r *JobTemplate) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*JobTemplate) ValidateUpdate ¶
func (r *JobTemplate) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type JobTemplateList ¶
type JobTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of JobTemplate CRD objects Items []JobTemplate `json:"items,omitempty"` }
JobTemplateList is a list of JobTemplates
func (*JobTemplateList) DeepCopy ¶
func (in *JobTemplateList) DeepCopy() *JobTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplateList.
func (*JobTemplateList) DeepCopyInto ¶
func (in *JobTemplateList) DeepCopyInto(out *JobTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobTemplateList) DeepCopyObject ¶
func (in *JobTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type JobTemplateSpec ¶
type JobTemplateSpec struct { State *JobTemplateSpecResource `json:"state,omitempty" tf:"-"` Resource JobTemplateSpecResource `json:"resource" tf:"resource"` UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"` TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"` ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"` BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"` }
func (*JobTemplateSpec) DeepCopy ¶
func (in *JobTemplateSpec) DeepCopy() *JobTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplateSpec.
func (*JobTemplateSpec) DeepCopyInto ¶
func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobTemplateSpecResource ¶
type JobTemplateSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // +optional ArrayRequest *string `json:"arrayRequest,omitempty" tf:"array_request"` // +optional ClockTime *string `json:"clockTime,omitempty" tf:"clock_time"` CommandLine *string `json:"commandLine" tf:"command_line"` // +optional Gpu *int64 `json:"gpu,omitempty" tf:"gpu"` JobTemplateName *string `json:"jobTemplateName" tf:"job_template_name"` // +optional Mem *string `json:"mem,omitempty" tf:"mem"` // +optional Node *int64 `json:"node,omitempty" tf:"node"` // +optional PackagePath *string `json:"packagePath,omitempty" tf:"package_path"` // +optional Priority *int64 `json:"priority,omitempty" tf:"priority"` // +optional Queue *string `json:"queue,omitempty" tf:"queue"` // +optional ReRunable *bool `json:"reRunable,omitempty" tf:"re_runable"` // +optional RunasUser *string `json:"runasUser,omitempty" tf:"runas_user"` // +optional StderrRedirectPath *string `json:"stderrRedirectPath,omitempty" tf:"stderr_redirect_path"` // +optional StdoutRedirectPath *string `json:"stdoutRedirectPath,omitempty" tf:"stdout_redirect_path"` // +optional Task *int64 `json:"task,omitempty" tf:"task"` // +optional Thread *int64 `json:"thread,omitempty" tf:"thread"` // +optional Variables *string `json:"variables,omitempty" tf:"variables"` }
func (*JobTemplateSpecResource) DeepCopy ¶
func (in *JobTemplateSpecResource) DeepCopy() *JobTemplateSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplateSpecResource.
func (*JobTemplateSpecResource) DeepCopyInto ¶
func (in *JobTemplateSpecResource) DeepCopyInto(out *JobTemplateSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobTemplateStatus ¶
type JobTemplateStatus struct { // Resource generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional Phase status.Status `json:"phase,omitempty"` // +optional Conditions []kmapi.Condition `json:"conditions,omitempty"` }
func (*JobTemplateStatus) DeepCopy ¶
func (in *JobTemplateStatus) DeepCopy() *JobTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplateStatus.
func (*JobTemplateStatus) DeepCopyInto ¶
func (in *JobTemplateStatus) DeepCopyInto(out *JobTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.