Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=adarga.ai +k8s:openapi-gen=true +versionName=v1alpha1
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- func VersionKind(kind string) schema.GroupVersionKind
- type Egress
- type GPU
- type Input
- type PFS
- type PachydermPipeline
- type PachydermPipelineCondition
- type PachydermPipelineConditionType
- type PachydermPipelineList
- type PachydermPipelineSpec
- type PachydermPipelineStatus
- type PipelineStatus
- type ResourceLimits
- type Transform
Constants ¶
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: kubecodegeneratorpachyderm.GroupName, Version: version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func VersionKind ¶
func VersionKind(kind string) schema.GroupVersionKind
VersionKind takes an unqualified kind and returns back a Group qualified GroupVersionKind
Types ¶
type Egress ¶
type Egress struct { // +kubebuilder:validation:Required URL string `json:"url"` }
func (*Egress) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Egress.
func (*Egress) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GPU ¶
func (*GPU) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GPU.
func (*GPU) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Input ¶
type Input struct { // +kubebuilder:validation:Optional PFS *PFS `json:"pfs,omitempty"` // +kubebuilder:validation:Optional Join []*PFS `json:"join,omitempty"` // +kubebuilder:validation:Optional Cross []*PFS `json:"cross,omitempty"` }
func (*Input) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Input.
func (*Input) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PFS ¶
type PFS struct { // +kubebuilder:validation:Required Repo string `json:"repo"` // +kubebuilder:validation:Required Glob string `json:"glob"` // +kubebuilder:validation:Required Branch string `json:"branch"` }
func (*PFS) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PFS.
func (*PFS) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PachydermPipeline ¶
type PachydermPipeline struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PachydermPipelineSpec `json:"spec"` // +kubebuilder:validation:Optional Status PachydermPipelineStatus `json:"status,omitempty"` }
+crd +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:resource:singular=pachydermpipeline,path=pachydermpipelines,shortName=pipe,scope=Namespaced +groupName=adarga.ai +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name=Created,type="string",JSONPath=`.status.conditions[?(@.type=="Creation")].status` +kubebuilder:printcolumn:name=Condition,type="string",JSONPath=`.status.conditions[?(@.type=="Running")].status`
func (*PachydermPipeline) DeepCopy ¶
func (in *PachydermPipeline) DeepCopy() *PachydermPipeline
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PachydermPipeline.
func (*PachydermPipeline) DeepCopyInto ¶
func (in *PachydermPipeline) DeepCopyInto(out *PachydermPipeline)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PachydermPipeline) DeepCopyObject ¶
func (in *PachydermPipeline) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PachydermPipelineCondition ¶
type PachydermPipelineCondition struct { Type PachydermPipelineConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ReplicationControllerConditionType"` // Status of the condition, one of True, False, Unknown. Status PipelineStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // +optional Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` }
Describes the state of a pipeline condition at a certain point in time.
func (*PachydermPipelineCondition) DeepCopy ¶
func (in *PachydermPipelineCondition) DeepCopy() *PachydermPipelineCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PachydermPipelineCondition.
func (*PachydermPipelineCondition) DeepCopyInto ¶
func (in *PachydermPipelineCondition) DeepCopyInto(out *PachydermPipelineCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PachydermPipelineConditionType ¶
type PachydermPipelineConditionType string
The valid conditions of a pachyderm pipeline failure
const ( // When the pipeline object is not being instantiated properly (bad repo) PachydermPipelineCreationCondition PachydermPipelineConditionType = "Creation" // When the pipeline object has a finaliser, but no running pipeline in pachd. PachydermPipelineRunningCondition PachydermPipelineConditionType = "Running" )
type PachydermPipelineList ¶
type PachydermPipelineList struct { metav1.TypeMeta metav1.ListMeta Items []PachydermPipeline }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*PachydermPipelineList) DeepCopy ¶
func (in *PachydermPipelineList) DeepCopy() *PachydermPipelineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PachydermPipelineList.
func (*PachydermPipelineList) DeepCopyInto ¶
func (in *PachydermPipelineList) DeepCopyInto(out *PachydermPipelineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PachydermPipelineList) DeepCopyObject ¶
func (in *PachydermPipelineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PachydermPipelineSpec ¶
type PachydermPipelineSpec struct { // +kubebuilder:validation:Required Name string `json:"name"` // +kubebuilder:validation:Required Transform Transform `json:"transform"` // +kubebuilder:validation:Required Input Input `json:"input"` // +kubebuilder:validation:Required EnableStats bool `json:"enable_stats"` // +kubebuilder:validation:Optional Egress *string `json:"egress,omitempty"` // +kubebuilder:validation:Optional ResourceLimits *ResourceLimits `json:"resource_limits,omitempty"` // +kubebuilder:validation:Optional Description string `json:"description,omitempty"` }
func (*PachydermPipelineSpec) DeepCopy ¶
func (in *PachydermPipelineSpec) DeepCopy() *PachydermPipelineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PachydermPipelineSpec.
func (*PachydermPipelineSpec) DeepCopyInto ¶
func (in *PachydermPipelineSpec) DeepCopyInto(out *PachydermPipelineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PachydermPipelineStatus ¶
type PachydermPipelineStatus struct { // Conditions represents the latest available observations of a replication controllers current state. // +kubebuilder:validation:Optional // +patchMergeKey=type // +patchStrategy=merge Conditions []PachydermPipelineCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` }
func (*PachydermPipelineStatus) DeepCopy ¶
func (in *PachydermPipelineStatus) DeepCopy() *PachydermPipelineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PachydermPipelineStatus.
func (*PachydermPipelineStatus) DeepCopyInto ¶
func (in *PachydermPipelineStatus) DeepCopyInto(out *PachydermPipelineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineStatus ¶
type PipelineStatus string
const ( ConditionRunning PipelineStatus = "Running" ConditionMissing PipelineStatus = "Missing" ConditionStopped PipelineStatus = "Stopped" ConditionCreated PipelineStatus = "Success" ConditionCreationError PipelineStatus = "CreationError" ConditionUnknown PipelineStatus = "Unknown" )
potentially breaking API guidelines by going for this format
type ResourceLimits ¶
type ResourceLimits struct { // +kubebuilder:validation:Optional Memory *string `json:"memory,omitempty"` // +kubebuilder:validation:Optional GPU *GPU `json:"gpu,omitempty"` }
add CPU?
func (*ResourceLimits) DeepCopy ¶
func (in *ResourceLimits) DeepCopy() *ResourceLimits
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceLimits.
func (*ResourceLimits) DeepCopyInto ¶
func (in *ResourceLimits) DeepCopyInto(out *ResourceLimits)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Transform ¶
type Transform struct { // +kubebuilder:validation:Required CMD []string `json:"cmd"` // +kubebuilder:validation:Required Image string `json:"image"` // +kubebuilder:validation:Optional Env []v1.EnvVar `json:"env,omitempty"` }
func (*Transform) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Transform.
func (*Transform) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.