v1alpha1

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 8

Documentation

Index

Constants

View Source
const (
	OwnerReady               = "Ready"
	ResourcesHealthy         = "ResourcesHealthy"
	WorkloadSupplyChainReady = "SupplyChainReady"
	DeliverableDeliveryReady = "DeliveryReady"
	OwnerResourcesSubmitted  = "ResourcesSubmitted"
)
View Source
const (
	ReadySupplyChainReason                 = "Ready"
	WorkloadLabelsMissingSupplyChainReason = "WorkloadLabelsMissing"
	NotFoundSupplyChainReadyReason         = "SupplyChainNotFound"
	MultipleMatchesSupplyChainReadyReason  = "MultipleSupplyChainMatches"
)
View Source
const (
	ReadyDeliveryReason                    = "Ready"
	DeliverableLabelsMissingDeliveryReason = "DeliverableLabelsMissing"
	NotFoundDeliveryReadyReason            = "DeliveryNotFound"
	MultipleMatchesDeliveryReadyReason     = "MultipleDeliveryMatches"
)
View Source
const (
	CompleteResourcesSubmittedReason                       = "ResourceSubmissionComplete"
	TemplateObjectRetrievalFailureResourcesSubmittedReason = "TemplateObjectRetrievalFailure"
	MissingValueAtPathResourcesSubmittedReason             = "MissingValueAtPath"
	TemplateStampFailureResourcesSubmittedReason           = "TemplateStampFailure"
	TemplateRejectedByAPIServerResourcesSubmittedReason    = "TemplateRejectedByAPIServer"
	UnknownErrorResourcesSubmittedReason                   = "UnknownError"
	ResolveTemplateOptionsErrorResourcesSubmittedReason    = "ResolveTemplateOptionsError"
	TemplateOptionsMatchErrorResourcesSubmittedReason      = "TemplateOptionsMatchError"
	PassThroughReason                                      = "PassThrough"
)
View Source
const (
	DeploymentConditionNotMetResourcesSubmittedReason    = "ConditionNotMet"
	DeploymentFailedConditionMetResourcesSubmittedReason = "FailedConditionMet"
)
View Source
const (
	ServiceAccountErrorResourcesSubmittedReason          = "ServiceAccountError"
	ServiceAccountTokenErrorResourcesSubmittedReason     = "ServiceAccountTokenError"
	ResourceRealizerBuilderErrorResourcesSubmittedReason = "ResourceRealizerBuilderError"
)
View Source
const (
	ResourceReady     = "Ready"
	ResourceSubmitted = "ResourceSubmitted"
	ResourceHealthy   = "Healthy"
)
View Source
const (
	BlueprintTemplatesReady = "TemplatesReady"
	BlueprintReady          = "Ready"
)
View Source
const (
	ReadyTemplatesReadyReason    = "Ready"
	NotFoundTemplatesReadyReason = "TemplatesNotFound"
)
View Source
const (
	OutputAvailableResourcesHealthyReason = "OutputsAvailable"
	AlwaysHealthyResourcesHealthyReason   = "AlwaysHealthy"
)
View Source
const (
	NoResourceResourcesHealthyReason         = "NoResource"
	OutputNotAvailableResourcesHealthyReason = "OutputNotAvailable"
	NoStampedObjectHealthyReason             = "NoStampedObject"
	NoMatchesFulfilledReason                 = "NoMatchesFulfilled"
)
View Source
const (
	MultiMatchConditionHealthyReason = "MatchedCondition"
	MultiMatchFieldHealthyReason     = "MatchedField"
)
View Source
const (
	RunnableReady          = "Ready"
	RunTemplateReady       = "RunTemplateReady"
	StampedObjectCondition = "StampedObjectCondition"
)
View Source
const (
	ReadyRunTemplateReason                            = "Ready"
	NotFoundRunTemplateReason                         = "RunTemplateNotFound"
	StampedObjectRejectedByAPIServerRunTemplateReason = "StampedObjectRejectedByAPIServer"
	OutputPathNotSatisfiedRunTemplateReason           = "OutputPathNotSatisfied"
	TemplateStampFailureRunTemplateReason             = "TemplateStampFailure"
	FailedToListCreatedObjectsReason                  = "FailedToListCreatedObjects"
	UnknownErrorReason                                = "UnknownError"
	ClientBuilderErrorResourcesSubmittedReason        = "ClientBuilderError"
	SucceededStampedObjectConditionReason             = "SucceededCondition"
	UnknownStampedObjectConditionReason               = "Unknown"
)

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{
		Group:   "carto.run",
		Version: "v1alpha1",
	}

	SchemeBuilder = &scheme.Builder{
		GroupVersion: SchemeGroupVersion,
	}

	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
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,
}
View Source
var ValidDeliverablePrefixes = []string{
	"spec.params",
	"metadata",
}
View Source
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

View Source
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

func GetAPITemplate

func GetAPITemplate(templateKind string) (client.Object, error)

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfigTemplateList.

func (*ClusterConfigTemplateList) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDeploymentTemplate.

func (*ClusterDeploymentTemplate) DeepCopyInto added in v0.0.7

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDeploymentTemplateList.

func (*ClusterDeploymentTemplateList) DeepCopyInto added in v0.0.7

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

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

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

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSourceTemplateList.

func (*ClusterSourceTemplateList) DeepCopyInto

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

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

func (in *Condition) DeepCopy() *Condition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.

func (*Condition) DeepCopyInto added in v0.0.8

func (in *Condition) DeepCopyInto(out *Condition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConditionRequirement added in v0.4.0

type ConditionRequirement struct {
	// Type is the type of the condition
	Type string `json:"type"`
	// Status is the status of the condition
	Status metav1.ConditionStatus `json:"status"`
}

func (*ConditionRequirement) DeepCopy added in v0.4.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionRequirement.

func (*ConditionRequirement) DeepCopyInto added in v0.4.0

func (in *ConditionRequirement) DeepCopyInto(out *ConditionRequirement)

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 []ResourceStatus `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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeliveryTemplateReference.

func (*DeliveryTemplateReference) DeepCopyInto added in v0.1.0

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

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

func (in *GitRef) DeepCopy() *GitRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRef.

func (*GitRef) DeepCopyInto added in v0.0.7

func (in *GitRef) DeepCopyInto(out *GitRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GitSource added in v0.0.7

type GitSource struct {
	URL *string `json:"url,omitempty"`
	Ref *GitRef `json:"ref,omitempty"`
}

func (*GitSource) DeepCopy added in v0.0.7

func (in *GitSource) DeepCopy() *GitSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitSource.

func (*GitSource) DeepCopyInto added in v0.0.7

func (in *GitSource) DeepCopyInto(out *GitSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HealthMatchFieldSelectorRequirement added in v0.4.0

type HealthMatchFieldSelectorRequirement struct {
	FieldSelectorRequirement `json:",inline"`
	// MessagePath is specified in jsonpath format. It is evaluated against the resource to provide a message in the
	// owner's resource condition if it is the first matching requirement that determine the current ResourcesHealthy
	// condition status.
	MessagePath string `json:"messagePath,omitempty"`
}

func (*HealthMatchFieldSelectorRequirement) DeepCopy added in v0.4.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthMatchFieldSelectorRequirement.

func (*HealthMatchFieldSelectorRequirement) DeepCopyInto added in v0.4.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HealthMatchRule added in v0.4.0

type HealthMatchRule struct {
	// MatchConditions are the conditions and statuses to read.
	// +optional
	MatchConditions []ConditionRequirement `json:"matchConditions,omitempty"`
	// MatchFields stipulates a FieldSelectorRequirement for this rule.
	// +optional
	MatchFields []HealthMatchFieldSelectorRequirement `json:"matchFields,omitempty"`
}

HealthMatchRule specifies a rule for determining the health of a resource

func (*HealthMatchRule) DeepCopy added in v0.4.0

func (in *HealthMatchRule) DeepCopy() *HealthMatchRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthMatchRule.

func (*HealthMatchRule) DeepCopyInto added in v0.4.0

func (in *HealthMatchRule) DeepCopyInto(out *HealthMatchRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HealthRule added in v0.4.0

type HealthRule struct {
	// AlwaysHealthy being set indicates the resource should always be considered healthy
	// once it exists.
	// +optional
	AlwaysHealthy *runtime.RawExtension `json:"alwaysHealthy,omitempty"`

	// SingleConditionType names a single condition which, when True indicates the resource
	// is healthy. When False it is unhealthy. Otherwise, healthiness is Unknown.
	// +optional
	SingleConditionType string `json:"singleConditionType,omitempty"`

	// MultiMatch specifies explicitly which conditions and/or fields should be used
	// to determine healthiness.
	// +optional
	MultiMatch *MultiMatchHealthRule `json:"multiMatch,omitempty"`
}

HealthRule specifies rubric for determining the health of a resource. One of AlwaysHealthy, SingleConditionType or MultiMatch must be specified.

func (*HealthRule) DeepCopy added in v0.4.0

func (in *HealthRule) DeepCopy() *HealthRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthRule.

func (*HealthRule) DeepCopyInto added in v0.4.0

func (in *HealthRule) DeepCopyInto(out *HealthRule)

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

func (in *Input) DeepCopy() *Input

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Input.

func (*Input) DeepCopyInto added in v0.3.0

func (in *Input) DeepCopyInto(out *Input)

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 MultiMatchHealthRule added in v0.4.0

type MultiMatchHealthRule struct {
	// Healthy is a HealthMatchRule which stipulates requirements, ALL of which must be met for the resource to be
	// considered healthy.
	Healthy HealthMatchRule `json:"healthy"`
	// Unhealthy is a HealthMatchRule which stipulates requirements, ANY of which, when met, indicate that the resource
	// should be considered unhealthy.
	Unhealthy HealthMatchRule `json:"unhealthy"`
}

MultiMatchHealthRule is a pair of HealthMatchRule defining when a resource should be considered healthy or unhealthy

func (*MultiMatchHealthRule) DeepCopy added in v0.4.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiMatchHealthRule.

func (*MultiMatchHealthRule) DeepCopyInto added in v0.4.0

func (in *MultiMatchHealthRule) DeepCopyInto(out *MultiMatchHealthRule)

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

func (in *Output) DeepCopy() *Output

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Output.

func (*Output) DeepCopyInto added in v0.3.0

func (in *Output) DeepCopyInto(out *Output)

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 *StampedRef `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

type ResourceReference struct {
	Name     string `json:"name"`
	Resource string `json:"resource"`
}

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 ResourceStatus added in v0.4.0

type ResourceStatus struct {
	RealizedResource `json:",inline"`

	// 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 (*ResourceStatus) DeepCopy added in v0.4.0

func (in *ResourceStatus) DeepCopy() *ResourceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStatus.

func (*ResourceStatus) DeepCopyInto added in v0.4.0

func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)

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

func (in *Runnable) DeepCopy() *Runnable

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Runnable.

func (*Runnable) DeepCopyInto added in v0.0.8

func (in *Runnable) DeepCopyInto(out *Runnable)

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

func (in *Runnable) DeepCopyObject() runtime.Object

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

func (in *Selector) DeepCopy() *Selector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector.

func (*Selector) DeepCopyInto added in v0.3.0

func (in *Selector) DeepCopyInto(out *Selector)

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

func (in *Source) DeepCopy() *Source

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.

func (*Source) DeepCopyInto added in v0.0.7

func (in *Source) DeepCopyInto(out *Source)

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 StampedRef added in v0.6.0

type StampedRef struct {
	*corev1.ObjectReference `json:",inline,omitempty"`

	// Resource refers to the resource name and group [NAME(.GROUP)]
	// The NAME segment is the CRD's plural value. You can use this to fully qualify a kubectl reference.
	Resource string `json:"resource,omitempty"`
}

func (*StampedRef) DeepCopy added in v0.6.0

func (in *StampedRef) DeepCopy() *StampedRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StampedRef.

func (*StampedRef) DeepCopyInto added in v0.6.0

func (in *StampedRef) DeepCopyInto(out *StampedRef)

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupplyChainTemplateReference.

func (*SupplyChainTemplateReference) DeepCopyInto added in v0.1.0

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
	// Name or PassThrough must be specified
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name,omitempty"`

	// PassThrough the input
	// Name or PassThrough must be specified
	PassThrough string `json:"passThrough,omitempty"`

	// 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"`

	// HealthRule specifies rubric for determining the health of a resource
	// stamped by this template
	// +optional
	HealthRule *HealthRule `json:"healthRule,omitempty"`

	// Lifecycle specifies whether template modifications should result in originally
	// created objects being updated (`mutable`) or in new objects created alongside
	// original objects (`immutable` or `tekton`).
	// +kubebuilder:validation:Enum=mutable;immutable;tekton
	// +kubebuilder:default="mutable"
	Lifecycle string `json:"lifecycle,omitempty"`

	// RetentionPolicy specifies how many successful and failed runs should be retained
	// if the template lifecycle is immutable/tekton.
	// Runs older than this (ordered by creation time) will be deleted. Setting higher
	// values will increase memory footprint.
	// If unspecified on immutable/tekton, default behavior will == {maxFailedRuns: 10, maxSuccessfulRuns: 10}
	RetentionPolicy *RetentionPolicy `json:"retentionPolicy,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

func (in *Workload) DeepCopy() *Workload

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.

func (*Workload) DeepCopyInto

func (in *Workload) DeepCopyInto(out *Workload)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Workload) DeepCopyObject

func (in *Workload) DeepCopyObject() runtime.Object

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadServiceClaimReference.

func (*WorkloadServiceClaimReference) DeepCopyInto

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 []ResourceStatus `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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL