v1alpha1

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SupplyChainReady          = "Ready"
	SupplyChainTemplatesReady = "TemplatesReady"
)
View Source
const (
	ReadyTemplatesReadyReason    = "Ready"
	NotFoundTemplatesReadyReason = "TemplatesNotFound"
)
View Source
const (
	WorkloadKind              = "Workload"
	ConditionReady            = "Ready"
	WorkloadSupplyChainReady  = "SupplyChainReady"
	WorkloadResourceSubmitted = "ResourcesSubmitted"
	ResourcesHealthy          = "ResourcesHealthy"
)
View Source
const (
	ReadySupplyChainReason                               = "Ready"
	WorkloadLabelsMissingSupplyChainReason               = "WorkloadLabelsMissing"
	NotFoundSupplyChainReadyReason                       = "SupplyChainNotFound"
	MultipleMatchesSupplyChainReadyReason                = "MultipleSupplyChainMatches"
	ServiceAccountSecretErrorResourcesSubmittedReason    = "ServiceAccountSecretError"
	ResourceRealizerBuilderErrorResourcesSubmittedReason = "ResourceRealizerBuilderError"
)
View Source
const (
	ConditionResourceReady     = "Ready"
	ConditionResourceSubmitted = "ResourceSubmitted"
	ConditionResourceHealthy   = "Healthy"
)
View Source
const (
	ResourceOutputUrl      = "url"
	ResourceOutputRevision = "revision"
	ResourceOutputImage    = "image"
	ResourceOutputConfig   = "config"
)
View Source
const (
	WorkloadConditionReady  = "Ready"
	WorkloadAnnotationParam = "annotations"
	WorkloadMavenParam      = "maven"
)
View Source
const (
	DeliverableKind = "Deliverable"
)
View Source
const GroupName = "carto.run"
View Source
const WorkloadLabelName = GroupName + "/workload-name"

Variables

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

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

	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource added in v0.7.0

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func RetrieveWorkloadNotices added in v0.9.0

func RetrieveWorkloadNotices(ctx context.Context) []string

func StashWorkloadNotice added in v0.9.0

func StashWorkloadNotice(ctx context.Context, notice string) context.Context

func WorkloadReadyConditionFunc

func WorkloadReadyConditionFunc(target client.Object) (bool, error)

func WorkloadServiceClaimPrinter

func WorkloadServiceClaimPrinter(w io.Writer, workload *Workload) error

Types

type ClusterSupplyChain

type ClusterSupplyChain struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              SupplyChainSpec   `json:"spec"`
	Status            SupplyChainStatus `json:"status,omitempty"`
}

func (*ClusterSupplyChain) DeepCopy

func (in *ClusterSupplyChain) DeepCopy() *ClusterSupplyChain

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

func (*ClusterSupplyChain) DeepCopyInto

func (in *ClusterSupplyChain) DeepCopyInto(out *ClusterSupplyChain)

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

func (*ClusterSupplyChain) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ClusterSupplyChain) GetGroupVersionKind

func (sc *ClusterSupplyChain) GetGroupVersionKind() schema.GroupVersionKind

type ClusterSupplyChainList

type ClusterSupplyChainList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterSupplyChain `json:"items"`
}

func (*ClusterSupplyChainList) DeepCopy

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

func (*ClusterSupplyChainList) DeepCopyInto

func (in *ClusterSupplyChainList) DeepCopyInto(out *ClusterSupplyChainList)

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

func (*ClusterSupplyChainList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DelegatableParam

type DelegatableParam struct {
	Name         string                `json:"name"`
	Value        *apiextensionsv1.JSON `json:"value,omitempty"`
	DefaultValue *apiextensionsv1.JSON `json:"default,omitempty"`
}

func (*DelegatableParam) DeepCopy

func (in *DelegatableParam) DeepCopy() *DelegatableParam

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

func (*DelegatableParam) DeepCopyInto

func (in *DelegatableParam) DeepCopyInto(out *DelegatableParam)

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

type Deliverable added in v0.9.0

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 wokeignore:rule=master
	Status DeliverableStatus `json:"status,omitempty"`
}

func (*Deliverable) DeepCopy added in v0.9.0

func (in *Deliverable) DeepCopy() *Deliverable

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

func (*Deliverable) DeepCopyInto added in v0.9.0

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

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DeliverableList added in v0.9.0

type DeliverableList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Deliverable `json:"items"`
}

func (*DeliverableList) DeepCopy added in v0.9.0

func (in *DeliverableList) DeepCopy() *DeliverableList

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

func (*DeliverableList) DeepCopyInto added in v0.9.0

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

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.9.0

type DeliverableSpec struct {
	// Additional parameters.
	// See: https://cartographer.sh/docs/latest/architecture/#parameter-hierarchy
	// +optional
	Params []Param `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.9.0

func (in *DeliverableSpec) DeepCopy() *DeliverableSpec

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

func (*DeliverableSpec) DeepCopyInto added in v0.9.0

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.9.0

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.9.0

func (in *DeliverableStatus) DeepCopy() *DeliverableStatus

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

func (*DeliverableStatus) DeepCopyInto added in v0.9.0

func (in *DeliverableStatus) DeepCopyInto(out *DeliverableStatus)

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

type FieldSelectorOperator added in v0.7.0

type FieldSelectorOperator string

type FieldSelectorRequirement added in v0.7.0

type FieldSelectorRequirement struct {
	// +kubebuilder:validation:MinLength=1
	Key string `json:"key"`
	// +kubebuilder:validation:Enum=In;NotIn;Exists;DoesNotExist
	Operator FieldSelectorOperator `json:"operator"`
	// the values array must be empty.
	Values []string `json:"values,omitempty"`
}

func (*FieldSelectorRequirement) DeepCopy added in v0.7.0

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

func (*FieldSelectorRequirement) DeepCopyInto added in v0.7.0

func (in *FieldSelectorRequirement) DeepCopyInto(out *FieldSelectorRequirement)

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

type GitRef

type GitRef struct {
	Branch string `json:"branch,omitempty"`
	Tag    string `json:"tag,omitempty"`
	Commit string `json:"commit,omitempty"`
}

func (*GitRef) DeepCopy

func (in *GitRef) DeepCopy() *GitRef

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

func (*GitRef) DeepCopyInto

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

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

func (*GitSource) DeepCopy

func (in *GitSource) DeepCopy() *GitSource

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

func (*GitSource) DeepCopyInto

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

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

func (*GitSource) Validate

func (w *GitSource) Validate() validation.FieldErrors

type Input added in v0.6.0

type Input struct {
	// Name is the name of the resource in the blueprint whose output the resource consumes as an input
	Name string `json:"name"`
}

func (*Input) DeepCopy added in v0.6.0

func (in *Input) DeepCopy() *Input

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

func (*Input) DeepCopyInto added in v0.6.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 MavenSource added in v0.9.0

type MavenSource struct {
	ArtifactId string  `json:"artifactId"`
	GroupId    string  `json:"groupId"`
	Version    string  `json:"version"`
	Type       *string `json:"type,omitempty"`
}

func (*MavenSource) DeepCopy added in v0.9.0

func (in *MavenSource) DeepCopy() *MavenSource

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

func (*MavenSource) DeepCopyInto added in v0.9.0

func (in *MavenSource) DeepCopyInto(out *MavenSource)

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

type ObjectReference

type ObjectReference struct {
	Kind       string `json:"kind,omitempty"`
	Namespace  string `json:"namespace,omitempty"`
	Name       string `json:"name,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
}

func (*ObjectReference) DeepCopy

func (in *ObjectReference) DeepCopy() *ObjectReference

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

func (*ObjectReference) DeepCopyInto

func (in *ObjectReference) DeepCopyInto(out *ObjectReference)

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

type Output added in v0.6.0

type Output struct {
	// Name is the output type generated from the resource [url, revision, image or config]
	Name string `json:"name"`

	// Preview is a preview of the value of the output
	Preview string `json:"preview"`

	// Digest is a sha256 of the full value of the output
	Digest string `json:"digest"`

	// LastTransitionTime is a timestamp of the last time the value changed
	LastTransitionTime metav1.Time `json:"lastTransitionTime"`
}

func (*Output) DeepCopy added in v0.6.0

func (in *Output) DeepCopy() *Output

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

func (*Output) DeepCopyInto added in v0.6.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 OwnerStatus added in v0.9.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 wokeignore:rule=master
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

func (*OwnerStatus) DeepCopy added in v0.9.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.9.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 Param

type Param struct {
	Name  string               `json:"name"`
	Value apiextensionsv1.JSON `json:"value"`
}

func (*Param) DeepCopy

func (in *Param) DeepCopy() *Param

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

func (*Param) DeepCopyInto

func (in *Param) DeepCopyInto(out *Param)

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

type RealizedResource added in v0.6.0

type RealizedResource struct {
	// Name is the name of the resource in the blueprint
	Name string `json:"name"`

	// StampedRef is a reference to the object that was created by the resource
	StampedRef *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"`

	// 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 wokeignore:rule=master
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

func (*RealizedResource) DeepCopy added in v0.6.0

func (in *RealizedResource) DeepCopy() *RealizedResource

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

func (*RealizedResource) DeepCopyInto added in v0.6.0

func (in *RealizedResource) DeepCopyInto(out *RealizedResource)

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

type ResourceReference

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

func (*ResourceReference) DeepCopy

func (in *ResourceReference) DeepCopy() *ResourceReference

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

func (*ResourceReference) DeepCopyInto

func (in *ResourceReference) DeepCopyInto(out *ResourceReference)

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

type ServiceAccountRef

type ServiceAccountRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace,omitempty"`
}

func (*ServiceAccountRef) DeepCopy

func (in *ServiceAccountRef) DeepCopy() *ServiceAccountRef

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

func (*ServiceAccountRef) DeepCopyInto

func (in *ServiceAccountRef) DeepCopyInto(out *ServiceAccountRef)

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

type Source

type Source struct {
	Git *GitSource `json:"git,omitempty"`
	// Image is an OCI image is a registry that contains source code
	Image   string `json:"image,omitempty"`
	Subpath string `json:"subPath,omitempty"`
}

func (*Source) DeepCopy

func (in *Source) DeepCopy() *Source

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

func (*Source) DeepCopyInto

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

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

func (*Source) Validate

func (w *Source) Validate() validation.FieldErrors

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

type SupplyChainResource struct {
	Name        string                       `json:"name"`
	TemplateRef SupplyChainTemplateReference `json:"templateRef"`
	Params      []DelegatableParam           `json:"params,omitempty"`
	Sources     []ResourceReference          `json:"sources,omitempty"`
	Images      []ResourceReference          `json:"images,omitempty"`
	Configs     []ResourceReference          `json:"configs,omitempty"`
}

func (*SupplyChainResource) DeepCopy

func (in *SupplyChainResource) DeepCopy() *SupplyChainResource

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

func (*SupplyChainResource) DeepCopyInto

func (in *SupplyChainResource) DeepCopyInto(out *SupplyChainResource)

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

type SupplyChainSpec

type SupplyChainSpec struct {
	Resources                []SupplyChainResource             `json:"resources"`
	Params                   []DelegatableParam                `json:"params,omitempty"`
	ServiceAccountRef        ServiceAccountRef                 `json:"serviceAccountRef,omitempty"`
	Selector                 map[string]string                 `json:"selector,omitempty"`
	SelectorMatchExpressions []metav1.LabelSelectorRequirement `json:"selectorMatchExpressions,omitempty"`
	SelectorMatchFields      []FieldSelectorRequirement        `json:"selectorMatchFields,omitempty"`
}

func (*SupplyChainSpec) DeepCopy

func (in *SupplyChainSpec) DeepCopy() *SupplyChainSpec

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

func (*SupplyChainSpec) DeepCopyInto

func (in *SupplyChainSpec) DeepCopyInto(out *SupplyChainSpec)

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

type SupplyChainStatus

type SupplyChainStatus struct {
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
	ObservedGeneration int64              `json:"observedGeneration,omitempty"`
}

func (*SupplyChainStatus) DeepCopy

func (in *SupplyChainStatus) DeepCopy() *SupplyChainStatus

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

func (*SupplyChainStatus) DeepCopyInto

func (in *SupplyChainStatus) DeepCopyInto(out *SupplyChainStatus)

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

type SupplyChainTemplateReference

type SupplyChainTemplateReference struct {
	//+kubebuilder:validation:Enum=ClusterSourceTemplate;ClusterImageTemplate;ClusterTemplate;ClusterConfigTemplate
	Kind string `json:"kind"`
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`
}

func (*SupplyChainTemplateReference) DeepCopy

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

func (*SupplyChainTemplateReference) DeepCopyInto

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

type TemplateParam

type TemplateParam struct {
	Name         string               `json:"name"`
	DefaultValue apiextensionsv1.JSON `json:"default"`
}

func (*TemplateParam) DeepCopy

func (in *TemplateParam) DeepCopy() *TemplateParam

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

func (*TemplateParam) DeepCopyInto

func (in *TemplateParam) DeepCopyInto(out *TemplateParam)

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

type TemplateParams

type TemplateParams []TemplateParam

func (TemplateParams) DeepCopy

func (in TemplateParams) DeepCopy() TemplateParams

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

func (TemplateParams) DeepCopyInto

func (in TemplateParams) DeepCopyInto(out *TemplateParams)

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

type Workload

type Workload struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              WorkloadSpec   `json:"spec"`
	Status            WorkloadStatus `json:"status,omitempty"`
}

func (*Workload) DeepCopy

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.

func (*Workload) DeleteServiceClaimAnnotation

func (w *Workload) DeleteServiceClaimAnnotation(name string)

func (*Workload) DeprecationWarnings

func (w *Workload) DeprecationWarnings() []string

func (*Workload) GetGroupVersionKind

func (w *Workload) GetGroupVersionKind() schema.GroupVersionKind

func (*Workload) GetNotices added in v0.9.0

func (w *Workload) GetNotices(ctx context.Context) []string

func (*Workload) IsAnnotationExists added in v0.12.0

func (w *Workload) IsAnnotationExists(key string) bool

func (*Workload) IsLabelExists added in v0.12.0

func (w *Workload) IsLabelExists(key string) bool

func (*Workload) Load

func (w *Workload) Load(in io.Reader) error

func (*Workload) Merge

func (w *Workload) Merge(updates *Workload)

func (*Workload) MergeAnnotations

func (w *Workload) MergeAnnotations(key, value string)

func (*Workload) MergeLabels

func (w *Workload) MergeLabels(key, value string)

func (*Workload) MergeServiceClaimAnnotation added in v0.7.0

func (w *Workload) MergeServiceClaimAnnotation(name string, value interface{})

func (*Workload) RemoveAnnotations added in v0.12.0

func (w *Workload) RemoveAnnotations(key string)

func (*Workload) ReplaceMetadata added in v0.10.0

func (w *Workload) ReplaceMetadata(updates *Workload)

func (*Workload) Validate

func (w *Workload) Validate() validation.FieldErrors

type WorkloadBuild

type WorkloadBuild struct {
	Env []corev1.EnvVar `json:"env,omitempty"`
}

func (*WorkloadBuild) DeepCopy

func (in *WorkloadBuild) DeepCopy() *WorkloadBuild

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

func (*WorkloadBuild) DeepCopyInto

func (in *WorkloadBuild) DeepCopyInto(out *WorkloadBuild)

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

type WorkloadList

type WorkloadList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Workload `json:"items"`
}

func (*WorkloadList) DeepCopy

func (in *WorkloadList) DeepCopy() *WorkloadList

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

func (*WorkloadList) DeepCopyInto

func (in *WorkloadList) DeepCopyInto(out *WorkloadList)

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

func (*WorkloadList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkloadServiceClaim

type WorkloadServiceClaim struct {
	Name string                         `json:"name"`
	Ref  *WorkloadServiceClaimReference `json:"ref,omitempty"`
}

func NewServiceClaim

func NewServiceClaim(name string, serviceRef corev1.ObjectReference) WorkloadServiceClaim

func (*WorkloadServiceClaim) DeepCopy

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 {
	Params []Param         `json:"params,omitempty"`
	Source *Source         `json:"source,omitempty"`
	Build  *WorkloadBuild  `json:"build,omitempty"`
	Env    []corev1.EnvVar `json:"env,omitempty"`
	// Image is a pre-built image in a registry. It is an alternative to defining source
	// code.
	Image              string                       `json:"image,omitempty"`
	Resources          *corev1.ResourceRequirements `json:"resources,omitempty"`
	ServiceAccountName *string                      `json:"serviceAccountName,omitempty"`
	ServiceClaims      []WorkloadServiceClaim       `json:"serviceClaims,omitempty"`
}

func (*WorkloadSpec) DeepCopy

func (in *WorkloadSpec) DeepCopy() *WorkloadSpec

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

func (*WorkloadSpec) DeepCopyInto

func (in *WorkloadSpec) DeepCopyInto(out *WorkloadSpec)

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

func (*WorkloadSpec) DeleteServiceClaim

func (w *WorkloadSpec) DeleteServiceClaim(name string)

func (*WorkloadSpec) GetMavenSource added in v0.9.0

func (w *WorkloadSpec) GetMavenSource() *MavenSource

func (*WorkloadSpec) GetParam

func (w *WorkloadSpec) GetParam(key string, value interface{})

func (*WorkloadSpec) IsSourceFound added in v0.9.0

func (w *WorkloadSpec) IsSourceFound() bool

func (*WorkloadSpec) Merge

func (w *WorkloadSpec) Merge(updates *WorkloadSpec)

func (*WorkloadSpec) MergeAnnotationParams

func (w *WorkloadSpec) MergeAnnotationParams(key string, value string)

func (*WorkloadSpec) MergeBuildEnv

func (w *WorkloadSpec) MergeBuildEnv(env corev1.EnvVar)

func (*WorkloadSpec) MergeEnv

func (w *WorkloadSpec) MergeEnv(env corev1.EnvVar)

func (*WorkloadSpec) MergeGit

func (w *WorkloadSpec) MergeGit(git GitSource)

func (*WorkloadSpec) MergeImage

func (w *WorkloadSpec) MergeImage(image string)

func (*WorkloadSpec) MergeMavenSource added in v0.9.0

func (w *WorkloadSpec) MergeMavenSource(source MavenSource)

func (*WorkloadSpec) MergeParams

func (w *WorkloadSpec) MergeParams(key string, value interface{})

func (*WorkloadSpec) MergeResources

func (w *WorkloadSpec) MergeResources(r *corev1.ResourceRequirements)

func (*WorkloadSpec) MergeServiceAccountName added in v0.7.0

func (w *WorkloadSpec) MergeServiceAccountName(serviceAccountName string)

func (*WorkloadSpec) MergeServiceClaim

func (w *WorkloadSpec) MergeServiceClaim(sc WorkloadServiceClaim)

func (*WorkloadSpec) MergeSourceImage

func (w *WorkloadSpec) MergeSourceImage(image string)

func (*WorkloadSpec) MergeSubPath added in v0.6.0

func (w *WorkloadSpec) MergeSubPath(subPath string)

func (*WorkloadSpec) RemoveAnnotationParams

func (w *WorkloadSpec) RemoveAnnotationParams(name string)

func (*WorkloadSpec) RemoveBuildEnv

func (w *WorkloadSpec) RemoveBuildEnv(name string)

func (*WorkloadSpec) RemoveEnv

func (w *WorkloadSpec) RemoveEnv(name string)

func (*WorkloadSpec) RemoveParam

func (w *WorkloadSpec) RemoveParam(name string)

func (*WorkloadSpec) ResetSource

func (w *WorkloadSpec) ResetSource()

func (*WorkloadSpec) Validate

func (w *WorkloadSpec) Validate() validation.FieldErrors

func (*WorkloadSpec) ValidateMavenSource added in v0.9.0

func (w *WorkloadSpec) ValidateMavenSource() validation.FieldErrors

type WorkloadStatus

type WorkloadStatus struct {
	// ObservedGeneration refers to the metadata.Generation of the spec that resulted in
	// the current `status`.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Conditions describing this resource's reconcile state. The top level condition is
	// of type `Ready`, and follows these Kubernetes conventions:
	// https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties wokeignore:rule=master
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// SupplyChainRef is the Supply Chain resource that was used when this status was set.
	SupplyChainRef ObjectReference `json:"supplyChainRef,omitempty"`

	// Resources contain references to the objects created by the Supply Chain and the templates used to create them.
	// It also contains Inputs and Outputs that were passed between the templates as the Supply Chain was processed.
	Resources []RealizedResource `json:"resources,omitempty"`
}

func (*WorkloadStatus) DeepCopy

func (in *WorkloadStatus) DeepCopy() *WorkloadStatus

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

func (*WorkloadStatus) DeepCopyInto

func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)

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

Jump to

Keyboard shortcuts

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