Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the platform v1alpha1 API group +kubebuilder:object:generate=true +groupName=platform.kratix.io
Index ¶
- Constants
- Variables
- func GenerateSharedLabelsForPromise(promiseName string) map[string]string
- type BucketStateStore
- type BucketStateStoreList
- type BucketStateStoreSpec
- type BucketStateStoreStatus
- type Container
- type Dependencies
- type Dependency
- type Destination
- type DestinationList
- type DestinationSpec
- type DestinationStatus
- type GitStateStore
- type GitStateStoreList
- type GitStateStoreSpec
- type GitStateStoreStatus
- type Pipeline
- type PipelineSpec
- type Promise
- func (p *Promise) ContainsAPI() bool
- func (in *Promise) DeepCopy() *Promise
- func (in *Promise) DeepCopyInto(out *Promise)
- func (in *Promise) DeepCopyObject() runtime.Object
- func (p *Promise) Default()
- func (p *Promise) DoesNotContainAPI() bool
- func (p *Promise) GenerateSharedLabels() map[string]string
- func (p *Promise) GetAPIAsCRD() (*v1.CustomResourceDefinition, error)
- func (p *Promise) GetControllerResourceName() string
- func (p *Promise) GetPipelineResourceName() string
- func (p *Promise) GetPipelineResourceNamespace() string
- func (p *Promise) GetSchedulingSelectors() map[string]string
- func (p *Promise) SetupWebhookWithManager(mgr ctrl.Manager, client *clientset.Clientset) error
- func (p *Promise) ValidateCreate() (admission.Warnings, error)
- func (p *Promise) ValidateDelete() (admission.Warnings, error)
- func (p *Promise) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type PromiseList
- type PromiseSpec
- type PromiseStatus
- type Selector
- type StateStoreCoreFields
- type StateStoreReference
- type Work
- type WorkList
- type WorkPlacement
- type WorkPlacementList
- type WorkPlacementSpec
- type WorkPlacementStatus
- type WorkScheduling
- type WorkSpec
- type WorkStatus
- type WorkflowTriggers
- type Workflows
- type Workload
- type WorkloadCoreFields
Constants ¶
const ( KratixSystemNamespace = "kratix-platform-system" KratixActionConfigure = "configure" KratixWorkflowTypeResource = "resource" KratixWorkflowTypePromise = "promise" )
const DependencyReplicas = -1
const ResourceRequestReplicas = 1
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "platform.kratix.io", 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 )
var ErrNoAPI = fmt.Errorf("promise does not contain an API")
Functions ¶
func GenerateSharedLabelsForPromise ¶ added in v0.0.5
Types ¶
type BucketStateStore ¶ added in v0.0.3
type BucketStateStore struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BucketStateStoreSpec `json:"spec,omitempty"` Status BucketStateStoreStatus `json:"status,omitempty"` }
BucketStateStore is the Schema for the bucketstatestores API
func (*BucketStateStore) DeepCopy ¶ added in v0.0.3
func (in *BucketStateStore) DeepCopy() *BucketStateStore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BucketStateStore.
func (*BucketStateStore) DeepCopyInto ¶ added in v0.0.3
func (in *BucketStateStore) DeepCopyInto(out *BucketStateStore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BucketStateStore) DeepCopyObject ¶ added in v0.0.3
func (in *BucketStateStore) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BucketStateStore) GetSecretRef ¶ added in v0.0.5
func (b *BucketStateStore) GetSecretRef() *corev1.SecretReference
type BucketStateStoreList ¶ added in v0.0.3
type BucketStateStoreList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BucketStateStore `json:"items"` }
BucketStateStoreList contains a list of BucketStateStore
func (*BucketStateStoreList) DeepCopy ¶ added in v0.0.3
func (in *BucketStateStoreList) DeepCopy() *BucketStateStoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BucketStateStoreList.
func (*BucketStateStoreList) DeepCopyInto ¶ added in v0.0.3
func (in *BucketStateStoreList) DeepCopyInto(out *BucketStateStoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BucketStateStoreList) DeepCopyObject ¶ added in v0.0.3
func (in *BucketStateStoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BucketStateStoreSpec ¶ added in v0.0.3
type BucketStateStoreSpec struct { BucketName string `json:"bucketName"` Endpoint string `json:"endpoint"` StateStoreCoreFields `json:",inline"` //+kubebuilder:validation:Optional Insecure bool `json:"insecure"` }
BucketStateStoreSpec defines the desired state of BucketStateStore
func (*BucketStateStoreSpec) DeepCopy ¶ added in v0.0.3
func (in *BucketStateStoreSpec) DeepCopy() *BucketStateStoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BucketStateStoreSpec.
func (*BucketStateStoreSpec) DeepCopyInto ¶ added in v0.0.3
func (in *BucketStateStoreSpec) DeepCopyInto(out *BucketStateStoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BucketStateStoreStatus ¶ added in v0.0.3
type BucketStateStoreStatus struct { }
BucketStateStoreStatus defines the observed state of BucketStateStore
func (*BucketStateStoreStatus) DeepCopy ¶ added in v0.0.3
func (in *BucketStateStoreStatus) DeepCopy() *BucketStateStoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BucketStateStoreStatus.
func (*BucketStateStoreStatus) DeepCopyInto ¶ added in v0.0.3
func (in *BucketStateStoreStatus) DeepCopyInto(out *BucketStateStoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Container ¶ added in v0.0.4
func (*Container) DeepCopy ¶ added in v0.0.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Container.
func (*Container) DeepCopyInto ¶ added in v0.0.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Dependencies ¶ added in v0.0.5
type Dependencies []Dependency
func (Dependencies) DeepCopy ¶ added in v0.0.5
func (in Dependencies) DeepCopy() Dependencies
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dependencies.
func (Dependencies) DeepCopyInto ¶ added in v0.0.5
func (in Dependencies) DeepCopyInto(out *Dependencies)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Dependencies) Marshal ¶ added in v0.0.5
func (d Dependencies) Marshal() ([]byte, error)
type Dependency ¶ added in v0.0.4
type Dependency struct { // Manifests represents a list of resources to be deployed on the Destination // +optional // +kubebuilder:pruning:PreserveUnknownFields unstructured.Unstructured `json:",inline"` }
Resources represents the manifest workload to be deployed on Destinations
func (*Dependency) DeepCopy ¶ added in v0.0.4
func (in *Dependency) DeepCopy() *Dependency
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dependency.
func (*Dependency) DeepCopyInto ¶ added in v0.0.4
func (in *Dependency) DeepCopyInto(out *Dependency)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Destination ¶ added in v0.0.5
type Destination struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DestinationSpec `json:"spec,omitempty"` Status DestinationStatus `json:"status,omitempty"` }
Destination is the Schema for the Destinations API
func (*Destination) DeepCopy ¶ added in v0.0.5
func (in *Destination) DeepCopy() *Destination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Destination.
func (*Destination) DeepCopyInto ¶ added in v0.0.5
func (in *Destination) DeepCopyInto(out *Destination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Destination) DeepCopyObject ¶ added in v0.0.5
func (in *Destination) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DestinationList ¶ added in v0.0.5
type DestinationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Destination `json:"items"` }
DestinationList contains a list of Destination
func (*DestinationList) DeepCopy ¶ added in v0.0.5
func (in *DestinationList) DeepCopy() *DestinationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationList.
func (*DestinationList) DeepCopyInto ¶ added in v0.0.5
func (in *DestinationList) DeepCopyInto(out *DestinationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DestinationList) DeepCopyObject ¶ added in v0.0.5
func (in *DestinationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DestinationSpec ¶ added in v0.0.5
type DestinationSpec struct { // Path within StateStore to write documents, this will be appended to any // specficed Spec.Path provided in the referenced StateStore. // Kratix will then namespace any resources within the provided path. // Path structure will be: // <StateStore.Spec.Path>/<Destination.Spec.Path>/<Destination.Metadata.Namespace>/<Destination.Metadata.Name>/ //+kubebuilder:validation:Optional StateStoreCoreFields `json:",inline"` StateStoreRef *StateStoreReference `json:"stateStoreRef,omitempty"` }
DestinationSpec defines the desired state of Destination
func (*DestinationSpec) DeepCopy ¶ added in v0.0.5
func (in *DestinationSpec) DeepCopy() *DestinationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationSpec.
func (*DestinationSpec) DeepCopyInto ¶ added in v0.0.5
func (in *DestinationSpec) DeepCopyInto(out *DestinationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DestinationStatus ¶ added in v0.0.5
type DestinationStatus struct { }
DestinationStatus defines the observed state of Destination
func (*DestinationStatus) DeepCopy ¶ added in v0.0.5
func (in *DestinationStatus) DeepCopy() *DestinationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationStatus.
func (*DestinationStatus) DeepCopyInto ¶ added in v0.0.5
func (in *DestinationStatus) DeepCopyInto(out *DestinationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitStateStore ¶ added in v0.0.3
type GitStateStore struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitStateStoreSpec `json:"spec,omitempty"` Status GitStateStoreStatus `json:"status,omitempty"` }
GitStateStore is the Schema for the gitstatestores API
func (*GitStateStore) DeepCopy ¶ added in v0.0.3
func (in *GitStateStore) DeepCopy() *GitStateStore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitStateStore.
func (*GitStateStore) DeepCopyInto ¶ added in v0.0.3
func (in *GitStateStore) DeepCopyInto(out *GitStateStore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitStateStore) DeepCopyObject ¶ added in v0.0.3
func (in *GitStateStore) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GitStateStore) GetSecretRef ¶ added in v0.0.5
func (g *GitStateStore) GetSecretRef() *corev1.SecretReference
type GitStateStoreList ¶ added in v0.0.3
type GitStateStoreList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GitStateStore `json:"items"` }
GitStateStoreList contains a list of GitStateStore
func (*GitStateStoreList) DeepCopy ¶ added in v0.0.3
func (in *GitStateStoreList) DeepCopy() *GitStateStoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitStateStoreList.
func (*GitStateStoreList) DeepCopyInto ¶ added in v0.0.3
func (in *GitStateStoreList) DeepCopyInto(out *GitStateStoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitStateStoreList) DeepCopyObject ¶ added in v0.0.3
func (in *GitStateStoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitStateStoreSpec ¶ added in v0.0.3
type GitStateStoreSpec struct { URL string `json:"url,omitempty"` StateStoreCoreFields `json:",inline"` //+kubebuilder:validation:Optional //+kubebuilder:default=main Branch string `json:"branch,omitempty"` }
GitStateStoreSpec defines the desired state of GitStateStore
func (*GitStateStoreSpec) DeepCopy ¶ added in v0.0.3
func (in *GitStateStoreSpec) DeepCopy() *GitStateStoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitStateStoreSpec.
func (*GitStateStoreSpec) DeepCopyInto ¶ added in v0.0.3
func (in *GitStateStoreSpec) DeepCopyInto(out *GitStateStoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitStateStoreStatus ¶ added in v0.0.3
type GitStateStoreStatus struct { }
GitStateStoreStatus defines the observed state of GitStateStore
func (*GitStateStoreStatus) DeepCopy ¶ added in v0.0.3
func (in *GitStateStoreStatus) DeepCopy() *GitStateStoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitStateStoreStatus.
func (*GitStateStoreStatus) DeepCopyInto ¶ added in v0.0.3
func (in *GitStateStoreStatus) DeepCopyInto(out *GitStateStoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Pipeline ¶ added in v0.0.4
type Pipeline struct { //Note: Removed TypeMeta in order to stop the CRD generation. // This is only for internal Kratix use. //metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PipelineSpec `json:"spec,omitempty"` }
Pipeline is the Schema for the pipelines API
func (*Pipeline) DeepCopy ¶ added in v0.0.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pipeline.
func (*Pipeline) DeepCopyInto ¶ added in v0.0.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineSpec ¶ added in v0.0.4
type PipelineSpec struct {
Containers []Container `json:"containers,omitempty"`
}
PipelineSpec defines the desired state of Pipeline
func (*PipelineSpec) DeepCopy ¶ added in v0.0.4
func (in *PipelineSpec) DeepCopy() *PipelineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineSpec.
func (*PipelineSpec) DeepCopyInto ¶ added in v0.0.4
func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Promise ¶
type Promise struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PromiseSpec `json:"spec,omitempty"` Status PromiseStatus `json:"status,omitempty"` }
Promise is the Schema for the promises API
func (*Promise) ContainsAPI ¶ added in v0.0.5
func (*Promise) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Promise.
func (*Promise) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Promise) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Promise) Default ¶ added in v0.0.5
func (p *Promise) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Promise) DoesNotContainAPI ¶ added in v0.0.4
func (*Promise) GenerateSharedLabels ¶ added in v0.0.2
func (*Promise) GetAPIAsCRD ¶ added in v0.0.5
func (p *Promise) GetAPIAsCRD() (*v1.CustomResourceDefinition, error)
func (*Promise) GetControllerResourceName ¶ added in v0.0.2
func (*Promise) GetPipelineResourceName ¶ added in v0.0.2
func (*Promise) GetPipelineResourceNamespace ¶ added in v0.0.2
func (*Promise) GetSchedulingSelectors ¶ added in v0.0.4
func (*Promise) SetupWebhookWithManager ¶ added in v0.0.5
func (*Promise) ValidateCreate ¶ added in v0.0.5
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Promise) ValidateDelete ¶ added in v0.0.5
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type PromiseList ¶
type PromiseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Promise `json:"items"` }
PromiseList contains a list of Promise
func (*PromiseList) DeepCopy ¶
func (in *PromiseList) DeepCopy() *PromiseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PromiseList.
func (*PromiseList) DeepCopyInto ¶
func (in *PromiseList) DeepCopyInto(out *PromiseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PromiseList) DeepCopyObject ¶
func (in *PromiseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PromiseSpec ¶
type PromiseSpec struct { // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:EmbeddedResource // +kubebuilder:validation:Optional API *runtime.RawExtension `json:"api,omitempty"` Workflows Workflows `json:"workflows,omitempty"` Dependencies Dependencies `json:"dependencies,omitempty"` DestinationSelectors []Selector `json:"destinationSelectors,omitempty"` }
PromiseSpec defines the desired state of Promise
func (*PromiseSpec) DeepCopy ¶
func (in *PromiseSpec) DeepCopy() *PromiseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PromiseSpec.
func (*PromiseSpec) DeepCopyInto ¶
func (in *PromiseSpec) DeepCopyInto(out *PromiseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PromiseStatus ¶
type PromiseStatus struct { Conditions []metav1.Condition `json:"conditions,omitempty"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
PromiseStatus defines the observed state of Promise
func (*PromiseStatus) DeepCopy ¶
func (in *PromiseStatus) DeepCopy() *PromiseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PromiseStatus.
func (*PromiseStatus) DeepCopyInto ¶
func (in *PromiseStatus) DeepCopyInto(out *PromiseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Selector ¶ added in v0.0.5
func (*Selector) DeepCopy ¶ added in v0.0.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector.
func (*Selector) DeepCopyInto ¶ added in v0.0.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StateStoreCoreFields ¶ added in v0.0.3
type StateStoreCoreFields struct { // Path within the StateStore to write documents. This path should be allocated // to Kratix as it will create, update, and delete files within this path. // Path structure begins with provided path and ends with namespaced destination name: // <StateStore.Spec.Path>/<Destination.Spec.Path>/<Destination.Metadata.Namespace>/<Destination.Metadata.Name>/ //+kubebuilder:validation:Optional Path string `json:"path,omitempty"` // SecretRef specifies the Secret containing authentication credentials SecretRef *corev1.SecretReference `json:"secretRef,omitempty"` }
func (*StateStoreCoreFields) DeepCopy ¶ added in v0.0.3
func (in *StateStoreCoreFields) DeepCopy() *StateStoreCoreFields
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StateStoreCoreFields.
func (*StateStoreCoreFields) DeepCopyInto ¶ added in v0.0.3
func (in *StateStoreCoreFields) DeepCopyInto(out *StateStoreCoreFields)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StateStoreReference ¶ added in v0.0.3
type StateStoreReference struct { // +kubebuilder:validation:Enum=BucketStateStore;GitStateStore Kind string `json:"kind"` Name string `json:"name"` }
StateStoreReference is a reference to a StateStore
func (*StateStoreReference) DeepCopy ¶ added in v0.0.3
func (in *StateStoreReference) DeepCopy() *StateStoreReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StateStoreReference.
func (*StateStoreReference) DeepCopyInto ¶ added in v0.0.3
func (in *StateStoreReference) DeepCopyInto(out *StateStoreReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Work ¶
type Work struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkSpec `json:"spec,omitempty"` Status WorkStatus `json:"status,omitempty"` }
Work is the Schema for the works API
func NewPromiseDependenciesWork ¶ added in v0.0.5
func (*Work) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Work.
func (*Work) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Work) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Work) GetSchedulingSelectors ¶ added in v0.0.4
func (*Work) HasScheduling ¶ added in v0.0.4
func (*Work) IsDependency ¶ added in v0.0.5
func (*Work) IsResourceRequest ¶
type WorkList ¶
type WorkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Work `json:"items"` }
WorkList contains a list of Work
func (*WorkList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkList.
func (*WorkList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkPlacement ¶
type WorkPlacement struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkPlacementSpec `json:"spec,omitempty"` Status WorkPlacementStatus `json:"status,omitempty"` }
WorkPlacement is the Schema for the workplacements API
func (*WorkPlacement) DeepCopy ¶
func (in *WorkPlacement) DeepCopy() *WorkPlacement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkPlacement.
func (*WorkPlacement) DeepCopyInto ¶
func (in *WorkPlacement) DeepCopyInto(out *WorkPlacement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkPlacement) DeepCopyObject ¶
func (in *WorkPlacement) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkPlacementList ¶
type WorkPlacementList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []WorkPlacement `json:"items"` }
WorkPlacementList contains a list of WorkPlacement
func (*WorkPlacementList) DeepCopy ¶
func (in *WorkPlacementList) DeepCopy() *WorkPlacementList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkPlacementList.
func (*WorkPlacementList) DeepCopyInto ¶
func (in *WorkPlacementList) DeepCopyInto(out *WorkPlacementList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkPlacementList) DeepCopyObject ¶
func (in *WorkPlacementList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkPlacementSpec ¶
type WorkPlacementSpec struct { TargetDestinationName string `json:"targetDestinationName,omitempty"` WorkloadCoreFields `json:",inline"` }
WorkPlacementSpec defines the desired state of WorkPlacement
func (*WorkPlacementSpec) DeepCopy ¶
func (in *WorkPlacementSpec) DeepCopy() *WorkPlacementSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkPlacementSpec.
func (*WorkPlacementSpec) DeepCopyInto ¶
func (in *WorkPlacementSpec) DeepCopyInto(out *WorkPlacementSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkPlacementStatus ¶
WorkPlacementStatus defines the observed state of WorkPlacement
func (*WorkPlacementStatus) DeepCopy ¶
func (in *WorkPlacementStatus) DeepCopy() *WorkPlacementStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkPlacementStatus.
func (*WorkPlacementStatus) DeepCopyInto ¶
func (in *WorkPlacementStatus) DeepCopyInto(out *WorkPlacementStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkScheduling ¶ added in v0.0.4
type WorkScheduling struct { Promise []Selector `json:"promise,omitempty"` Resource []Selector `json:"resource,omitempty"` }
func (*WorkScheduling) DeepCopy ¶ added in v0.0.4
func (in *WorkScheduling) DeepCopy() *WorkScheduling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkScheduling.
func (*WorkScheduling) DeepCopyInto ¶ added in v0.0.4
func (in *WorkScheduling) DeepCopyInto(out *WorkScheduling)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkSpec ¶
type WorkSpec struct { // DestinationSelectors is used for selecting the destination DestinationSelectors WorkScheduling `json:"destinationSelectors,omitempty"` // -1 denotes dependencies, 1 denotes Resource Request Replicas int `json:"replicas,omitempty"` WorkloadCoreFields `json:",inline"` }
WorkSpec defines the desired state of Work
func (*WorkSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkSpec.
func (*WorkSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkStatus ¶
type WorkStatus struct { }
WorkStatus defines the observed state of Work
func (*WorkStatus) DeepCopy ¶
func (in *WorkStatus) DeepCopy() *WorkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkStatus.
func (*WorkStatus) DeepCopyInto ¶
func (in *WorkStatus) DeepCopyInto(out *WorkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkflowTriggers ¶ added in v0.0.4
type WorkflowTriggers struct { // +kubebuilder:pruning:PreserveUnknownFields Configure []unstructured.Unstructured `json:"configure,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields Delete []unstructured.Unstructured `json:"delete,omitempty"` }
func (*WorkflowTriggers) DeepCopy ¶ added in v0.0.4
func (in *WorkflowTriggers) DeepCopy() *WorkflowTriggers
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowTriggers.
func (*WorkflowTriggers) DeepCopyInto ¶ added in v0.0.4
func (in *WorkflowTriggers) DeepCopyInto(out *WorkflowTriggers)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workflows ¶ added in v0.0.4
type Workflows struct { Resource WorkflowTriggers `json:"resource,omitempty"` Promise WorkflowTriggers `json:"promise,omitempty"` }
func (*Workflows) DeepCopy ¶ added in v0.0.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workflows.
func (*Workflows) DeepCopyInto ¶ added in v0.0.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workload ¶ added in v0.0.5
type Workload struct { // +optional Filepath string `json:"filepath,omitempty"` Content string `json:"content,omitempty"` }
Workload represents the manifest workload to be deployed on destination
func (*Workload) DeepCopy ¶ added in v0.0.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶ added in v0.0.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadCoreFields ¶ added in v0.0.5
type WorkloadCoreFields struct { // Workload represents the manifest workload to be deployed on destination Workloads []Workload `json:"workloads,omitempty"` PromiseName string `json:"promiseName,omitempty"` // +optional ResourceName string `json:"resourceName,omitempty"` }
func (*WorkloadCoreFields) DeepCopy ¶ added in v0.0.5
func (in *WorkloadCoreFields) DeepCopy() *WorkloadCoreFields
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadCoreFields.
func (*WorkloadCoreFields) DeepCopyInto ¶ added in v0.0.5
func (in *WorkloadCoreFields) DeepCopyInto(out *WorkloadCoreFields)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.