Documentation ¶
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- func WorkloadReadyConditionFunc(target client.Object) (bool, error)
- func WorkloadServiceClaimPrinter(w io.Writer, workload *Workload) error
- type ClusterSupplyChain
- type ClusterSupplyChainList
- type DelegatableParam
- type FieldSelectorOperator
- type FieldSelectorRequirement
- type GitRef
- type GitSource
- type Input
- type ObjectReference
- type Output
- type Param
- type RealizedResource
- type ResourceReference
- type ServiceAccountRef
- type Source
- type SupplyChainResource
- type SupplyChainSpec
- type SupplyChainStatus
- type SupplyChainTemplateReference
- type TemplateParam
- type TemplateParams
- type Workload
- func (in *Workload) DeepCopy() *Workload
- func (in *Workload) DeepCopyInto(out *Workload)
- func (in *Workload) DeepCopyObject() runtime.Object
- func (w *Workload) DeleteServiceClaimAnnotation(name string)
- func (w *Workload) DeprecationWarnings() []string
- func (w *Workload) GetGroupVersionKind() schema.GroupVersionKind
- func (w *Workload) Load(in io.Reader) error
- func (w *Workload) Merge(updates *Workload)
- func (w *Workload) MergeAnnotations(key, value string)
- func (w *Workload) MergeLabels(key, value string)
- func (w *Workload) MergeServiceClaimAnnotation(name string, value interface{})
- func (w *Workload) Validate() validation.FieldErrors
- type WorkloadBuild
- type WorkloadList
- type WorkloadServiceClaim
- type WorkloadServiceClaimReference
- type WorkloadSpec
- func (in *WorkloadSpec) DeepCopy() *WorkloadSpec
- func (in *WorkloadSpec) DeepCopyInto(out *WorkloadSpec)
- func (w *WorkloadSpec) DeleteServiceClaim(name string)
- func (w *WorkloadSpec) GetParam(key string, value interface{})
- func (w *WorkloadSpec) Merge(updates *WorkloadSpec)
- func (w *WorkloadSpec) MergeAnnotationParams(key string, value string)
- func (w *WorkloadSpec) MergeBuildEnv(env corev1.EnvVar)
- func (w *WorkloadSpec) MergeEnv(env corev1.EnvVar)
- func (w *WorkloadSpec) MergeGit(git GitSource)
- func (w *WorkloadSpec) MergeImage(image string)
- func (w *WorkloadSpec) MergeParams(key string, value interface{})
- func (w *WorkloadSpec) MergeResources(r *corev1.ResourceRequirements)
- func (w *WorkloadSpec) MergeServiceAccountName(serviceAccountName string)
- func (w *WorkloadSpec) MergeServiceClaim(sc WorkloadServiceClaim)
- func (w *WorkloadSpec) MergeSourceImage(image string)
- func (w *WorkloadSpec) MergeSubPath(subPath string)
- func (w *WorkloadSpec) RemoveAnnotationParams(name string)
- func (w *WorkloadSpec) RemoveBuildEnv(name string)
- func (w *WorkloadSpec) RemoveEnv(name string)
- func (w *WorkloadSpec) RemoveParam(name string)
- func (w *WorkloadSpec) ResetSource()
- func (w *WorkloadSpec) Validate() validation.FieldErrors
- type WorkloadStatus
Constants ¶
const ( SupplyChainReady = "Ready" SupplyChainTemplatesReady = "TemplatesReady" )
const ( ReadyTemplatesReadyReason = "Ready" NotFoundTemplatesReadyReason = "TemplatesNotFound" )
const ( WorkloadReady = "Ready" WorkloadSupplyChainReady = "SupplyChainReady" WorkloadResourceSubmitted = "ResourcesSubmitted" )
const ( ReadySupplyChainReason = "Ready" WorkloadLabelsMissingSupplyChainReason = "WorkloadLabelsMissing" NotFoundSupplyChainReadyReason = "SupplyChainNotFound" MultipleMatchesSupplyChainReadyReason = "MultipleSupplyChainMatches" ServiceAccountSecretErrorResourcesSubmittedReason = "ServiceAccountSecretError" ResourceRealizerBuilderErrorResourcesSubmittedReason = "ResourceRealizerBuilderError" )
const ( ConditionResourceReady = "Ready" ConditionResourceSubmitted = "ResourceSubmitted" )
const GroupName = "carto.run"
const WorkloadAnnotationParam = "annotations"
const WorkloadConditionReady = "Ready"
const WorkloadLabelName = GroupName + "/workload-name"
Variables ¶
var ( SchemeGroupVersion = schema.GroupVersion{ Group: GroupName, Version: "v1alpha1", } SchemeBuilder = &scheme.Builder{ GroupVersion: SchemeGroupVersion, } AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶ added in v0.7.0
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterSupplyChain ¶
type ClusterSupplyChain struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec SupplyChainSpec `json:"spec"` Status SupplyChainStatus `json:"status,omitempty"` }
func (*ClusterSupplyChain) DeepCopy ¶
func (in *ClusterSupplyChain) DeepCopy() *ClusterSupplyChain
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSupplyChain.
func (*ClusterSupplyChain) DeepCopyInto ¶
func (in *ClusterSupplyChain) DeepCopyInto(out *ClusterSupplyChain)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterSupplyChain) DeepCopyObject ¶
func (in *ClusterSupplyChain) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterSupplyChain) GetGroupVersionKind ¶
func (sc *ClusterSupplyChain) GetGroupVersionKind() schema.GroupVersionKind
type ClusterSupplyChainList ¶
type ClusterSupplyChainList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterSupplyChain `json:"items"` }
func (*ClusterSupplyChainList) DeepCopy ¶
func (in *ClusterSupplyChainList) DeepCopy() *ClusterSupplyChainList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSupplyChainList.
func (*ClusterSupplyChainList) DeepCopyInto ¶
func (in *ClusterSupplyChainList) DeepCopyInto(out *ClusterSupplyChainList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterSupplyChainList) DeepCopyObject ¶
func (in *ClusterSupplyChainList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DelegatableParam ¶
type DelegatableParam struct { Name string `json:"name"` Value *apiextensionsv1.JSON `json:"value,omitempty"` DefaultValue *apiextensionsv1.JSON `json:"default,omitempty"` }
func (*DelegatableParam) DeepCopy ¶
func (in *DelegatableParam) DeepCopy() *DelegatableParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DelegatableParam.
func (*DelegatableParam) DeepCopyInto ¶
func (in *DelegatableParam) DeepCopyInto(out *DelegatableParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FieldSelectorOperator ¶ added in v0.7.0
type FieldSelectorOperator string
type FieldSelectorRequirement ¶ added in v0.7.0
type FieldSelectorRequirement struct { // +kubebuilder:validation:MinLength=1 Key string `json:"key"` // +kubebuilder:validation:Enum=In;NotIn;Exists;DoesNotExist Operator FieldSelectorOperator `json:"operator"` // the values array must be empty. Values []string `json:"values,omitempty"` }
func (*FieldSelectorRequirement) DeepCopy ¶ added in v0.7.0
func (in *FieldSelectorRequirement) DeepCopy() *FieldSelectorRequirement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FieldSelectorRequirement.
func (*FieldSelectorRequirement) DeepCopyInto ¶ added in v0.7.0
func (in *FieldSelectorRequirement) DeepCopyInto(out *FieldSelectorRequirement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRef ¶
type GitRef struct { Branch string `json:"branch,omitempty"` Tag string `json:"tag,omitempty"` Commit string `json:"commit,omitempty"` }
func (*GitRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRef.
func (*GitRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitSource ¶
func (*GitSource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitSource.
func (*GitSource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitSource) Validate ¶
func (w *GitSource) Validate() validation.FieldErrors
type Input ¶ added in v0.6.0
type Input struct { // Name is the name of the resource in the blueprint whose output the resource consumes as an input Name string `json:"name"` }
func (*Input) DeepCopy ¶ added in v0.6.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Input.
func (*Input) DeepCopyInto ¶ added in v0.6.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectReference ¶
type ObjectReference struct { Kind string `json:"kind,omitempty"` Namespace string `json:"namespace,omitempty"` Name string `json:"name,omitempty"` APIVersion string `json:"apiVersion,omitempty"` }
func (*ObjectReference) DeepCopy ¶
func (in *ObjectReference) DeepCopy() *ObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (*ObjectReference) DeepCopyInto ¶
func (in *ObjectReference) DeepCopyInto(out *ObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Output ¶ added in v0.6.0
type Output struct { // Name is the output type generated from the resource [url, revision, image or config] Name string `json:"name"` // Preview is a preview of the value of the output Preview string `json:"preview"` // Digest is a sha256 of the full value of the output Digest string `json:"digest"` // LastTransitionTime is a timestamp of the last time the value changed LastTransitionTime metav1.Time `json:"lastTransitionTime"` }
func (*Output) DeepCopy ¶ added in v0.6.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Output.
func (*Output) DeepCopyInto ¶ added in v0.6.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Param ¶
type Param struct { Name string `json:"name"` Value apiextensionsv1.JSON `json:"value"` }
func (*Param) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Param.
func (*Param) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RealizedResource ¶ added in v0.6.0
type RealizedResource struct { // Name is the name of the resource in the blueprint Name string `json:"name"` // StampedRef is a reference to the object that was created by the resource StampedRef *corev1.ObjectReference `json:"stampedRef,omitempty"` // TemplateRef is a reference to the template used to create the object in StampedRef TemplateRef *corev1.ObjectReference `json:"templateRef,omitempty"` // Inputs are references to resources that were used to template the object in StampedRef Inputs []Input `json:"inputs,omitempty"` // Outputs are values from the object in StampedRef that can be consumed by other resources Outputs []Output `json:"outputs,omitempty"` // Conditions describing this resource's reconcile state. The top level condition is // of type `Ready`, and follows these Kubernetes conventions: // https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties Conditions []metav1.Condition `json:"conditions,omitempty"` }
func (*RealizedResource) DeepCopy ¶ added in v0.6.0
func (in *RealizedResource) DeepCopy() *RealizedResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RealizedResource.
func (*RealizedResource) DeepCopyInto ¶ added in v0.6.0
func (in *RealizedResource) DeepCopyInto(out *RealizedResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceReference ¶
func (*ResourceReference) DeepCopy ¶
func (in *ResourceReference) DeepCopy() *ResourceReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceReference.
func (*ResourceReference) DeepCopyInto ¶
func (in *ResourceReference) DeepCopyInto(out *ResourceReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceAccountRef ¶
type ServiceAccountRef struct { Name string `json:"name"` Namespace string `json:"namespace,omitempty"` }
func (*ServiceAccountRef) DeepCopy ¶
func (in *ServiceAccountRef) DeepCopy() *ServiceAccountRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountRef.
func (*ServiceAccountRef) DeepCopyInto ¶
func (in *ServiceAccountRef) DeepCopyInto(out *ServiceAccountRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Source ¶
type Source struct { Git *GitSource `json:"git,omitempty"` // Image is an OCI image is a registry that contains source code Image string `json:"image,omitempty"` Subpath string `json:"subPath,omitempty"` }
func (*Source) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.
func (*Source) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Source) Validate ¶
func (w *Source) Validate() validation.FieldErrors
type SupplyChainResource ¶
type SupplyChainResource struct { Name string `json:"name"` TemplateRef SupplyChainTemplateReference `json:"templateRef"` Params []DelegatableParam `json:"params,omitempty"` Sources []ResourceReference `json:"sources,omitempty"` Images []ResourceReference `json:"images,omitempty"` Configs []ResourceReference `json:"configs,omitempty"` }
func (*SupplyChainResource) DeepCopy ¶
func (in *SupplyChainResource) DeepCopy() *SupplyChainResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplyChainResource.
func (*SupplyChainResource) DeepCopyInto ¶
func (in *SupplyChainResource) DeepCopyInto(out *SupplyChainResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SupplyChainSpec ¶
type SupplyChainSpec struct { Resources []SupplyChainResource `json:"resources"` Params []DelegatableParam `json:"params,omitempty"` ServiceAccountRef ServiceAccountRef `json:"serviceAccountRef,omitempty"` Selector map[string]string `json:"selector,omitempty"` SelectorMatchExpressions []metav1.LabelSelectorRequirement `json:"selectorMatchExpressions,omitempty"` SelectorMatchFields []FieldSelectorRequirement `json:"selectorMatchFields,omitempty"` }
func (*SupplyChainSpec) DeepCopy ¶
func (in *SupplyChainSpec) DeepCopy() *SupplyChainSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplyChainSpec.
func (*SupplyChainSpec) DeepCopyInto ¶
func (in *SupplyChainSpec) DeepCopyInto(out *SupplyChainSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SupplyChainStatus ¶
type SupplyChainStatus struct { Conditions []metav1.Condition `json:"conditions,omitempty"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
func (*SupplyChainStatus) DeepCopy ¶
func (in *SupplyChainStatus) DeepCopy() *SupplyChainStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplyChainStatus.
func (*SupplyChainStatus) DeepCopyInto ¶
func (in *SupplyChainStatus) DeepCopyInto(out *SupplyChainStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SupplyChainTemplateReference ¶
type SupplyChainTemplateReference struct { //+kubebuilder:validation:Enum=ClusterSourceTemplate;ClusterImageTemplate;ClusterTemplate;ClusterConfigTemplate Kind string `json:"kind"` // +kubebuilder:validation:MinLength=1 Name string `json:"name"` }
func (*SupplyChainTemplateReference) DeepCopy ¶
func (in *SupplyChainTemplateReference) DeepCopy() *SupplyChainTemplateReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplyChainTemplateReference.
func (*SupplyChainTemplateReference) DeepCopyInto ¶
func (in *SupplyChainTemplateReference) DeepCopyInto(out *SupplyChainTemplateReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateParam ¶
type TemplateParam struct { Name string `json:"name"` DefaultValue apiextensionsv1.JSON `json:"default"` }
func (*TemplateParam) DeepCopy ¶
func (in *TemplateParam) DeepCopy() *TemplateParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateParam.
func (*TemplateParam) DeepCopyInto ¶
func (in *TemplateParam) DeepCopyInto(out *TemplateParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateParams ¶
type TemplateParams []TemplateParam
func (TemplateParams) DeepCopy ¶
func (in TemplateParams) DeepCopy() TemplateParams
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateParams.
func (TemplateParams) DeepCopyInto ¶
func (in TemplateParams) DeepCopyInto(out *TemplateParams)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workload ¶
type Workload struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec WorkloadSpec `json:"spec"` Status WorkloadStatus `json:"status,omitempty"` }
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Workload) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Workload) DeleteServiceClaimAnnotation ¶
func (*Workload) DeprecationWarnings ¶
func (*Workload) GetGroupVersionKind ¶
func (w *Workload) GetGroupVersionKind() schema.GroupVersionKind
func (*Workload) MergeAnnotations ¶
func (*Workload) MergeLabels ¶
func (*Workload) MergeServiceClaimAnnotation ¶ added in v0.7.0
func (*Workload) Validate ¶
func (w *Workload) Validate() validation.FieldErrors
type WorkloadBuild ¶
func (*WorkloadBuild) DeepCopy ¶
func (in *WorkloadBuild) DeepCopy() *WorkloadBuild
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadBuild.
func (*WorkloadBuild) DeepCopyInto ¶
func (in *WorkloadBuild) DeepCopyInto(out *WorkloadBuild)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadList ¶
type WorkloadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Workload `json:"items"` }
func (*WorkloadList) DeepCopy ¶
func (in *WorkloadList) DeepCopy() *WorkloadList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadList.
func (*WorkloadList) DeepCopyInto ¶
func (in *WorkloadList) DeepCopyInto(out *WorkloadList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadList) DeepCopyObject ¶
func (in *WorkloadList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WorkloadServiceClaim ¶
type WorkloadServiceClaim struct { Name string `json:"name"` Ref *WorkloadServiceClaimReference `json:"ref,omitempty"` }
func NewServiceClaim ¶
func NewServiceClaim(name string, serviceRef corev1.ObjectReference) WorkloadServiceClaim
func (*WorkloadServiceClaim) DeepCopy ¶
func (in *WorkloadServiceClaim) DeepCopy() *WorkloadServiceClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadServiceClaim.
func (*WorkloadServiceClaim) DeepCopyInto ¶
func (in *WorkloadServiceClaim) DeepCopyInto(out *WorkloadServiceClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadServiceClaimReference ¶
type WorkloadServiceClaimReference struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Name string `json:"name"` }
func (*WorkloadServiceClaimReference) DeepCopy ¶
func (in *WorkloadServiceClaimReference) DeepCopy() *WorkloadServiceClaimReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadServiceClaimReference.
func (*WorkloadServiceClaimReference) DeepCopyInto ¶
func (in *WorkloadServiceClaimReference) DeepCopyInto(out *WorkloadServiceClaimReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadSpec ¶
type WorkloadSpec struct { Params []Param `json:"params,omitempty"` Source *Source `json:"source,omitempty"` Build *WorkloadBuild `json:"build,omitempty"` Env []corev1.EnvVar `json:"env,omitempty"` // Image is a pre-built image in a registry. It is an alternative to defining source // code. Image string `json:"image,omitempty"` Resources *corev1.ResourceRequirements `json:"resources,omitempty"` ServiceAccountName *string `json:"serviceAccountName,omitempty"` ServiceClaims []WorkloadServiceClaim `json:"serviceClaims,omitempty"` }
func (*WorkloadSpec) DeepCopy ¶
func (in *WorkloadSpec) DeepCopy() *WorkloadSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSpec.
func (*WorkloadSpec) DeepCopyInto ¶
func (in *WorkloadSpec) DeepCopyInto(out *WorkloadSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkloadSpec) DeleteServiceClaim ¶
func (w *WorkloadSpec) DeleteServiceClaim(name string)
func (*WorkloadSpec) GetParam ¶
func (w *WorkloadSpec) GetParam(key string, value interface{})
func (*WorkloadSpec) Merge ¶
func (w *WorkloadSpec) Merge(updates *WorkloadSpec)
func (*WorkloadSpec) MergeAnnotationParams ¶
func (w *WorkloadSpec) MergeAnnotationParams(key string, value string)
func (*WorkloadSpec) MergeBuildEnv ¶
func (w *WorkloadSpec) MergeBuildEnv(env corev1.EnvVar)
func (*WorkloadSpec) MergeEnv ¶
func (w *WorkloadSpec) MergeEnv(env corev1.EnvVar)
func (*WorkloadSpec) MergeGit ¶
func (w *WorkloadSpec) MergeGit(git GitSource)
func (*WorkloadSpec) MergeImage ¶
func (w *WorkloadSpec) MergeImage(image string)
func (*WorkloadSpec) MergeParams ¶
func (w *WorkloadSpec) MergeParams(key string, value interface{})
func (*WorkloadSpec) MergeResources ¶
func (w *WorkloadSpec) MergeResources(r *corev1.ResourceRequirements)
func (*WorkloadSpec) MergeServiceAccountName ¶ added in v0.7.0
func (w *WorkloadSpec) MergeServiceAccountName(serviceAccountName string)
func (*WorkloadSpec) MergeServiceClaim ¶
func (w *WorkloadSpec) MergeServiceClaim(sc WorkloadServiceClaim)
func (*WorkloadSpec) MergeSourceImage ¶
func (w *WorkloadSpec) MergeSourceImage(image string)
func (*WorkloadSpec) MergeSubPath ¶ added in v0.6.0
func (w *WorkloadSpec) MergeSubPath(subPath string)
func (*WorkloadSpec) RemoveAnnotationParams ¶
func (w *WorkloadSpec) RemoveAnnotationParams(name string)
func (*WorkloadSpec) RemoveBuildEnv ¶
func (w *WorkloadSpec) RemoveBuildEnv(name string)
func (*WorkloadSpec) RemoveEnv ¶
func (w *WorkloadSpec) RemoveEnv(name string)
func (*WorkloadSpec) RemoveParam ¶
func (w *WorkloadSpec) RemoveParam(name string)
func (*WorkloadSpec) ResetSource ¶
func (w *WorkloadSpec) ResetSource()
func (*WorkloadSpec) Validate ¶
func (w *WorkloadSpec) Validate() validation.FieldErrors
type WorkloadStatus ¶
type WorkloadStatus struct { // ObservedGeneration refers to the metadata.Generation of the spec that resulted in // the current `status`. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions describing this resource's reconcile state. The top level condition is // of type `Ready`, and follows these Kubernetes conventions: // https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties Conditions []metav1.Condition `json:"conditions,omitempty"` // SupplyChainRef is the Supply Chain resource that was used when this status was set. SupplyChainRef ObjectReference `json:"supplyChainRef,omitempty"` // Resources contain references to the objects created by the Supply Chain and the templates used to create them. // It also contains Inputs and Outputs that were passed between the templates as the Supply Chain was processed. Resources []RealizedResource `json:"resources,omitempty"` }
func (*WorkloadStatus) DeepCopy ¶
func (in *WorkloadStatus) DeepCopy() *WorkloadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadStatus.
func (*WorkloadStatus) DeepCopyInto ¶
func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.