Documentation ¶
Index ¶
- Constants
- Variables
- func GetAPITemplate(templateKind string) (client.Object, error)
- type BlueprintParam
- type ClusterConfigTemplate
- func (in *ClusterConfigTemplate) DeepCopy() *ClusterConfigTemplate
- func (in *ClusterConfigTemplate) DeepCopyInto(out *ClusterConfigTemplate)
- func (in *ClusterConfigTemplate) DeepCopyObject() runtime.Object
- func (c *ClusterConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (c *ClusterConfigTemplate) ValidateCreate() error
- func (c *ClusterConfigTemplate) ValidateDelete() error
- func (c *ClusterConfigTemplate) ValidateUpdate(_ runtime.Object) error
- type ClusterConfigTemplateList
- type ClusterDelivery
- func (in *ClusterDelivery) DeepCopy() *ClusterDelivery
- func (in *ClusterDelivery) DeepCopyInto(out *ClusterDelivery)
- func (in *ClusterDelivery) DeepCopyObject() runtime.Object
- func (c *ClusterDelivery) GetSelectors() LegacySelector
- func (c *ClusterDelivery) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (c *ClusterDelivery) ValidateCreate() error
- func (c *ClusterDelivery) ValidateDelete() error
- func (c *ClusterDelivery) ValidateUpdate(_ runtime.Object) error
- type ClusterDeliveryList
- type ClusterDeploymentTemplate
- func (in *ClusterDeploymentTemplate) DeepCopy() *ClusterDeploymentTemplate
- func (in *ClusterDeploymentTemplate) DeepCopyInto(out *ClusterDeploymentTemplate)
- func (in *ClusterDeploymentTemplate) DeepCopyObject() runtime.Object
- func (c *ClusterDeploymentTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (c *ClusterDeploymentTemplate) ValidateCreate() error
- func (c *ClusterDeploymentTemplate) ValidateDelete() error
- func (c *ClusterDeploymentTemplate) ValidateUpdate(_ runtime.Object) error
- type ClusterDeploymentTemplateList
- type ClusterImageTemplate
- func (in *ClusterImageTemplate) DeepCopy() *ClusterImageTemplate
- func (in *ClusterImageTemplate) DeepCopyInto(out *ClusterImageTemplate)
- func (in *ClusterImageTemplate) DeepCopyObject() runtime.Object
- func (c *ClusterImageTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (c *ClusterImageTemplate) ValidateCreate() error
- func (c *ClusterImageTemplate) ValidateDelete() error
- func (c *ClusterImageTemplate) ValidateUpdate(_ runtime.Object) error
- type ClusterImageTemplateList
- type ClusterRunTemplate
- func (in *ClusterRunTemplate) DeepCopy() *ClusterRunTemplate
- func (in *ClusterRunTemplate) DeepCopyInto(out *ClusterRunTemplate)
- func (in *ClusterRunTemplate) DeepCopyObject() runtime.Object
- func (c *ClusterRunTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (c *ClusterRunTemplate) ValidateCreate() error
- func (c *ClusterRunTemplate) ValidateDelete() error
- func (c *ClusterRunTemplate) ValidateUpdate(_ runtime.Object) error
- type ClusterRunTemplateList
- type ClusterSourceTemplate
- func (in *ClusterSourceTemplate) DeepCopy() *ClusterSourceTemplate
- func (in *ClusterSourceTemplate) DeepCopyInto(out *ClusterSourceTemplate)
- func (in *ClusterSourceTemplate) DeepCopyObject() runtime.Object
- func (c *ClusterSourceTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (c *ClusterSourceTemplate) ValidateCreate() error
- func (c *ClusterSourceTemplate) ValidateDelete() error
- func (c *ClusterSourceTemplate) ValidateUpdate(_ runtime.Object) error
- type ClusterSourceTemplateList
- type ClusterSupplyChain
- func (in *ClusterSupplyChain) DeepCopy() *ClusterSupplyChain
- func (in *ClusterSupplyChain) DeepCopyInto(out *ClusterSupplyChain)
- func (in *ClusterSupplyChain) DeepCopyObject() runtime.Object
- func (c *ClusterSupplyChain) GetSelectors() LegacySelector
- func (c *ClusterSupplyChain) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (c *ClusterSupplyChain) ValidateCreate() error
- func (c *ClusterSupplyChain) ValidateDelete() error
- func (c *ClusterSupplyChain) ValidateUpdate(_ runtime.Object) error
- type ClusterSupplyChainList
- type ClusterTemplate
- func (in *ClusterTemplate) DeepCopy() *ClusterTemplate
- func (in *ClusterTemplate) DeepCopyInto(out *ClusterTemplate)
- func (in *ClusterTemplate) DeepCopyObject() runtime.Object
- func (c *ClusterTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (c *ClusterTemplate) ValidateCreate() error
- func (c *ClusterTemplate) ValidateDelete() error
- func (c *ClusterTemplate) ValidateUpdate(_ runtime.Object) error
- type ClusterTemplateList
- type Condition
- type ConfigTemplateSpec
- type Deliverable
- type DeliverableList
- type DeliverableSpec
- type DeliverableStatus
- type DeliveryResource
- type DeliverySpec
- type DeliveryStatus
- type DeliveryTemplateReference
- type DeploymentReference
- type DeploymentSpec
- type FieldSelectorOperator
- type FieldSelectorRequirement
- type GitRef
- type GitSource
- type ImageTemplateSpec
- type Input
- type LegacySelector
- type ObjectReference
- type ObservedCompletion
- type ObservedMatch
- type Output
- type OwnerParam
- type OwnerStatus
- type RealizedResource
- type ResourceReference
- type ResourceSelector
- type ResourceType
- type RetentionPolicy
- type RunTemplateSpec
- type Runnable
- type RunnableList
- type RunnableSpec
- type RunnableStatus
- type Selector
- type ServiceAccountRef
- type Source
- type SourceTemplateSpec
- type SupplyChainResource
- type SupplyChainSpec
- type SupplyChainStatus
- type SupplyChainTemplateReference
- type TemplateOption
- type TemplateParam
- type TemplateParams
- type TemplateReference
- type TemplateSpec
- type Workload
- type WorkloadBuild
- type WorkloadList
- type WorkloadServiceClaim
- type WorkloadServiceClaimReference
- type WorkloadSpec
- type WorkloadStatus
Constants ¶
const ( DeliveryReady = "Ready" DeliveryTemplatesReady = "TemplatesReady" )
const ( ReadyDeliveryTemplatesReadyReason = "Ready" NotFoundDeliveryTemplatesReadyReason = "TemplatesNotFound" )
const ( SupplyChainReady = "Ready" SupplyChainTemplatesReady = "TemplatesReady" )
const ( ReadyTemplatesReadyReason = "Ready" NotFoundTemplatesReadyReason = "TemplatesNotFound" )
const ( DeliverableReady = "Ready" DeliverableDeliveryReady = "DeliveryReady" DeliverableResourcesSubmitted = "ResourcesSubmitted" )
const ( ReadyDeliveryReason = "Ready" DeliverableLabelsMissingDeliveryReason = "DeliverableLabelsMissing" NotFoundDeliveryReadyReason = "DeliveryNotFound" MultipleMatchesDeliveryReadyReason = "MultipleDeliveryMatches" )
const ( CompleteResourcesSubmittedReason = "ResourceSubmissionComplete" TemplateObjectRetrievalFailureResourcesSubmittedReason = "TemplateObjectRetrievalFailure" MissingValueAtPathResourcesSubmittedReason = "MissingValueAtPath" TemplateStampFailureResourcesSubmittedReason = "TemplateStampFailure" TemplateRejectedByAPIServerResourcesSubmittedReason = "TemplateRejectedByAPIServer" UnknownErrorResourcesSubmittedReason = "UnknownError" DeploymentConditionNotMetResourcesSubmittedReason = "ConditionNotMet" DeploymentFailedConditionMetResourcesSubmittedReason = "FailedConditionMet" )
const ( RunnableReady = "Ready" RunTemplateReady = "RunTemplateReady" )
const ( ReadyRunTemplateReason = "Ready" NotFoundRunTemplateReason = "RunTemplateNotFound" StampedObjectRejectedByAPIServerRunTemplateReason = "StampedObjectRejectedByAPIServer" OutputPathNotSatisfiedRunTemplateReason = "OutputPathNotSatisfied" TemplateStampFailureRunTemplateReason = "TemplateStampFailure" FailedToListCreatedObjectsReason = "FailedToListCreatedObjects" UnknownErrorReason = "UnknownError" ClientBuilderErrorResourcesSubmittedReason = "ClientBuilderError" )
const ( WorkloadReady = "Ready" WorkloadSupplyChainReady = "SupplyChainReady" WorkloadResourceSubmitted = "ResourcesSubmitted" )
const ( ReadySupplyChainReason = "Ready" WorkloadLabelsMissingSupplyChainReason = "WorkloadLabelsMissing" NotFoundSupplyChainReadyReason = "SupplyChainNotFound" MultipleMatchesSupplyChainReadyReason = "MultipleSupplyChainMatches" ServiceAccountSecretErrorResourcesSubmittedReason = "ServiceAccountSecretError" ResourceRealizerBuilderErrorResourcesSubmittedReason = "ResourceRealizerBuilderError" ResolveTemplateOptionsErrorResourcesSubmittedReason = "ResolveTemplateOptionsError" TemplateOptionsMatchErrorResourcesSubmittedReason = "TemplateOptionsMatchError" )
Variables ¶
var ( SchemeGroupVersion = schema.GroupVersion{ Group: "carto.run", Version: "v1alpha1", } SchemeBuilder = &scheme.Builder{ GroupVersion: SchemeGroupVersion, } AddToScheme = SchemeBuilder.AddToScheme )
var ValidDeliverablePaths = map[string]bool{ "spec.source": true, "spec.source.git": true, "spec.source.git.url": true, "spec.source.git.ref": true, "spec.source.git.ref.branch": true, "spec.source.git.ref.tag": true, "spec.source.git.ref.commit": true, "spec.source.image": true, "spec.source.subPath": true, "spec.serviceAccountName": true, }
var ValidDeliverablePrefixes = []string{
"spec.params",
"metadata",
}
var ValidDeliveryTemplates = []client.Object{ &ClusterSourceTemplate{}, &ClusterDeploymentTemplate{}, &ClusterTemplate{}, &ClusterConfigTemplate{}, }
var ValidSupplyChainTemplates = []client.Object{ &ClusterSourceTemplate{}, &ClusterImageTemplate{}, &ClusterConfigTemplate{}, &ClusterTemplate{}, }
var ValidWorkloadPaths = map[string]bool{ "spec.source": true, "spec.source.git": true, "spec.source.git.url": true, "spec.source.git.ref": true, "spec.source.git.ref.branch": true, "spec.source.git.ref.tag": true, "spec.source.git.ref.commit": true, "spec.source.image": true, "spec.source.subPath": true, "spec.build": true, "spec.image": true, "spec.serviceAccountName": true, }
ValidWorkloadPaths Note: this needs to be updated anytime the spec changes
var ValidWorkloadPrefixes = []string{
"spec.params",
"spec.build.env",
"spec.env",
"spec.resources",
"spec.serviceClaims",
"metadata",
}
ValidWorkloadPrefixes Note: this needs to be updated anytime the spec changes
Functions ¶
Types ¶
type BlueprintParam ¶ added in v0.2.0
type BlueprintParam struct { // Name of the parameter. // Should match a template parameter name. Name string `json:"name"` // Value of the parameter. // If specified, owner properties are ignored. Value *apiextensionsv1.JSON `json:"value,omitempty"` // DefaultValue of the parameter. // Causes the parameter to be optional; If the Owner does not specify // this parameter, this value is used. DefaultValue *apiextensionsv1.JSON `json:"default,omitempty"` }
func (*BlueprintParam) DeepCopy ¶ added in v0.2.0
func (in *BlueprintParam) DeepCopy() *BlueprintParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlueprintParam.
func (*BlueprintParam) DeepCopyInto ¶ added in v0.2.0
func (in *BlueprintParam) DeepCopyInto(out *BlueprintParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterConfigTemplate ¶
type ClusterConfigTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec describes the config template. // More info: https://cartographer.sh/docs/latest/reference/template/#clusterconfigtemplate Spec ConfigTemplateSpec `json:"spec"` }
func (*ClusterConfigTemplate) DeepCopy ¶
func (in *ClusterConfigTemplate) DeepCopy() *ClusterConfigTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigTemplate.
func (*ClusterConfigTemplate) DeepCopyInto ¶
func (in *ClusterConfigTemplate) DeepCopyInto(out *ClusterConfigTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterConfigTemplate) DeepCopyObject ¶
func (in *ClusterConfigTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterConfigTemplate) SetupWebhookWithManager ¶ added in v0.4.0
func (c *ClusterConfigTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterConfigTemplate) ValidateCreate ¶ added in v0.0.5
func (c *ClusterConfigTemplate) ValidateCreate() error
func (*ClusterConfigTemplate) ValidateDelete ¶ added in v0.0.5
func (c *ClusterConfigTemplate) ValidateDelete() error
func (*ClusterConfigTemplate) ValidateUpdate ¶ added in v0.0.5
func (c *ClusterConfigTemplate) ValidateUpdate(_ runtime.Object) error
type ClusterConfigTemplateList ¶
type ClusterConfigTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterConfigTemplate `json:"items"` }
func (*ClusterConfigTemplateList) DeepCopy ¶
func (in *ClusterConfigTemplateList) DeepCopy() *ClusterConfigTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigTemplateList.
func (*ClusterConfigTemplateList) DeepCopyInto ¶
func (in *ClusterConfigTemplateList) DeepCopyInto(out *ClusterConfigTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterConfigTemplateList) DeepCopyObject ¶
func (in *ClusterConfigTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterDelivery ¶ added in v0.0.7
type ClusterDelivery struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec describes the delivery. // More info: https://cartographer.sh/docs/latest/reference/deliverable/#clusterdelivery Spec DeliverySpec `json:"spec"` // Status conforms to the Kubernetes conventions: // https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties Status DeliveryStatus `json:"status,omitempty"` }
func (*ClusterDelivery) DeepCopy ¶ added in v0.0.7
func (in *ClusterDelivery) DeepCopy() *ClusterDelivery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDelivery.
func (*ClusterDelivery) DeepCopyInto ¶ added in v0.0.7
func (in *ClusterDelivery) DeepCopyInto(out *ClusterDelivery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDelivery) DeepCopyObject ¶ added in v0.0.7
func (in *ClusterDelivery) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterDelivery) GetSelectors ¶ added in v0.3.0
func (c *ClusterDelivery) GetSelectors() LegacySelector
func (*ClusterDelivery) SetupWebhookWithManager ¶ added in v0.4.0
func (c *ClusterDelivery) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterDelivery) ValidateCreate ¶ added in v0.0.7
func (c *ClusterDelivery) ValidateCreate() error
func (*ClusterDelivery) ValidateDelete ¶ added in v0.0.7
func (c *ClusterDelivery) ValidateDelete() error
func (*ClusterDelivery) ValidateUpdate ¶ added in v0.0.7
func (c *ClusterDelivery) ValidateUpdate(_ runtime.Object) error
type ClusterDeliveryList ¶ added in v0.0.7
type ClusterDeliveryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterDelivery `json:"items"` }
func (*ClusterDeliveryList) DeepCopy ¶ added in v0.0.7
func (in *ClusterDeliveryList) DeepCopy() *ClusterDeliveryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDeliveryList.
func (*ClusterDeliveryList) DeepCopyInto ¶ added in v0.0.7
func (in *ClusterDeliveryList) DeepCopyInto(out *ClusterDeliveryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDeliveryList) DeepCopyObject ¶ added in v0.0.7
func (in *ClusterDeliveryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterDeploymentTemplate ¶ added in v0.0.7
type ClusterDeploymentTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec describes the deployment template. // More info: https://cartographer.sh/docs/latest/reference/template/#clusterdeploymenttemplate Spec DeploymentSpec `json:"spec"` }
func (*ClusterDeploymentTemplate) DeepCopy ¶ added in v0.0.7
func (in *ClusterDeploymentTemplate) DeepCopy() *ClusterDeploymentTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDeploymentTemplate.
func (*ClusterDeploymentTemplate) DeepCopyInto ¶ added in v0.0.7
func (in *ClusterDeploymentTemplate) DeepCopyInto(out *ClusterDeploymentTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDeploymentTemplate) DeepCopyObject ¶ added in v0.0.7
func (in *ClusterDeploymentTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterDeploymentTemplate) SetupWebhookWithManager ¶ added in v0.4.0
func (c *ClusterDeploymentTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterDeploymentTemplate) ValidateCreate ¶ added in v0.0.8
func (c *ClusterDeploymentTemplate) ValidateCreate() error
func (*ClusterDeploymentTemplate) ValidateDelete ¶ added in v0.0.8
func (c *ClusterDeploymentTemplate) ValidateDelete() error
func (*ClusterDeploymentTemplate) ValidateUpdate ¶ added in v0.0.8
func (c *ClusterDeploymentTemplate) ValidateUpdate(_ runtime.Object) error
type ClusterDeploymentTemplateList ¶ added in v0.0.7
type ClusterDeploymentTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterDeploymentTemplate `json:"items"` }
func (*ClusterDeploymentTemplateList) DeepCopy ¶ added in v0.0.7
func (in *ClusterDeploymentTemplateList) DeepCopy() *ClusterDeploymentTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDeploymentTemplateList.
func (*ClusterDeploymentTemplateList) DeepCopyInto ¶ added in v0.0.7
func (in *ClusterDeploymentTemplateList) DeepCopyInto(out *ClusterDeploymentTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDeploymentTemplateList) DeepCopyObject ¶ added in v0.0.7
func (in *ClusterDeploymentTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterImageTemplate ¶
type ClusterImageTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec describes the image template. // More info: https://cartographer.sh/docs/latest/reference/template/#clusterimagetemplate Spec ImageTemplateSpec `json:"spec"` }
func (*ClusterImageTemplate) DeepCopy ¶
func (in *ClusterImageTemplate) DeepCopy() *ClusterImageTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterImageTemplate.
func (*ClusterImageTemplate) DeepCopyInto ¶
func (in *ClusterImageTemplate) DeepCopyInto(out *ClusterImageTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterImageTemplate) DeepCopyObject ¶
func (in *ClusterImageTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterImageTemplate) SetupWebhookWithManager ¶ added in v0.4.0
func (c *ClusterImageTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterImageTemplate) ValidateCreate ¶ added in v0.0.5
func (c *ClusterImageTemplate) ValidateCreate() error
func (*ClusterImageTemplate) ValidateDelete ¶ added in v0.0.5
func (c *ClusterImageTemplate) ValidateDelete() error
func (*ClusterImageTemplate) ValidateUpdate ¶ added in v0.0.5
func (c *ClusterImageTemplate) ValidateUpdate(_ runtime.Object) error
type ClusterImageTemplateList ¶
type ClusterImageTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterImageTemplate `json:"items"` }
func (*ClusterImageTemplateList) DeepCopy ¶
func (in *ClusterImageTemplateList) DeepCopy() *ClusterImageTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterImageTemplateList.
func (*ClusterImageTemplateList) DeepCopyInto ¶
func (in *ClusterImageTemplateList) DeepCopyInto(out *ClusterImageTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterImageTemplateList) DeepCopyObject ¶
func (in *ClusterImageTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterRunTemplate ¶ added in v0.0.7
type ClusterRunTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec describes the run template. // More info: https://cartographer.sh/docs/latest/reference/runnable/#clusterruntemplate Spec RunTemplateSpec `json:"spec"` }
func (*ClusterRunTemplate) DeepCopy ¶ added in v0.0.7
func (in *ClusterRunTemplate) DeepCopy() *ClusterRunTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRunTemplate.
func (*ClusterRunTemplate) DeepCopyInto ¶ added in v0.0.7
func (in *ClusterRunTemplate) DeepCopyInto(out *ClusterRunTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterRunTemplate) DeepCopyObject ¶ added in v0.0.7
func (in *ClusterRunTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterRunTemplate) SetupWebhookWithManager ¶ added in v0.4.0
func (c *ClusterRunTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterRunTemplate) ValidateCreate ¶ added in v0.3.0
func (c *ClusterRunTemplate) ValidateCreate() error
func (*ClusterRunTemplate) ValidateDelete ¶ added in v0.3.0
func (c *ClusterRunTemplate) ValidateDelete() error
func (*ClusterRunTemplate) ValidateUpdate ¶ added in v0.3.0
func (c *ClusterRunTemplate) ValidateUpdate(_ runtime.Object) error
type ClusterRunTemplateList ¶ added in v0.0.7
type ClusterRunTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterRunTemplate `json:"items"` }
func (*ClusterRunTemplateList) DeepCopy ¶ added in v0.0.7
func (in *ClusterRunTemplateList) DeepCopy() *ClusterRunTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRunTemplateList.
func (*ClusterRunTemplateList) DeepCopyInto ¶ added in v0.0.7
func (in *ClusterRunTemplateList) DeepCopyInto(out *ClusterRunTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterRunTemplateList) DeepCopyObject ¶ added in v0.0.7
func (in *ClusterRunTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterSourceTemplate ¶
type ClusterSourceTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec describes the source template. // More info: https://cartographer.sh/docs/latest/reference/template/#clustersourcetemplate Spec SourceTemplateSpec `json:"spec"` }
func (*ClusterSourceTemplate) DeepCopy ¶
func (in *ClusterSourceTemplate) DeepCopy() *ClusterSourceTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSourceTemplate.
func (*ClusterSourceTemplate) DeepCopyInto ¶
func (in *ClusterSourceTemplate) DeepCopyInto(out *ClusterSourceTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterSourceTemplate) DeepCopyObject ¶
func (in *ClusterSourceTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterSourceTemplate) SetupWebhookWithManager ¶ added in v0.4.0
func (c *ClusterSourceTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterSourceTemplate) ValidateCreate ¶ added in v0.0.5
func (c *ClusterSourceTemplate) ValidateCreate() error
func (*ClusterSourceTemplate) ValidateDelete ¶ added in v0.0.5
func (c *ClusterSourceTemplate) ValidateDelete() error
func (*ClusterSourceTemplate) ValidateUpdate ¶ added in v0.0.5
func (c *ClusterSourceTemplate) ValidateUpdate(_ runtime.Object) error
type ClusterSourceTemplateList ¶
type ClusterSourceTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterSourceTemplate `json:"items"` }
func (*ClusterSourceTemplateList) DeepCopy ¶
func (in *ClusterSourceTemplateList) DeepCopy() *ClusterSourceTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSourceTemplateList.
func (*ClusterSourceTemplateList) DeepCopyInto ¶
func (in *ClusterSourceTemplateList) DeepCopyInto(out *ClusterSourceTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterSourceTemplateList) DeepCopyObject ¶
func (in *ClusterSourceTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterSupplyChain ¶
type ClusterSupplyChain struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec describes the suppply chain. // More info: https://cartographer.sh/docs/latest/reference/workload/#clustersupplychain Spec SupplyChainSpec `json:"spec"` // Status conforms to the Kubernetes conventions: // https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties 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) GetSelectors ¶ added in v0.3.0
func (c *ClusterSupplyChain) GetSelectors() LegacySelector
func (*ClusterSupplyChain) SetupWebhookWithManager ¶ added in v0.4.0
func (c *ClusterSupplyChain) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterSupplyChain) ValidateCreate ¶
func (c *ClusterSupplyChain) ValidateCreate() error
func (*ClusterSupplyChain) ValidateDelete ¶
func (c *ClusterSupplyChain) ValidateDelete() error
func (*ClusterSupplyChain) ValidateUpdate ¶
func (c *ClusterSupplyChain) ValidateUpdate(_ runtime.Object) error
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 ClusterTemplate ¶
type ClusterTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec describes the template. // More info: https://cartographer.sh/docs/latest/reference/template/#clustertemplate Spec TemplateSpec `json:"spec"` }
func (*ClusterTemplate) DeepCopy ¶
func (in *ClusterTemplate) DeepCopy() *ClusterTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplate.
func (*ClusterTemplate) DeepCopyInto ¶
func (in *ClusterTemplate) DeepCopyInto(out *ClusterTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTemplate) DeepCopyObject ¶
func (in *ClusterTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterTemplate) SetupWebhookWithManager ¶ added in v0.4.0
func (c *ClusterTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterTemplate) ValidateCreate ¶ added in v0.0.5
func (c *ClusterTemplate) ValidateCreate() error
func (*ClusterTemplate) ValidateDelete ¶ added in v0.0.5
func (c *ClusterTemplate) ValidateDelete() error
func (*ClusterTemplate) ValidateUpdate ¶ added in v0.0.5
func (c *ClusterTemplate) ValidateUpdate(_ runtime.Object) error
type ClusterTemplateList ¶
type ClusterTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterTemplate `json:"items"` }
func (*ClusterTemplateList) DeepCopy ¶
func (in *ClusterTemplateList) DeepCopy() *ClusterTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateList.
func (*ClusterTemplateList) DeepCopyInto ¶
func (in *ClusterTemplateList) DeepCopyInto(out *ClusterTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTemplateList) DeepCopyObject ¶
func (in *ClusterTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Condition ¶ added in v0.0.8
type Condition struct { // Key is a jsonPath expression pointing to the field to inspect on the templated // object, eg: 'status.conditions[?(@.type=="Succeeded")].status' Key string `json:"key"` // Value is the expected value that, when matching the key's actual value, // makes this condition true. Value string `json:"value"` }
func (*Condition) DeepCopy ¶ added in v0.0.8
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶ added in v0.0.8
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigTemplateSpec ¶
type ConfigTemplateSpec struct { TemplateSpec `json:",inline"` // ConfigPath is a path into the templated object's // data that contains valid yaml. This // is typically the information that will configure the // components of the deployable image. // ConfigPath is specified in jsonpath format, eg: .data ConfigPath string `json:"configPath"` }
func (*ConfigTemplateSpec) DeepCopy ¶
func (in *ConfigTemplateSpec) DeepCopy() *ConfigTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigTemplateSpec.
func (*ConfigTemplateSpec) DeepCopyInto ¶
func (in *ConfigTemplateSpec) DeepCopyInto(out *ConfigTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Deliverable ¶
type Deliverable struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec describes the deliverable. // More info: https://cartographer.sh/docs/latest/reference/workload/#deliverable Spec DeliverableSpec `json:"spec"` // Status conforms to the Kubernetes conventions: // https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties Status DeliverableStatus `json:"status,omitempty"` }
func (*Deliverable) DeepCopy ¶
func (in *Deliverable) DeepCopy() *Deliverable
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deliverable.
func (*Deliverable) DeepCopyInto ¶
func (in *Deliverable) DeepCopyInto(out *Deliverable)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Deliverable) DeepCopyObject ¶
func (in *Deliverable) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeliverableList ¶
type DeliverableList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Deliverable `json:"items"` }
func (*DeliverableList) DeepCopy ¶
func (in *DeliverableList) DeepCopy() *DeliverableList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliverableList.
func (*DeliverableList) DeepCopyInto ¶
func (in *DeliverableList) DeepCopyInto(out *DeliverableList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeliverableList) DeepCopyObject ¶
func (in *DeliverableList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeliverableSpec ¶ added in v0.0.7
type DeliverableSpec struct { // Additional parameters. // See: https://cartographer.sh/docs/latest/architecture/#parameter-hierarchy // +optional Params []OwnerParam `json:"params,omitempty"` // The location of the source code for the workload. Specify // one of `spec.source` or `spec.image` // +optional Source *Source `json:"source,omitempty"` // ServiceAccountName refers to the Service account with permissions to create resources // submitted by the supply chain. // // If not set, Cartographer will use serviceAccountName from delivery. // // If that is also not set, Cartographer will use the default service account in the // deliverable's namespace. // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` }
func (*DeliverableSpec) DeepCopy ¶ added in v0.0.7
func (in *DeliverableSpec) DeepCopy() *DeliverableSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliverableSpec.
func (*DeliverableSpec) DeepCopyInto ¶ added in v0.0.7
func (in *DeliverableSpec) DeepCopyInto(out *DeliverableSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeliverableStatus ¶ added in v0.0.7
type DeliverableStatus struct { OwnerStatus `json:",inline"` // DeliveryRef is the Delivery resource that was used when this status was set. DeliveryRef ObjectReference `json:"deliveryRef,omitempty"` // Resources contain references to the objects created by the Delivery and the templates used to create them. // It also contains Inputs and Outputs that were passed between the templates as the Delivery was processed. Resources []RealizedResource `json:"resources,omitempty"` }
func (*DeliverableStatus) DeepCopy ¶ added in v0.0.7
func (in *DeliverableStatus) DeepCopy() *DeliverableStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliverableStatus.
func (*DeliverableStatus) DeepCopyInto ¶ added in v0.0.7
func (in *DeliverableStatus) DeepCopyInto(out *DeliverableStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeliveryResource ¶ added in v0.1.0
type DeliveryResource struct { // Name of the resource. Used as a reference for inputs, as well as being // the name presented in deliverable statuses to identify this resource. Name string `json:"name"` // TemplateRef identifies the template used to produce this resource TemplateRef DeliveryTemplateReference `json:"templateRef"` // Params are a list of parameters to provide to the template in TemplateRef // Template params do not have to be specified here, unless you want to // force a particular value, or add a default value. // // Parameters are consumed in a template with the syntax: // $(params.<name>)$ Params []BlueprintParam `json:"params,omitempty"` // Sources is a list of references to other 'source' resources in this list. // A source resource has the kind ClusterSourceTemplate or ClusterDeploymentTemplate // // In a template, sources can be consumed as: // $(sources.<name>.url)$ and $(sources.<name>.revision)$ // // If there is only one source, it can be consumed as: // $(source.url)$ and $(source.revision)$ Sources []ResourceReference `json:"sources,omitempty"` // Deployment is a reference to a 'deployment' resource. // A deployment resource has the kind ClusterDeploymentTemplate // // In a template, the deployment can be consumed as: // $(deployment.url)$ and $(deployment.revision)$ Deployment *DeploymentReference `json:"deployment,omitempty"` // Configs is a list of references to other 'config' resources in this list. // A config resource has the kind ClusterConfigTemplate // // In a template, configs can be consumed as: // $(configs.<name>.config)$ // // If there is only one image, it can be consumed as: // $(config)$ Configs []ResourceReference `json:"configs,omitempty"` }
func (*DeliveryResource) DeepCopy ¶ added in v0.1.0
func (in *DeliveryResource) DeepCopy() *DeliveryResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliveryResource.
func (*DeliveryResource) DeepCopyInto ¶ added in v0.1.0
func (in *DeliveryResource) DeepCopyInto(out *DeliveryResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeliverySpec ¶ added in v0.1.0
type DeliverySpec struct { LegacySelector `json:",inline"` // Resources that are responsible for deploying and validating // the deliverable Resources []DeliveryResource `json:"resources"` // Additional parameters. // See: https://cartographer.sh/docs/latest/architecture/#parameter-hierarchy // +optional Params []BlueprintParam `json:"params,omitempty"` // ServiceAccountName refers to the Service account with permissions to create resources // submitted by the supply chain. // // If not set, Cartographer will use serviceAccountName from supply chain. // // If that is also not set, Cartographer will use the default service account in the // workload's namespace. // +optional ServiceAccountRef ServiceAccountRef `json:"serviceAccountRef,omitempty"` }
func (*DeliverySpec) DeepCopy ¶ added in v0.1.0
func (in *DeliverySpec) DeepCopy() *DeliverySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliverySpec.
func (*DeliverySpec) DeepCopyInto ¶ added in v0.1.0
func (in *DeliverySpec) DeepCopyInto(out *DeliverySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeliveryStatus ¶ added in v0.1.0
type DeliveryStatus struct { ObservedGeneration int64 `json:"observedGeneration,omitempty"` Conditions []metav1.Condition `json:"conditions,omitempty"` }
func (*DeliveryStatus) DeepCopy ¶ added in v0.1.0
func (in *DeliveryStatus) DeepCopy() *DeliveryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliveryStatus.
func (*DeliveryStatus) DeepCopyInto ¶ added in v0.1.0
func (in *DeliveryStatus) DeepCopyInto(out *DeliveryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeliveryTemplateReference ¶ added in v0.1.0
type DeliveryTemplateReference struct { // Kind of the template to apply // +kubebuilder:validation:Enum=ClusterSourceTemplate;ClusterDeploymentTemplate;ClusterTemplate;ClusterConfigTemplate Kind string `json:"kind"` // Name of the template to apply // +kubebuilder:validation:MinLength=1 Name string `json:"name,omitempty"` // Options is a list of template names and Selector. The templates must all be of type Kind. // A template will be selected if the deliverable matches the specified selector. // Only one template can be selected. // Only one of Name and Options can be specified. // +kubebuilder:validation:MinItems=2 Options []TemplateOption `json:"options,omitempty"` }
func (*DeliveryTemplateReference) DeepCopy ¶ added in v0.1.0
func (in *DeliveryTemplateReference) DeepCopy() *DeliveryTemplateReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliveryTemplateReference.
func (*DeliveryTemplateReference) DeepCopyInto ¶ added in v0.1.0
func (in *DeliveryTemplateReference) DeepCopyInto(out *DeliveryTemplateReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentReference ¶ added in v0.0.8
type DeploymentReference struct {
Resource string `json:"resource"`
}
func (*DeploymentReference) DeepCopy ¶ added in v0.0.8
func (in *DeploymentReference) DeepCopy() *DeploymentReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentReference.
func (*DeploymentReference) DeepCopyInto ¶ added in v0.0.8
func (in *DeploymentReference) DeepCopyInto(out *DeploymentReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentSpec ¶ added in v0.0.8
type DeploymentSpec struct { TemplateSpec `json:",inline"` // ObservedMatches describe the criteria for determining that the templated object // completed configuration of environment. // These criteria assert completion when an output (usually a field in .status) // matches an input (usually a field in .spec) // Cannot specify both ObservedMatches and ObservedCompletion. ObservedMatches []ObservedMatch `json:"observedMatches,omitempty"` // ObservedCompletion describe the criteria for determining that the templated object // completed configuration of environment. // These criteria assert completion when metadata.Generation and status.ObservedGeneration // match, AND success or failure criteria match. // Cannot specify both ObservedMatches and ObservedCompletion. ObservedCompletion *ObservedCompletion `json:"observedCompletion,omitempty"` }
func (*DeploymentSpec) DeepCopy ¶ added in v0.0.8
func (in *DeploymentSpec) DeepCopy() *DeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpec.
func (*DeploymentSpec) DeepCopyInto ¶ added in v0.0.8
func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FieldSelectorOperator ¶ added in v0.3.0
type FieldSelectorOperator string
const ( FieldSelectorOpIn FieldSelectorOperator = "In" FieldSelectorOpNotIn FieldSelectorOperator = "NotIn" FieldSelectorOpExists FieldSelectorOperator = "Exists" FieldSelectorOpDoesNotExist FieldSelectorOperator = "DoesNotExist" )
type FieldSelectorRequirement ¶ added in v0.3.0
type FieldSelectorRequirement struct { // Key is the JSON path in the workload to match against. // e.g. for workload: "workload.spec.source.git.url", // e.g. for deliverable: "deliverable.spec.source.git.url" // +kubebuilder:validation:MinLength=1 Key string `json:"key"` // Operator represents a key's relationship to a set of values. // Valid operators are In, NotIn, Exists and DoesNotExist. // +kubebuilder:validation:Enum=In;NotIn;Exists;DoesNotExist Operator FieldSelectorOperator `json:"operator"` // Values is an array of string values. If the operator is In or NotIn, // the values array must be non-empty. If the operator is Exists or DoesNotExist, // the values array must be empty. Values []string `json:"values,omitempty"` }
func (*FieldSelectorRequirement) DeepCopy ¶ added in v0.3.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.3.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 ¶ added in v0.0.7
type GitRef struct { Branch *string `json:"branch,omitempty"` Tag *string `json:"tag,omitempty"` Commit *string `json:"commit,omitempty"` }
func (*GitRef) DeepCopy ¶ added in v0.0.7
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRef.
func (*GitRef) DeepCopyInto ¶ added in v0.0.7
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitSource ¶ added in v0.0.7
func (*GitSource) DeepCopy ¶ added in v0.0.7
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitSource.
func (*GitSource) DeepCopyInto ¶ added in v0.0.7
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageTemplateSpec ¶
type ImageTemplateSpec struct { TemplateSpec `json:",inline"` // ImagePath is a path into the templated object's // data that contains a valid image digest. This // might be a URL or in some cases just a repository path and digest. // The final spec for this field may change as we implement // RFC-0016 https://github.com/vmware-tanzu/cartographer/blob/main/rfc/rfc-0016-validate-template-outputs.md // ImagePath is specified in jsonpath format, eg: .status.artifact.image_digest ImagePath string `json:"imagePath"` }
func (*ImageTemplateSpec) DeepCopy ¶
func (in *ImageTemplateSpec) DeepCopy() *ImageTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageTemplateSpec.
func (*ImageTemplateSpec) DeepCopyInto ¶
func (in *ImageTemplateSpec) DeepCopyInto(out *ImageTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Input ¶ added in v0.3.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.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Input.
func (*Input) DeepCopyInto ¶ added in v0.3.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LegacySelector ¶ added in v0.3.0
type LegacySelector struct { // Specifies the label key-value pairs used to select owners // See: https://cartographer.sh/docs/v0.1.0/architecture/#selectors // +optional Selector map[string]string `json:"selector,omitempty"` // Specifies the requirements used to select owners based on their labels // See: https://cartographer.sh/docs/v0.1.0/architecture/#selectors // +optional SelectorMatchExpressions []metav1.LabelSelectorRequirement `json:"selectorMatchExpressions,omitempty"` // Specifies the requirements used to select owners based on their fields // See: https://cartographer.sh/docs/v0.1.0/architecture/#selectors // +optional SelectorMatchFields []FieldSelectorRequirement `json:"selectorMatchFields,omitempty"` }
LegacySelector is the collection of selection fields used congruously to specify the selection of a target Owner. It is here to preserve compatibility with Owners in v1alpha1, and will be replaced with Selector in a future release.
func (*LegacySelector) DeepCopy ¶ added in v0.3.0
func (in *LegacySelector) DeepCopy() *LegacySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LegacySelector.
func (*LegacySelector) DeepCopyInto ¶ added in v0.3.0
func (in *LegacySelector) DeepCopyInto(out *LegacySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectReference ¶ added in v0.0.7
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 ¶ added in v0.0.7
func (in *ObjectReference) DeepCopy() *ObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (*ObjectReference) DeepCopyInto ¶ added in v0.0.7
func (in *ObjectReference) DeepCopyInto(out *ObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObservedCompletion ¶ added in v0.0.8
type ObservedCompletion struct { // SucceededCondition, when matched, indicates that the input was successfully deployed. SucceededCondition Condition `json:"succeeded"` // FailedCondition, when matched, indicates that the input did not deploy successfully. FailedCondition *Condition `json:"failed,omitempty"` }
func (*ObservedCompletion) DeepCopy ¶ added in v0.0.8
func (in *ObservedCompletion) DeepCopy() *ObservedCompletion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObservedCompletion.
func (*ObservedCompletion) DeepCopyInto ¶ added in v0.0.8
func (in *ObservedCompletion) DeepCopyInto(out *ObservedCompletion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObservedMatch ¶ added in v0.0.8
type ObservedMatch struct { // Input is a jsonPath to a value that is fulfilled before the templated object is reconciled. // Usually a value in the .spec of the object Input string `json:"input"` // Output is a jsonPath to a value that is fulfilled after the templated object is reconciled. // Usually a value in the .status of the object Output string `json:"output"` }
func (*ObservedMatch) DeepCopy ¶ added in v0.0.8
func (in *ObservedMatch) DeepCopy() *ObservedMatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObservedMatch.
func (*ObservedMatch) DeepCopyInto ¶ added in v0.0.8
func (in *ObservedMatch) DeepCopyInto(out *ObservedMatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Output ¶ added in v0.3.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.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Output.
func (*Output) DeepCopyInto ¶ added in v0.3.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OwnerParam ¶ added in v0.2.0
type OwnerParam struct { // Name of the parameter. // Should match a blueprint or template parameter name. Name string `json:"name"` // Value of the parameter. Value apiextensionsv1.JSON `json:"value"` }
func (*OwnerParam) DeepCopy ¶ added in v0.2.0
func (in *OwnerParam) DeepCopy() *OwnerParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerParam.
func (*OwnerParam) DeepCopyInto ¶ added in v0.2.0
func (in *OwnerParam) DeepCopyInto(out *OwnerParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OwnerStatus ¶ added in v0.2.0
type OwnerStatus 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"` }
func (*OwnerStatus) DeepCopy ¶ added in v0.2.0
func (in *OwnerStatus) DeepCopy() *OwnerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerStatus.
func (*OwnerStatus) DeepCopyInto ¶ added in v0.2.0
func (in *OwnerStatus) DeepCopyInto(out *OwnerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RealizedResource ¶ added in v0.3.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"` }
func (*RealizedResource) DeepCopy ¶ added in v0.3.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.3.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 ¶ added in v0.0.7
func (*ResourceReference) DeepCopy ¶ added in v0.0.7
func (in *ResourceReference) DeepCopy() *ResourceReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceReference.
func (*ResourceReference) DeepCopyInto ¶ added in v0.0.7
func (in *ResourceReference) DeepCopyInto(out *ResourceReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSelector ¶ added in v0.0.7
type ResourceSelector struct { // Resource is the GVK that must match the selected object. Resource ResourceType `json:"resource"` // MatchingLabels must match on a single target object, making the object // available in the template as $(selected)$ MatchingLabels map[string]string `json:"matchingLabels"` }
func (*ResourceSelector) DeepCopy ¶ added in v0.0.7
func (in *ResourceSelector) DeepCopy() *ResourceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSelector.
func (*ResourceSelector) DeepCopyInto ¶ added in v0.0.7
func (in *ResourceSelector) DeepCopyInto(out *ResourceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceType ¶ added in v0.0.7
type ResourceType struct { APIVersion string `json:"apiVersion,omitempty"` Kind string `json:"kind,omitempty"` }
func (*ResourceType) DeepCopy ¶ added in v0.0.7
func (in *ResourceType) DeepCopy() *ResourceType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceType.
func (*ResourceType) DeepCopyInto ¶ added in v0.0.7
func (in *ResourceType) DeepCopyInto(out *ResourceType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RetentionPolicy ¶ added in v0.2.0
type RetentionPolicy struct { // MaxFailedRuns is the number of failed runs to retain. // +kubebuilder:validation:Minimum:=1 MaxFailedRuns int64 `json:"maxFailedRuns"` // MaxSuccessfulRuns is the number of successful runs to retain. // +kubebuilder:validation:Minimum:=1 MaxSuccessfulRuns int64 `json:"maxSuccessfulRuns"` }
func (*RetentionPolicy) DeepCopy ¶ added in v0.2.0
func (in *RetentionPolicy) DeepCopy() *RetentionPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RetentionPolicy.
func (*RetentionPolicy) DeepCopyInto ¶ added in v0.2.0
func (in *RetentionPolicy) DeepCopyInto(out *RetentionPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RunTemplateSpec ¶ added in v0.0.5
type RunTemplateSpec struct { // Template defines a resource template for a Kubernetes Resource or // Custom Resource which is applied to the server each time // the blueprint is applied. Templates support simple value // interpolation using the $()$ marker format. For more // information, see: https://cartographer.sh/docs/latest/templating/ // You should not define the namespace for the resource - it will automatically // be created in the owner namespace. If the namespace is specified and is not // the owner namespace, the resource will fail to be created. // +kubebuilder:pruning:PreserveUnknownFields Template runtime.RawExtension `json:"template"` // Outputs are a named list of jsonPaths that are used to gather results // from the last successful object stamped by the template. // E.g: my-output: .status.results[?(@.name=="IMAGE-DIGEST")].value // Note: outputs are only filled on the runnable when the templated object // has a Succeeded condition with a Status of True // E.g: status.conditions[?(@.type=="Succeeded")].status == True // a runnable creating an object without a Succeeded condition (like a Job or ConfigMap) // will never display an output // +optional Outputs map[string]string `json:"outputs,omitempty"` }
func (*RunTemplateSpec) DeepCopy ¶ added in v0.0.5
func (in *RunTemplateSpec) DeepCopy() *RunTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunTemplateSpec.
func (*RunTemplateSpec) DeepCopyInto ¶ added in v0.0.5
func (in *RunTemplateSpec) DeepCopyInto(out *RunTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Runnable ¶ added in v0.0.8
type Runnable struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // Spec describes the runnable. // More info: https://cartographer.sh/docs/latest/reference/runnable/#runnable Spec RunnableSpec `json:"spec"` // Status conforms to the Kubernetes conventions: // https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties Status RunnableStatus `json:"status,omitempty"` }
func (*Runnable) DeepCopy ¶ added in v0.0.8
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runnable.
func (*Runnable) DeepCopyInto ¶ added in v0.0.8
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Runnable) DeepCopyObject ¶ added in v0.0.8
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RunnableList ¶ added in v0.0.8
type RunnableList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Runnable `json:"items"` }
func (*RunnableList) DeepCopy ¶ added in v0.0.8
func (in *RunnableList) DeepCopy() *RunnableList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnableList.
func (*RunnableList) DeepCopyInto ¶ added in v0.0.8
func (in *RunnableList) DeepCopyInto(out *RunnableList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RunnableList) DeepCopyObject ¶ added in v0.0.8
func (in *RunnableList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RunnableSpec ¶ added in v0.0.8
type RunnableSpec struct { // RunTemplateRef identifies the run template used to produce resources // for this runnable. // +kubebuilder:validation:Required RunTemplateRef TemplateReference `json:"runTemplateRef"` // Selector refers to an additional object that the template can refer // to using: $(selected)$. // +optional Selector *ResourceSelector `json:"selector,omitempty"` // Inputs are key/values providing inputs to the templated object created for this runnable. // Reference inputs in the template using the jsonPath: $(runnable.spec.inputs.<key>)$ Inputs map[string]apiextensionsv1.JSON `json:"inputs,omitempty"` // ServiceAccountName refers to the Service account with permissions to create resources // submitted by the ClusterRunTemplate. // // If not set, Cartographer will use the default service account in the // runnable's namespace. // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` // RetentionPolicy specifies how many successful and failed runs should be retained. // Runs older than this (ordered by creation time) will be deleted. Setting higher // values will increase memory footprint. // +kubebuilder:default={maxFailedRuns: 10, maxSuccessfulRuns: 10} RetentionPolicy RetentionPolicy `json:"retentionPolicy,omitempty"` }
func (*RunnableSpec) DeepCopy ¶ added in v0.0.8
func (in *RunnableSpec) DeepCopy() *RunnableSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnableSpec.
func (*RunnableSpec) DeepCopyInto ¶ added in v0.0.8
func (in *RunnableSpec) DeepCopyInto(out *RunnableSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RunnableStatus ¶ added in v0.0.8
type RunnableStatus struct { ObservedGeneration int64 `json:"observedGeneration,omitempty"` Conditions []metav1.Condition `json:"conditions,omitempty"` // Note: outputs are only filled on the runnable when the templated object // has a Succeeded condition with a Status of True // E.g: status.conditions[?(@.type=="Succeeded")].status == True // a runnable creating an object without a Succeeded condition (like a Job or ConfigMap) // will never display an output // +optional Outputs map[string]apiextensionsv1.JSON `json:"outputs,omitempty"` }
func (*RunnableStatus) DeepCopy ¶ added in v0.0.8
func (in *RunnableStatus) DeepCopy() *RunnableStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunnableStatus.
func (*RunnableStatus) DeepCopyInto ¶ added in v0.0.8
func (in *RunnableStatus) DeepCopyInto(out *RunnableStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Selector ¶ added in v0.3.0
type Selector struct { metav1.LabelSelector `json:",inline"` // MatchFields is a list of field selector requirements. The requirements are ANDed. // +optional MatchFields []FieldSelectorRequirement `json:"matchFields,omitempty"` }
Selector is the collection of selection fields used congruously to specify the selection of a template Option. In a future API revision, it will also be used to specify selection of a target Owner. See: LegacySelector
func TemplateOptionSelectors ¶ added in v0.3.0
func TemplateOptionSelectors(templateOptions []TemplateOption) []Selector
func (*Selector) DeepCopy ¶ added in v0.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector.
func (*Selector) DeepCopyInto ¶ added in v0.3.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceAccountRef ¶ added in v0.1.0
type ServiceAccountRef struct { // Name of the service account being referred to Name string `json:"name"` // Namespace of the service account being referred to // if omitted, the Owner's namespace is used. Namespace string `json:"namespace,omitempty"` }
func (*ServiceAccountRef) DeepCopy ¶ added in v0.1.0
func (in *ServiceAccountRef) DeepCopy() *ServiceAccountRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountRef.
func (*ServiceAccountRef) DeepCopyInto ¶ added in v0.1.0
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 ¶ added in v0.0.7
type Source struct { // Source code location in a git repository. // +optional Git *GitSource `json:"git,omitempty"` // OCI Image in a repository, containing the source code to // be used throughout the supply chain. // +optional Image *string `json:"image,omitempty"` // Subpath inside the Git repository or Image to treat as the root // of the application. Defaults to the root if left empty. // +optional Subpath *string `json:"subPath,omitempty"` }
func (*Source) DeepCopy ¶ added in v0.0.7
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.
func (*Source) DeepCopyInto ¶ added in v0.0.7
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SourceTemplateSpec ¶
type SourceTemplateSpec struct { TemplateSpec `json:",inline"` // URLPath is a path into the templated object's // data that contains a URL. The URL, along with the revision, // represents the output of the Template. // URLPath is specified in jsonpath format, eg: .status.artifact.url URLPath string `json:"urlPath"` // RevisionPath is a path into the templated object's // data that contains a revision. The revision, along with the URL, // represents the output of the Template. // RevisionPath is specified in jsonpath format, eg: .status.artifact.revision RevisionPath string `json:"revisionPath"` }
func (*SourceTemplateSpec) DeepCopy ¶
func (in *SourceTemplateSpec) DeepCopy() *SourceTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceTemplateSpec.
func (*SourceTemplateSpec) DeepCopyInto ¶
func (in *SourceTemplateSpec) DeepCopyInto(out *SourceTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SupplyChainResource ¶ added in v0.0.7
type SupplyChainResource struct { // Name of the resource. Used as a reference for inputs, as well as being // the name presented in workload statuses to identify this resource. Name string `json:"name"` // TemplateRef identifies the template used to produce this resource TemplateRef SupplyChainTemplateReference `json:"templateRef"` // Params are a list of parameters to provide to the template in TemplateRef // Template params do not have to be specified here, unless you want to // force a particular value, or add a default value. // // Parameters are consumed in a template with the syntax: // $(params.<name>)$ Params []BlueprintParam `json:"params,omitempty"` // Sources is a list of references to other 'source' resources in this list. // A source resource has the kind ClusterSourceTemplate // // In a template, sources can be consumed as: // $(sources.<name>.url)$ and $(sources.<name>.revision)$ // // If there is only one source, it can be consumed as: // $(source.url)$ and $(source.revision)$ Sources []ResourceReference `json:"sources,omitempty"` // Images is a list of references to other 'image' resources in this list. // An image resource has the kind ClusterImageTemplate // // In a template, images can be consumed as: // $(images.<name>.image)$ // // If there is only one image, it can be consumed as: // $(image)$ Images []ResourceReference `json:"images,omitempty"` // Configs is a list of references to other 'config' resources in this list. // A config resource has the kind ClusterConfigTemplate // // In a template, configs can be consumed as: // $(configs.<name>.config)$ // // If there is only one image, it can be consumed as: // $(config)$ Configs []ResourceReference `json:"configs,omitempty"` }
func (*SupplyChainResource) DeepCopy ¶ added in v0.0.7
func (in *SupplyChainResource) DeepCopy() *SupplyChainResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplyChainResource.
func (*SupplyChainResource) DeepCopyInto ¶ added in v0.0.7
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 { LegacySelector `json:",inline"` // Resources that are responsible for bringing the application to a // deliverable state. Resources []SupplyChainResource `json:"resources"` // Additional parameters. // See: https://cartographer.sh/docs/latest/architecture/#parameter-hierarchy // +optional Params []BlueprintParam `json:"params,omitempty"` // ServiceAccountName refers to the Service account with permissions to create resources // submitted by the supply chain. // // If not set, Cartographer will use serviceAccountName from supply chain. // // If that is also not set, Cartographer will use the default service account in the // workload's namespace. // +optional ServiceAccountRef ServiceAccountRef `json:"serviceAccountRef,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 ¶ added in v0.1.0
type SupplyChainTemplateReference struct { // Kind of the template to apply //+kubebuilder:validation:Enum=ClusterSourceTemplate;ClusterImageTemplate;ClusterTemplate;ClusterConfigTemplate Kind string `json:"kind"` // Name of the template to apply // Only one of Name and Options can be specified. // +kubebuilder:validation:MinLength=1 Name string `json:"name,omitempty"` // Options is a list of template names and Selector. The templates must all be of type Kind. // A template will be selected if the workload matches the specified selector. // Only one template can be selected. // Only one of Name and Options can be specified. // Minimum number of items in list is two. // +kubebuilder:validation:MinItems=2 Options []TemplateOption `json:"options,omitempty"` }
func (*SupplyChainTemplateReference) DeepCopy ¶ added in v0.1.0
func (in *SupplyChainTemplateReference) DeepCopy() *SupplyChainTemplateReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplyChainTemplateReference.
func (*SupplyChainTemplateReference) DeepCopyInto ¶ added in v0.1.0
func (in *SupplyChainTemplateReference) DeepCopyInto(out *SupplyChainTemplateReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateOption ¶ added in v0.3.0
type TemplateOption struct { // Name of the template to apply // +kubebuilder:validation:MinLength=1 Name string `json:"name"` // Selector is a criteria to match against a workload or deliverable resource. Selector Selector `json:"selector"` }
func (*TemplateOption) DeepCopy ¶ added in v0.3.0
func (in *TemplateOption) DeepCopy() *TemplateOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateOption.
func (*TemplateOption) DeepCopyInto ¶ added in v0.3.0
func (in *TemplateOption) DeepCopyInto(out *TemplateOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateParam ¶ added in v0.0.8
type TemplateParam struct { // Name of a parameter the template accepts from the // Blueprint or Owner. Name string `json:"name"` // DefaultValue of the parameter. // Causes the parameter to be optional; If the Owner or Template // does not specify this parameter, this value is used. DefaultValue apiextensionsv1.JSON `json:"default"` }
func (*TemplateParam) DeepCopy ¶ added in v0.0.8
func (in *TemplateParam) DeepCopy() *TemplateParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateParam.
func (*TemplateParam) DeepCopyInto ¶ added in v0.0.8
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 ¶ added in v0.0.8
type TemplateParams []TemplateParam
func (TemplateParams) DeepCopy ¶ added in v0.0.8
func (in TemplateParams) DeepCopy() TemplateParams
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateParams.
func (TemplateParams) DeepCopyInto ¶ added in v0.0.8
func (in TemplateParams) DeepCopyInto(out *TemplateParams)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateReference ¶
type TemplateReference struct { Kind string `json:"kind,omitempty"` // +kubebuilder:validation:MinLength=1 Name string `json:"name"` }
func (*TemplateReference) DeepCopy ¶
func (in *TemplateReference) DeepCopy() *TemplateReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateReference.
func (*TemplateReference) DeepCopyInto ¶
func (in *TemplateReference) DeepCopyInto(out *TemplateReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateSpec ¶
type TemplateSpec struct { // Template defines a resource template for a Kubernetes Resource or // Custom Resource which is applied to the server each time // the blueprint is applied. Templates support simple value // interpolation using the $()$ marker format. For more // information, see: https://cartographer.sh/docs/latest/templating/ // You cannot define both Template and Ytt at the same time. // You should not define the namespace for the resource - it will automatically // be created in the owner namespace. If the namespace is specified and is not // the owner namespace, the resource will fail to be created. // +kubebuilder:pruning:PreserveUnknownFields Template *runtime.RawExtension `json:"template,omitempty"` // Ytt defines a resource template written in `ytt` for a Kubernetes Resource or // Custom Resource which is applied to the server each time // the blueprint is applied. Templates support simple value // interpolation using the $()$ marker format. For more // information, see: https://cartographer.sh/docs/latest/templating/ // You cannot define both Template and Ytt at the same time. // You should not define the namespace for the resource - it will automatically // be created in the owner namespace. If the namespace is specified and is not // the owner namespace, the resource will fail to be created. Ytt string `json:"ytt,omitempty"` // Additional parameters. // See: https://cartographer.sh/docs/latest/architecture/#parameter-hierarchy // +optional Params TemplateParams `json:"params,omitempty"` }
func (*TemplateSpec) DeepCopy ¶
func (in *TemplateSpec) DeepCopy() *TemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateSpec.
func (*TemplateSpec) DeepCopyInto ¶
func (in *TemplateSpec) DeepCopyInto(out *TemplateSpec)
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 describes the workload. // More info: https://cartographer.sh/docs/latest/reference/workload/#workload Spec WorkloadSpec `json:"spec"` // Status conforms to the Kubernetes conventions: // https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties 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.
type WorkloadBuild ¶ added in v0.0.8
type WorkloadBuild struct { // Env is an array of environment variables to propagate to build resources in the // supply chain. // See https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/ // +optional Env []corev1.EnvVar `json:"env,omitempty"` }
func (*WorkloadBuild) DeepCopy ¶ added in v0.0.8
func (in *WorkloadBuild) DeepCopy() *WorkloadBuild
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadBuild.
func (*WorkloadBuild) DeepCopyInto ¶ added in v0.0.8
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 (*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 { // Additional parameters. // See: https://cartographer.sh/docs/latest/architecture/#parameter-hierarchy // +optional Params []OwnerParam `json:"params,omitempty"` // The location of the source code for the workload. Specify // one of `spec.source` or `spec.image` // +optional Source *Source `json:"source,omitempty"` // Build configuration, for the build resources in the supply chain // +optional Build WorkloadBuild `json:"build,omitempty"` // Environment variables to be passed to the main container // running the application. // See https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/ // +optional Env []corev1.EnvVar `json:"env,omitempty"` // Image refers to a pre-built image in a registry. It is an alternative // to specifying the location of source code for the workload. Specify // one of `spec.source` or `spec.image`. // +optional Image *string `json:"image,omitempty"` // Resource constraints for the application. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ // +optional Resources *corev1.ResourceRequirements `json:"resources,omitempty"` // ServiceAccountName refers to the Service account with permissions to create resources // submitted by the supply chain. // // If not set, Cartographer will use serviceAccountName from supply chain. // // If that is also not set, Cartographer will use the default service account in the // workload's namespace. // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` // ServiceClaims to be bound through ServiceBindings. // +optional 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.
type WorkloadStatus ¶
type WorkloadStatus struct { OwnerStatus `json:",inline"` // 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.
Source Files ¶
- cluster_config_template.go
- cluster_config_template_webhook.go
- cluster_delivery.go
- cluster_delivery_webhook.go
- cluster_deployment_template.go
- cluster_deployment_template_webhook.go
- cluster_image_template.go
- cluster_image_template_webhook.go
- cluster_run_template.go
- cluster_run_template_webhook.go
- cluster_source_template.go
- cluster_source_template_webhook.go
- cluster_supply_chain.go
- cluster_supply_chain_webhook.go
- cluster_template.go
- cluster_template_webhook.go
- common.go
- common_validations.go
- deliverable.go
- groupversion_info.go
- runnable.go
- workload.go
- zz_generated.deepcopy.go