v1alpha1

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kargo v1alpha1 API group +kubebuilder:object:generate=true +groupName=kargo.akuity.io

Index

Constants

View Source
const (
	// AnnotationKeyCreateActor is an annotation key that can be injected to a
	// resource by the Kargo control plane to indicate the actor that created
	// the resource.
	AnnotationKeyCreateActor = "kargo.akuity.io/create-actor"

	// AnnotationKeyRefresh is an annotation key that can be set on a resource
	// to trigger a refresh of the resource by the controller. The value of the
	// annotation is interpreted as a token, and any change to the value of the
	// annotation should trigger a reconciliation of the resource.
	AnnotationKeyRefresh = "kargo.akuity.io/refresh"

	// AnnotationKeyReverify is an annotation key that can be set on a Stage
	// resource to trigger the re-verification of its Freight. The value of the
	// annotation should either be the ID of the verification to be reverified,
	// or a JSON object with the structure of the VerificationRequest.
	AnnotationKeyReverify = "kargo.akuity.io/reverify"

	// AnnotationKeyAbort is an annotation key that can be set on a Stage
	// resource to abort the verification of its Freight. The value of the
	// annotation must be set to the identifier of the verification to be
	// aborted.
	AnnotationKeyAbort = "kargo.akuity.io/abort"

	// AnnotationKeyDescription is an annotation key that can be set on a
	// resource to provide a description of it. The value of the annotation may
	// be used by the Kargo UI to display additional information about the
	// resource.
	AnnotationKeyDescription = "kargo.akuity.io/description"

	AnnotationValueTrue = "true"
)
View Source
const (
	AnnotationKeyEventActor                  = "event.kargo.akuity.io/actor"
	AnnotationKeyEventProject                = "event.kargo.akuity.io/project"
	AnnotationKeyEventPromotionName          = "event.kargo.akuity.io/promotion-name"
	AnnotationKeyEventPromotionCreateTime    = "event.kargo.akuity.io/promotion-create-time"
	AnnotationKeyEventFreightAlias           = "event.kargo.akuity.io/freight-alias"
	AnnotationKeyEventFreightName            = "event.kargo.akuity.io/freight-name"
	AnnotationKeyEventFreightCreateTime      = "event.kargo.akuity.io/freight-create-time"
	AnnotationKeyEventFreightCommits         = "event.kargo.akuity.io/freight-commits"
	AnnotationKeyEventFreightImages          = "event.kargo.akuity.io/freight-images"
	AnnotationKeyEventFreightCharts          = "event.kargo.akuity.io/freight-charts"
	AnnotationKeyEventStageName              = "event.kargo.akuity.io/stage-name"
	AnnotationKeyEventAnalysisRunName        = "event.kargo.akuity.io/analysis-run-name"
	AnnotationKeyEventVerificationPending    = "event.kargo.akuity.io/verification-pending"
	AnnotationKeyEventVerificationStartTime  = "event.kargo.akuity.io/verification-start-time"
	AnnotationKeyEventVerificationFinishTime = "event.kargo.akuity.io/verification-finish-time"
)
View Source
const (
	EventReasonPromotionCreated                = "PromotionCreated"
	EventReasonPromotionSucceeded              = "PromotionSucceeded"
	EventReasonPromotionFailed                 = "PromotionFailed"
	EventReasonPromotionErrored                = "PromotionErrored"
	EventReasonFreightApproved                 = "FreightApproved"
	EventReasonFreightVerificationSucceeded    = "FreightVerificationSucceeded"
	EventReasonFreightVerificationFailed       = "FreightVerificationFailed"
	EventReasonFreightVerificationErrored      = "FreightVerificationErrored"
	EventReasonFreightVerificationAborted      = "FreightVerificationAborted"
	EventReasonFreightVerificationInconclusive = "FreightVerificationInconclusive"
	EventReasonFreightVerificationUnknown      = "FreightVerificationUnknown"
)
View Source
const (
	EventActorAdmin                = "admin"
	EventActorControllerPrefix     = "controller:"
	EventActorEmailPrefix          = "email:"
	EventActorSubjectPrefix        = "subject:"
	EventActorKubernetesUserPrefix = "kubernetes:"
	EventActorUnknown              = "unknown actor"
)
View Source
const (
	AliasLabelKey = "kargo.akuity.io/alias"

	// Credentials
	CredentialTypeLabelKey        = "kargo.akuity.io/cred-type" // nolint: gosec
	CredentialTypeLabelValueGit   = "git"
	CredentialTypeLabelValueHelm  = "helm"
	CredentialTypeLabelValueImage = "image"

	// Kargo core API
	FreightCollectionLabelKey = "kargo.akuity.io/freight-collection"
	ProjectLabelKey           = "kargo.akuity.io/project"
	PromotionLabelKey         = "kargo.akuity.io/promotion"
	ShardLabelKey             = "kargo.akuity.io/shard"
	StageLabelKey             = "kargo.akuity.io/stage"

	LabelTrueValue = "true"

	FinalizerName = "kargo.akuity.io/finalizer"

	V08CompatibilityLabelKey = "kargo.akuity.io/v0.8-compatible"
)

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{
		Group:   "kargo.akuity.io",
		Version: "v1alpha1",
	}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func AbortStageFreightVerification added in v0.5.0

func AbortStageFreightVerification(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
) error

AbortStageFreightVerification forces aborting the verification of the Freight associated with a Stage by setting an AnnotationKeyAbort annotation on the Stage, causing the controller to abort the verification. The annotation value is the identifier of the existing VerificationInfo for the Stage.

func AddV08CompatibilityLabel added in v0.8.0

func AddV08CompatibilityLabel(
	ctx context.Context,
	c client.Client,
	obj client.Object,
) error

AddV08CompatibilityLabel adds the v0.8 compatibility label to the given object.

func ComparePromotionByPhaseAndCreationTime added in v0.7.0

func ComparePromotionByPhaseAndCreationTime(a, b Promotion) int

ComparePromotionByPhaseAndCreationTime compares two Promotions by their phase and creation timestamp. It returns a negative value if Promotion `a` should come before Promotion `b`, a positive value if Promotion `a` should come after Promotion `b`, or zero if they are considered equal for sorting purposes. It can be used in conjunction with slices.SortFunc to sort a list of Promotions.

The order of Promotions is as follows:

  1. Running Promotions
  2. Non-terminal Promotions (ordered by ULID in ascending order)
  3. Terminal Promotions (ordered by ULID in descending order)

func ComparePromotionPhase added in v0.7.0

func ComparePromotionPhase(a, b PromotionPhase) int

ComparePromotionPhase compares two Promotion phases. It returns a negative value if phase `a` should come before phase `b`, a positive value if phase `a` should come after phase `b`, or zero if they are considered equal for sorting purposes. It can be used in combination with slices.SortFunc to sort a list of Promotion phases.

The order of Promotion phases is as follows:

  1. Running
  2. Non-terminal phases
  3. Terminal phases

func EnsureFinalizer added in v0.8.0

func EnsureFinalizer(ctx context.Context, c client.Client, obj client.Object) (bool, error)

func FormatEventControllerActor added in v0.6.0

func FormatEventControllerActor(name string) string

func FormatEventKubernetesUserActor added in v0.6.0

func FormatEventKubernetesUserActor(u authnv1.UserInfo) string

func FormatEventUserActor added in v0.6.0

func FormatEventUserActor(u user.Info) string

FormatEventUserActor returns a string representation of the user acting in an event that can be used as a value of AnnotationKeyEventActor.

1. If the user is admin, it returns EventActorAdmin since other information is not available. 2. If the email is available, it returns email in "email:<email>" format. 3. If the subject is available, it returns subject in "subject:<subject>" format. 4. Otherwise, it returns EventActorUnknown.

func IsFreightAvailable added in v0.3.0

func IsFreightAvailable(
	freight *Freight,
	stage string,
	upstreamStages []string,
) bool

IsFreightAvailable answers whether the specified Freight is available to the specified Stage having the specified upstream stages. Freight is available if:

  1. No upstreamStages are specified OR
  2. The Freight has been verified in ANY of the specified upstream stages OR
  3. The Freight is approved for the specified stage

Note: The rationale for returning true when no upstream stages are specified is that some Stages have no upstream Stages (e.g. a Stage that subscribes to a Warehouse), so ANY Freight is available to such a Stage.

func NewFreightApprovedEventAnnotations added in v0.6.0

func NewFreightApprovedEventAnnotations(actor string, f *Freight, stageName string) map[string]string

func NewPromotionEventAnnotations added in v0.6.0

func NewPromotionEventAnnotations(
	ctx context.Context,
	actor string,
	p *Promotion,
	f *Freight,
) map[string]string

NewPromotionEventAnnotations returns annotations for a Promotion related event. It may skip some fields when error occurred during serialization, to record event with best-effort.

func PatchOwnerReferences added in v0.8.0

func PatchOwnerReferences(ctx context.Context, c client.Client, obj client.Object) error

func RefreshAnnotationValue added in v0.6.0

func RefreshAnnotationValue(annotations map[string]string) (string, bool)

RefreshAnnotationValue returns the value of the AnnotationKeyRefresh annotation which can be used to detect changes, and a boolean indicating whether the annotation was present.

func RemoveFinalizer added in v0.8.0

func RemoveFinalizer(ctx context.Context, c client.Client, obj client.Object) error

func ReverifyStageFreight added in v0.5.0

func ReverifyStageFreight(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
) error

ReverifyStageFreight forces reconfirmation of the verification of the Freight associated with a Stage by setting an AnnotationKeyReverify annotation on the Stage, causing the controller to rerun the verification. The annotation value is the identifier of the existing VerificationInfo for the Stage.

Types

type AnalysisRunArgument added in v0.3.0

type AnalysisRunArgument struct {
	// Name is the name of the argument.
	//
	// +kubebuilder:validation:Required
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// Value is the value of the argument.
	//
	// +kubebuilder:validation:Required
	Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"`
}

AnalysisRunArgument represents an argument to be added to an AnalysisRun.

func (*AnalysisRunArgument) DeepCopy added in v0.3.0

func (in *AnalysisRunArgument) DeepCopy() *AnalysisRunArgument

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

func (*AnalysisRunArgument) DeepCopyInto added in v0.3.0

func (in *AnalysisRunArgument) DeepCopyInto(out *AnalysisRunArgument)

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

func (*AnalysisRunArgument) Descriptor added in v0.5.0

func (*AnalysisRunArgument) Descriptor() ([]byte, []int)

func (*AnalysisRunArgument) Marshal added in v0.5.0

func (m *AnalysisRunArgument) Marshal() (dAtA []byte, err error)

func (*AnalysisRunArgument) MarshalTo added in v0.5.0

func (m *AnalysisRunArgument) MarshalTo(dAtA []byte) (int, error)

func (*AnalysisRunArgument) MarshalToSizedBuffer added in v0.5.0

func (m *AnalysisRunArgument) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnalysisRunArgument) ProtoMessage added in v0.5.0

func (*AnalysisRunArgument) ProtoMessage()

func (*AnalysisRunArgument) Reset added in v0.5.0

func (m *AnalysisRunArgument) Reset()

func (*AnalysisRunArgument) Size added in v0.5.0

func (m *AnalysisRunArgument) Size() (n int)

func (*AnalysisRunArgument) String added in v0.5.0

func (this *AnalysisRunArgument) String() string

func (*AnalysisRunArgument) Unmarshal added in v0.5.0

func (m *AnalysisRunArgument) Unmarshal(dAtA []byte) error

func (*AnalysisRunArgument) XXX_DiscardUnknown added in v0.5.0

func (m *AnalysisRunArgument) XXX_DiscardUnknown()

func (*AnalysisRunArgument) XXX_Marshal added in v0.5.0

func (m *AnalysisRunArgument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnalysisRunArgument) XXX_Merge added in v0.5.0

func (m *AnalysisRunArgument) XXX_Merge(src proto.Message)

func (*AnalysisRunArgument) XXX_Size added in v0.5.0

func (m *AnalysisRunArgument) XXX_Size() int

func (*AnalysisRunArgument) XXX_Unmarshal added in v0.5.0

func (m *AnalysisRunArgument) XXX_Unmarshal(b []byte) error

type AnalysisRunMetadata added in v0.3.0

type AnalysisRunMetadata struct {
	// Additional labels to apply to an AnalysisRun.
	Labels map[string]string `` /* 132-byte string literal not displayed */
	// Additional annotations to apply to an AnalysisRun.
	Annotations map[string]string `` /* 142-byte string literal not displayed */
}

AnalysisRunMetadata contains optional metadata that should be applied to all AnalysisRuns.

func (*AnalysisRunMetadata) DeepCopy added in v0.3.0

func (in *AnalysisRunMetadata) DeepCopy() *AnalysisRunMetadata

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

func (*AnalysisRunMetadata) DeepCopyInto added in v0.3.0

func (in *AnalysisRunMetadata) DeepCopyInto(out *AnalysisRunMetadata)

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

func (*AnalysisRunMetadata) Descriptor added in v0.5.0

func (*AnalysisRunMetadata) Descriptor() ([]byte, []int)

func (*AnalysisRunMetadata) Marshal added in v0.5.0

func (m *AnalysisRunMetadata) Marshal() (dAtA []byte, err error)

func (*AnalysisRunMetadata) MarshalTo added in v0.5.0

func (m *AnalysisRunMetadata) MarshalTo(dAtA []byte) (int, error)

func (*AnalysisRunMetadata) MarshalToSizedBuffer added in v0.5.0

func (m *AnalysisRunMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnalysisRunMetadata) ProtoMessage added in v0.5.0

func (*AnalysisRunMetadata) ProtoMessage()

func (*AnalysisRunMetadata) Reset added in v0.5.0

func (m *AnalysisRunMetadata) Reset()

func (*AnalysisRunMetadata) Size added in v0.5.0

func (m *AnalysisRunMetadata) Size() (n int)

func (*AnalysisRunMetadata) String added in v0.5.0

func (this *AnalysisRunMetadata) String() string

func (*AnalysisRunMetadata) Unmarshal added in v0.5.0

func (m *AnalysisRunMetadata) Unmarshal(dAtA []byte) error

func (*AnalysisRunMetadata) XXX_DiscardUnknown added in v0.5.0

func (m *AnalysisRunMetadata) XXX_DiscardUnknown()

func (*AnalysisRunMetadata) XXX_Marshal added in v0.5.0

func (m *AnalysisRunMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnalysisRunMetadata) XXX_Merge added in v0.5.0

func (m *AnalysisRunMetadata) XXX_Merge(src proto.Message)

func (*AnalysisRunMetadata) XXX_Size added in v0.5.0

func (m *AnalysisRunMetadata) XXX_Size() int

func (*AnalysisRunMetadata) XXX_Unmarshal added in v0.5.0

func (m *AnalysisRunMetadata) XXX_Unmarshal(b []byte) error

type AnalysisRunReference added in v0.3.0

type AnalysisRunReference struct {
	// Namespace is the namespace of the AnalysisRun.
	Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"`
	// Name is the name of the AnalysisRun.
	Name string `json:"name" protobuf:"bytes,2,opt,name=name"`
	// Phase is the last observed phase of the AnalysisRun referenced by Name.
	Phase string `json:"phase" protobuf:"bytes,3,opt,name=phase"`
}

AnalysisRunReference is a reference to an AnalysisRun.

func (*AnalysisRunReference) DeepCopy added in v0.3.0

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

func (*AnalysisRunReference) DeepCopyInto added in v0.3.0

func (in *AnalysisRunReference) DeepCopyInto(out *AnalysisRunReference)

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

func (*AnalysisRunReference) Descriptor added in v0.5.0

func (*AnalysisRunReference) Descriptor() ([]byte, []int)

func (*AnalysisRunReference) Marshal added in v0.5.0

func (m *AnalysisRunReference) Marshal() (dAtA []byte, err error)

func (*AnalysisRunReference) MarshalTo added in v0.5.0

func (m *AnalysisRunReference) MarshalTo(dAtA []byte) (int, error)

func (*AnalysisRunReference) MarshalToSizedBuffer added in v0.5.0

func (m *AnalysisRunReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnalysisRunReference) ProtoMessage added in v0.5.0

func (*AnalysisRunReference) ProtoMessage()

func (*AnalysisRunReference) Reset added in v0.5.0

func (m *AnalysisRunReference) Reset()

func (*AnalysisRunReference) Size added in v0.5.0

func (m *AnalysisRunReference) Size() (n int)

func (*AnalysisRunReference) String added in v0.5.0

func (this *AnalysisRunReference) String() string

func (*AnalysisRunReference) Unmarshal added in v0.5.0

func (m *AnalysisRunReference) Unmarshal(dAtA []byte) error

func (*AnalysisRunReference) XXX_DiscardUnknown added in v0.5.0

func (m *AnalysisRunReference) XXX_DiscardUnknown()

func (*AnalysisRunReference) XXX_Marshal added in v0.5.0

func (m *AnalysisRunReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnalysisRunReference) XXX_Merge added in v0.5.0

func (m *AnalysisRunReference) XXX_Merge(src proto.Message)

func (*AnalysisRunReference) XXX_Size added in v0.5.0

func (m *AnalysisRunReference) XXX_Size() int

func (*AnalysisRunReference) XXX_Unmarshal added in v0.5.0

func (m *AnalysisRunReference) XXX_Unmarshal(b []byte) error

type AnalysisTemplateReference added in v0.3.0

type AnalysisTemplateReference struct {
	// Name is the name of the AnalysisTemplate in the same project/namespace as
	// the Stage.
	//
	// +kubebuilder:validation:Required
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
}

AnalysisTemplateReference is a reference to an AnalysisTemplate.

func (*AnalysisTemplateReference) DeepCopy added in v0.3.0

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

func (*AnalysisTemplateReference) DeepCopyInto added in v0.3.0

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

func (*AnalysisTemplateReference) Descriptor added in v0.5.0

func (*AnalysisTemplateReference) Descriptor() ([]byte, []int)

func (*AnalysisTemplateReference) Marshal added in v0.5.0

func (m *AnalysisTemplateReference) Marshal() (dAtA []byte, err error)

func (*AnalysisTemplateReference) MarshalTo added in v0.5.0

func (m *AnalysisTemplateReference) MarshalTo(dAtA []byte) (int, error)

func (*AnalysisTemplateReference) MarshalToSizedBuffer added in v0.5.0

func (m *AnalysisTemplateReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AnalysisTemplateReference) ProtoMessage added in v0.5.0

func (*AnalysisTemplateReference) ProtoMessage()

func (*AnalysisTemplateReference) Reset added in v0.5.0

func (m *AnalysisTemplateReference) Reset()

func (*AnalysisTemplateReference) Size added in v0.5.0

func (m *AnalysisTemplateReference) Size() (n int)

func (*AnalysisTemplateReference) String added in v0.5.0

func (this *AnalysisTemplateReference) String() string

func (*AnalysisTemplateReference) Unmarshal added in v0.5.0

func (m *AnalysisTemplateReference) Unmarshal(dAtA []byte) error

func (*AnalysisTemplateReference) XXX_DiscardUnknown added in v0.5.0

func (m *AnalysisTemplateReference) XXX_DiscardUnknown()

func (*AnalysisTemplateReference) XXX_Marshal added in v0.5.0

func (m *AnalysisTemplateReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnalysisTemplateReference) XXX_Merge added in v0.5.0

func (m *AnalysisTemplateReference) XXX_Merge(src proto.Message)

func (*AnalysisTemplateReference) XXX_Size added in v0.5.0

func (m *AnalysisTemplateReference) XXX_Size() int

func (*AnalysisTemplateReference) XXX_Unmarshal added in v0.5.0

func (m *AnalysisTemplateReference) XXX_Unmarshal(b []byte) error

type ApprovedStage added in v0.3.0

type ApprovedStage struct{}

ApprovedStage describes a Stage for which Freight has been (manually) approved.

func (*ApprovedStage) DeepCopy added in v0.3.0

func (in *ApprovedStage) DeepCopy() *ApprovedStage

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

func (*ApprovedStage) DeepCopyInto added in v0.3.0

func (in *ApprovedStage) DeepCopyInto(out *ApprovedStage)

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

func (*ApprovedStage) Descriptor added in v0.5.0

func (*ApprovedStage) Descriptor() ([]byte, []int)

func (*ApprovedStage) Marshal added in v0.5.0

func (m *ApprovedStage) Marshal() (dAtA []byte, err error)

func (*ApprovedStage) MarshalTo added in v0.5.0

func (m *ApprovedStage) MarshalTo(dAtA []byte) (int, error)

func (*ApprovedStage) MarshalToSizedBuffer added in v0.5.0

func (m *ApprovedStage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ApprovedStage) ProtoMessage added in v0.5.0

func (*ApprovedStage) ProtoMessage()

func (*ApprovedStage) Reset added in v0.5.0

func (m *ApprovedStage) Reset()

func (*ApprovedStage) Size added in v0.5.0

func (m *ApprovedStage) Size() (n int)

func (*ApprovedStage) String added in v0.5.0

func (this *ApprovedStage) String() string

func (*ApprovedStage) Unmarshal added in v0.5.0

func (m *ApprovedStage) Unmarshal(dAtA []byte) error

func (*ApprovedStage) XXX_DiscardUnknown added in v0.5.0

func (m *ApprovedStage) XXX_DiscardUnknown()

func (*ApprovedStage) XXX_Marshal added in v0.5.0

func (m *ApprovedStage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApprovedStage) XXX_Merge added in v0.5.0

func (m *ApprovedStage) XXX_Merge(src proto.Message)

func (*ApprovedStage) XXX_Size added in v0.5.0

func (m *ApprovedStage) XXX_Size() int

func (*ApprovedStage) XXX_Unmarshal added in v0.5.0

func (m *ApprovedStage) XXX_Unmarshal(b []byte) error

type ArgoCDAppHealthState

type ArgoCDAppHealthState string
const (
	ArgoCDAppHealthStateUnknown     ArgoCDAppHealthState = "Unknown"
	ArgoCDAppHealthStateProgressing ArgoCDAppHealthState = "Progressing"
	ArgoCDAppHealthStateHealthy     ArgoCDAppHealthState = "Healthy"
	ArgoCDAppHealthStateSuspended   ArgoCDAppHealthState = "Suspended"
	ArgoCDAppHealthStateDegraded    ArgoCDAppHealthState = "Degraded"
	ArgoCDAppHealthStateMissing     ArgoCDAppHealthState = "Missing"
)

type ArgoCDAppHealthStatus

type ArgoCDAppHealthStatus struct {
	Status  ArgoCDAppHealthState `json:"status" protobuf:"bytes,1,opt,name=status"`
	Message string               `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"`
}

ArgoCDAppHealthStatus describes the health of an ArgoCD Application.

func (*ArgoCDAppHealthStatus) DeepCopy

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

func (*ArgoCDAppHealthStatus) DeepCopyInto

func (in *ArgoCDAppHealthStatus) DeepCopyInto(out *ArgoCDAppHealthStatus)

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

func (*ArgoCDAppHealthStatus) Descriptor added in v0.5.0

func (*ArgoCDAppHealthStatus) Descriptor() ([]byte, []int)

func (*ArgoCDAppHealthStatus) Marshal added in v0.5.0

func (m *ArgoCDAppHealthStatus) Marshal() (dAtA []byte, err error)

func (*ArgoCDAppHealthStatus) MarshalTo added in v0.5.0

func (m *ArgoCDAppHealthStatus) MarshalTo(dAtA []byte) (int, error)

func (*ArgoCDAppHealthStatus) MarshalToSizedBuffer added in v0.5.0

func (m *ArgoCDAppHealthStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArgoCDAppHealthStatus) ProtoMessage added in v0.5.0

func (*ArgoCDAppHealthStatus) ProtoMessage()

func (*ArgoCDAppHealthStatus) Reset added in v0.5.0

func (m *ArgoCDAppHealthStatus) Reset()

func (*ArgoCDAppHealthStatus) Size added in v0.5.0

func (m *ArgoCDAppHealthStatus) Size() (n int)

func (*ArgoCDAppHealthStatus) String added in v0.5.0

func (this *ArgoCDAppHealthStatus) String() string

func (*ArgoCDAppHealthStatus) Unmarshal added in v0.5.0

func (m *ArgoCDAppHealthStatus) Unmarshal(dAtA []byte) error

func (*ArgoCDAppHealthStatus) XXX_DiscardUnknown added in v0.5.0

func (m *ArgoCDAppHealthStatus) XXX_DiscardUnknown()

func (*ArgoCDAppHealthStatus) XXX_Marshal added in v0.5.0

func (m *ArgoCDAppHealthStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArgoCDAppHealthStatus) XXX_Merge added in v0.5.0

func (m *ArgoCDAppHealthStatus) XXX_Merge(src proto.Message)

func (*ArgoCDAppHealthStatus) XXX_Size added in v0.5.0

func (m *ArgoCDAppHealthStatus) XXX_Size() int

func (*ArgoCDAppHealthStatus) XXX_Unmarshal added in v0.5.0

func (m *ArgoCDAppHealthStatus) XXX_Unmarshal(b []byte) error

type ArgoCDAppStatus

type ArgoCDAppStatus struct {
	// Namespace is the namespace of the ArgoCD Application.
	Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"`
	// Name is the name of the ArgoCD Application.
	Name string `json:"name" protobuf:"bytes,2,opt,name=name"`
	// HealthStatus is the health of the ArgoCD Application.
	HealthStatus ArgoCDAppHealthStatus `json:"healthStatus,omitempty" protobuf:"bytes,3,opt,name=healthStatus"`
	// SyncStatus is the sync status of the ArgoCD Application.
	SyncStatus ArgoCDAppSyncStatus `json:"syncStatus,omitempty" protobuf:"bytes,4,opt,name=syncStatus"`
}

ArgoCDAppStatus describes the current state of a single ArgoCD Application.

func (*ArgoCDAppStatus) DeepCopy

func (in *ArgoCDAppStatus) DeepCopy() *ArgoCDAppStatus

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

func (*ArgoCDAppStatus) DeepCopyInto

func (in *ArgoCDAppStatus) DeepCopyInto(out *ArgoCDAppStatus)

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

func (*ArgoCDAppStatus) Descriptor added in v0.5.0

func (*ArgoCDAppStatus) Descriptor() ([]byte, []int)

func (*ArgoCDAppStatus) Marshal added in v0.5.0

func (m *ArgoCDAppStatus) Marshal() (dAtA []byte, err error)

func (*ArgoCDAppStatus) MarshalTo added in v0.5.0

func (m *ArgoCDAppStatus) MarshalTo(dAtA []byte) (int, error)

func (*ArgoCDAppStatus) MarshalToSizedBuffer added in v0.5.0

func (m *ArgoCDAppStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArgoCDAppStatus) ProtoMessage added in v0.5.0

func (*ArgoCDAppStatus) ProtoMessage()

func (*ArgoCDAppStatus) Reset added in v0.5.0

func (m *ArgoCDAppStatus) Reset()

func (*ArgoCDAppStatus) Size added in v0.5.0

func (m *ArgoCDAppStatus) Size() (n int)

func (*ArgoCDAppStatus) String added in v0.5.0

func (this *ArgoCDAppStatus) String() string

func (*ArgoCDAppStatus) Unmarshal added in v0.5.0

func (m *ArgoCDAppStatus) Unmarshal(dAtA []byte) error

func (*ArgoCDAppStatus) XXX_DiscardUnknown added in v0.5.0

func (m *ArgoCDAppStatus) XXX_DiscardUnknown()

func (*ArgoCDAppStatus) XXX_Marshal added in v0.5.0

func (m *ArgoCDAppStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArgoCDAppStatus) XXX_Merge added in v0.5.0

func (m *ArgoCDAppStatus) XXX_Merge(src proto.Message)

func (*ArgoCDAppStatus) XXX_Size added in v0.5.0

func (m *ArgoCDAppStatus) XXX_Size() int

func (*ArgoCDAppStatus) XXX_Unmarshal added in v0.5.0

func (m *ArgoCDAppStatus) XXX_Unmarshal(b []byte) error

type ArgoCDAppSyncState

type ArgoCDAppSyncState string
const (
	ArgoCDAppSyncStateUnknown   ArgoCDAppSyncState = "Unknown"
	ArgoCDAppSyncStateSynced    ArgoCDAppSyncState = "Synced"
	ArgoCDAppSyncStateOutOfSync ArgoCDAppSyncState = "OutOfSync"
)

type ArgoCDAppSyncStatus

type ArgoCDAppSyncStatus struct {
	Status    ArgoCDAppSyncState `json:"status" protobuf:"bytes,1,opt,name=status"`
	Revision  string             `json:"revision,omitempty" protobuf:"bytes,2,opt,name=revision"`
	Revisions []string           `json:"revisions,omitempty" protobuf:"bytes,3,rep,name=revisions"`
}

ArgoCDAppSyncStatus describes the sync status of an ArgoCD Application.

func (*ArgoCDAppSyncStatus) DeepCopy

func (in *ArgoCDAppSyncStatus) DeepCopy() *ArgoCDAppSyncStatus

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

func (*ArgoCDAppSyncStatus) DeepCopyInto

func (in *ArgoCDAppSyncStatus) DeepCopyInto(out *ArgoCDAppSyncStatus)

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

func (*ArgoCDAppSyncStatus) Descriptor added in v0.5.0

func (*ArgoCDAppSyncStatus) Descriptor() ([]byte, []int)

func (*ArgoCDAppSyncStatus) Marshal added in v0.5.0

func (m *ArgoCDAppSyncStatus) Marshal() (dAtA []byte, err error)

func (*ArgoCDAppSyncStatus) MarshalTo added in v0.5.0

func (m *ArgoCDAppSyncStatus) MarshalTo(dAtA []byte) (int, error)

func (*ArgoCDAppSyncStatus) MarshalToSizedBuffer added in v0.5.0

func (m *ArgoCDAppSyncStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArgoCDAppSyncStatus) ProtoMessage added in v0.5.0

func (*ArgoCDAppSyncStatus) ProtoMessage()

func (*ArgoCDAppSyncStatus) Reset added in v0.5.0

func (m *ArgoCDAppSyncStatus) Reset()

func (*ArgoCDAppSyncStatus) Size added in v0.5.0

func (m *ArgoCDAppSyncStatus) Size() (n int)

func (*ArgoCDAppSyncStatus) String added in v0.5.0

func (this *ArgoCDAppSyncStatus) String() string

func (*ArgoCDAppSyncStatus) Unmarshal added in v0.5.0

func (m *ArgoCDAppSyncStatus) Unmarshal(dAtA []byte) error

func (*ArgoCDAppSyncStatus) XXX_DiscardUnknown added in v0.5.0

func (m *ArgoCDAppSyncStatus) XXX_DiscardUnknown()

func (*ArgoCDAppSyncStatus) XXX_Marshal added in v0.5.0

func (m *ArgoCDAppSyncStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArgoCDAppSyncStatus) XXX_Merge added in v0.5.0

func (m *ArgoCDAppSyncStatus) XXX_Merge(src proto.Message)

func (*ArgoCDAppSyncStatus) XXX_Size added in v0.5.0

func (m *ArgoCDAppSyncStatus) XXX_Size() int

func (*ArgoCDAppSyncStatus) XXX_Unmarshal added in v0.5.0

func (m *ArgoCDAppSyncStatus) XXX_Unmarshal(b []byte) error

type ArgoCDAppUpdate

type ArgoCDAppUpdate struct {
	// AppName specifies the name of an Argo CD Application resource to be
	// updated.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
	AppName string `json:"appName" protobuf:"bytes,1,opt,name=appName"`
	// AppNamespace specifies the namespace of an Argo CD Application resource to
	// be updated. If left unspecified, the namespace of this Application resource
	// will use the value of ARGOCD_NAMESPACE or "argocd"
	//
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
	AppNamespace string `json:"appNamespace,omitempty" protobuf:"bytes,2,opt,name=appNamespace"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional, but Promotions will fail if there
	// is ever ambiguity regarding which piece of Freight from which an artifact
	// is to be sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,4,opt,name=origin"`
	// SourceUpdates describes updates to be applied to various sources of the
	// specified Argo CD Application resource.
	SourceUpdates []ArgoCDSourceUpdate `json:"sourceUpdates,omitempty" protobuf:"bytes,3,rep,name=sourceUpdates"`
}

ArgoCDAppUpdate describes updates that should be applied to an Argo CD Application resources to incorporate Freight into a Stage.

func (*ArgoCDAppUpdate) DeepCopy

func (in *ArgoCDAppUpdate) DeepCopy() *ArgoCDAppUpdate

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

func (*ArgoCDAppUpdate) DeepCopyInto

func (in *ArgoCDAppUpdate) DeepCopyInto(out *ArgoCDAppUpdate)

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

func (*ArgoCDAppUpdate) Descriptor added in v0.5.0

func (*ArgoCDAppUpdate) Descriptor() ([]byte, []int)

func (*ArgoCDAppUpdate) Marshal added in v0.5.0

func (m *ArgoCDAppUpdate) Marshal() (dAtA []byte, err error)

func (*ArgoCDAppUpdate) MarshalTo added in v0.5.0

func (m *ArgoCDAppUpdate) MarshalTo(dAtA []byte) (int, error)

func (*ArgoCDAppUpdate) MarshalToSizedBuffer added in v0.5.0

func (m *ArgoCDAppUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArgoCDAppUpdate) ProtoMessage added in v0.5.0

func (*ArgoCDAppUpdate) ProtoMessage()

func (*ArgoCDAppUpdate) Reset added in v0.5.0

func (m *ArgoCDAppUpdate) Reset()

func (*ArgoCDAppUpdate) Size added in v0.5.0

func (m *ArgoCDAppUpdate) Size() (n int)

func (*ArgoCDAppUpdate) String added in v0.5.0

func (this *ArgoCDAppUpdate) String() string

func (*ArgoCDAppUpdate) Unmarshal added in v0.5.0

func (m *ArgoCDAppUpdate) Unmarshal(dAtA []byte) error

func (*ArgoCDAppUpdate) XXX_DiscardUnknown added in v0.5.0

func (m *ArgoCDAppUpdate) XXX_DiscardUnknown()

func (*ArgoCDAppUpdate) XXX_Marshal added in v0.5.0

func (m *ArgoCDAppUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArgoCDAppUpdate) XXX_Merge added in v0.5.0

func (m *ArgoCDAppUpdate) XXX_Merge(src proto.Message)

func (*ArgoCDAppUpdate) XXX_Size added in v0.5.0

func (m *ArgoCDAppUpdate) XXX_Size() int

func (*ArgoCDAppUpdate) XXX_Unmarshal added in v0.5.0

func (m *ArgoCDAppUpdate) XXX_Unmarshal(b []byte) error

type ArgoCDHelm

type ArgoCDHelm struct {
	// Images describes how specific image versions can be incorporated into an
	// Argo CD Application's Helm parameters.
	//
	// +kubebuilder:validation:MinItems=1
	Images []ArgoCDHelmImageUpdate `json:"images" protobuf:"bytes,1,rep,name=images"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing ArgoCDSourceUpdate's Origin
	// field. If that, too, is unspecified, Promotions will fail if there is ever
	// ambiguity regarding from which piece of Freight an artifact is to be
	// sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,2,opt,name=origin"`
}

ArgoCDHelm describes updates to an Argo CD Application source's Helm-specific attributes to incorporate newly observed Freight into a Stage.

func (*ArgoCDHelm) DeepCopy

func (in *ArgoCDHelm) DeepCopy() *ArgoCDHelm

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

func (*ArgoCDHelm) DeepCopyInto

func (in *ArgoCDHelm) DeepCopyInto(out *ArgoCDHelm)

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

func (*ArgoCDHelm) Descriptor added in v0.5.0

func (*ArgoCDHelm) Descriptor() ([]byte, []int)

func (*ArgoCDHelm) Marshal added in v0.5.0

func (m *ArgoCDHelm) Marshal() (dAtA []byte, err error)

func (*ArgoCDHelm) MarshalTo added in v0.5.0

func (m *ArgoCDHelm) MarshalTo(dAtA []byte) (int, error)

func (*ArgoCDHelm) MarshalToSizedBuffer added in v0.5.0

func (m *ArgoCDHelm) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArgoCDHelm) ProtoMessage added in v0.5.0

func (*ArgoCDHelm) ProtoMessage()

func (*ArgoCDHelm) Reset added in v0.5.0

func (m *ArgoCDHelm) Reset()

func (*ArgoCDHelm) Size added in v0.5.0

func (m *ArgoCDHelm) Size() (n int)

func (*ArgoCDHelm) String added in v0.5.0

func (this *ArgoCDHelm) String() string

func (*ArgoCDHelm) Unmarshal added in v0.5.0

func (m *ArgoCDHelm) Unmarshal(dAtA []byte) error

func (*ArgoCDHelm) XXX_DiscardUnknown added in v0.5.0

func (m *ArgoCDHelm) XXX_DiscardUnknown()

func (*ArgoCDHelm) XXX_Marshal added in v0.5.0

func (m *ArgoCDHelm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArgoCDHelm) XXX_Merge added in v0.5.0

func (m *ArgoCDHelm) XXX_Merge(src proto.Message)

func (*ArgoCDHelm) XXX_Size added in v0.5.0

func (m *ArgoCDHelm) XXX_Size() int

func (*ArgoCDHelm) XXX_Unmarshal added in v0.5.0

func (m *ArgoCDHelm) XXX_Unmarshal(b []byte) error

type ArgoCDHelmImageUpdate

type ArgoCDHelmImageUpdate struct {
	// Image specifies a container image (without tag). This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	Image string `json:"image" protobuf:"bytes,1,opt,name=image"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing ArgoCDHelm's Origin field. If
	// that, too, is unspecified, Promotions will fail if there is ever ambiguity
	// regarding from which piece of Freight an artifact is to be sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,4,opt,name=origin"`
	// Key specifies a key within an Argo CD Application's Helm parameters that is
	// to be updated. This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	Key string `json:"key" protobuf:"bytes,2,opt,name=key"`
	// Value specifies the new value for the specified key in the Argo CD
	// Application's Helm parameters. Valid values are:
	//
	// - ImageAndTag: Replaces the value of the specified key with
	//   <image name>:<tag>
	// - Tag: Replaces the value of the specified key with just the new tag
	// - ImageAndDigest: Replaces the value of the specified key with
	//   <image name>@<digest>
	// - Digest: Replaces the value of the specified key with just the new digest.
	//
	// This is a required field.
	Value ImageUpdateValueType `json:"value" protobuf:"bytes,3,opt,name=value"`
}

ArgoCDHelmImageUpdate describes how a specific image version can be incorporated into an Argo CD Application's Helm parameters.

func (*ArgoCDHelmImageUpdate) DeepCopy

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

func (*ArgoCDHelmImageUpdate) DeepCopyInto

func (in *ArgoCDHelmImageUpdate) DeepCopyInto(out *ArgoCDHelmImageUpdate)

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

func (*ArgoCDHelmImageUpdate) Descriptor added in v0.5.0

func (*ArgoCDHelmImageUpdate) Descriptor() ([]byte, []int)

func (*ArgoCDHelmImageUpdate) Marshal added in v0.5.0

func (m *ArgoCDHelmImageUpdate) Marshal() (dAtA []byte, err error)

func (*ArgoCDHelmImageUpdate) MarshalTo added in v0.5.0

func (m *ArgoCDHelmImageUpdate) MarshalTo(dAtA []byte) (int, error)

func (*ArgoCDHelmImageUpdate) MarshalToSizedBuffer added in v0.5.0

func (m *ArgoCDHelmImageUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArgoCDHelmImageUpdate) ProtoMessage added in v0.5.0

func (*ArgoCDHelmImageUpdate) ProtoMessage()

func (*ArgoCDHelmImageUpdate) Reset added in v0.5.0

func (m *ArgoCDHelmImageUpdate) Reset()

func (*ArgoCDHelmImageUpdate) Size added in v0.5.0

func (m *ArgoCDHelmImageUpdate) Size() (n int)

func (*ArgoCDHelmImageUpdate) String added in v0.5.0

func (this *ArgoCDHelmImageUpdate) String() string

func (*ArgoCDHelmImageUpdate) Unmarshal added in v0.5.0

func (m *ArgoCDHelmImageUpdate) Unmarshal(dAtA []byte) error

func (*ArgoCDHelmImageUpdate) XXX_DiscardUnknown added in v0.5.0

func (m *ArgoCDHelmImageUpdate) XXX_DiscardUnknown()

func (*ArgoCDHelmImageUpdate) XXX_Marshal added in v0.5.0

func (m *ArgoCDHelmImageUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArgoCDHelmImageUpdate) XXX_Merge added in v0.5.0

func (m *ArgoCDHelmImageUpdate) XXX_Merge(src proto.Message)

func (*ArgoCDHelmImageUpdate) XXX_Size added in v0.5.0

func (m *ArgoCDHelmImageUpdate) XXX_Size() int

func (*ArgoCDHelmImageUpdate) XXX_Unmarshal added in v0.5.0

func (m *ArgoCDHelmImageUpdate) XXX_Unmarshal(b []byte) error

type ArgoCDKustomize

type ArgoCDKustomize struct {
	// Images describes how specific image versions can be incorporated into an
	// Argo CD Application's Kustomize parameters.
	//
	// +kubebuilder:validation:MinItems=1
	Images []ArgoCDKustomizeImageUpdate `json:"images" protobuf:"bytes,1,rep,name=images"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing ArgoCDSourceUpdate's Origin
	// field. If that, too, is unspecified, Promotions will fail if there is ever
	// ambiguity regarding from which piece of Freight an artifact is to be
	// sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,2,opt,name=origin"`
}

ArgoCDKustomize describes updates to an Argo CD Application source's Kustomize-specific attributes to incorporate newly observed Freight into a Stage.

func (*ArgoCDKustomize) DeepCopy

func (in *ArgoCDKustomize) DeepCopy() *ArgoCDKustomize

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

func (*ArgoCDKustomize) DeepCopyInto

func (in *ArgoCDKustomize) DeepCopyInto(out *ArgoCDKustomize)

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

func (*ArgoCDKustomize) Descriptor added in v0.5.0

func (*ArgoCDKustomize) Descriptor() ([]byte, []int)

func (*ArgoCDKustomize) Marshal added in v0.5.0

func (m *ArgoCDKustomize) Marshal() (dAtA []byte, err error)

func (*ArgoCDKustomize) MarshalTo added in v0.5.0

func (m *ArgoCDKustomize) MarshalTo(dAtA []byte) (int, error)

func (*ArgoCDKustomize) MarshalToSizedBuffer added in v0.5.0

func (m *ArgoCDKustomize) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArgoCDKustomize) ProtoMessage added in v0.5.0

func (*ArgoCDKustomize) ProtoMessage()

func (*ArgoCDKustomize) Reset added in v0.5.0

func (m *ArgoCDKustomize) Reset()

func (*ArgoCDKustomize) Size added in v0.5.0

func (m *ArgoCDKustomize) Size() (n int)

func (*ArgoCDKustomize) String added in v0.5.0

func (this *ArgoCDKustomize) String() string

func (*ArgoCDKustomize) Unmarshal added in v0.5.0

func (m *ArgoCDKustomize) Unmarshal(dAtA []byte) error

func (*ArgoCDKustomize) XXX_DiscardUnknown added in v0.5.0

func (m *ArgoCDKustomize) XXX_DiscardUnknown()

func (*ArgoCDKustomize) XXX_Marshal added in v0.5.0

func (m *ArgoCDKustomize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArgoCDKustomize) XXX_Merge added in v0.5.0

func (m *ArgoCDKustomize) XXX_Merge(src proto.Message)

func (*ArgoCDKustomize) XXX_Size added in v0.5.0

func (m *ArgoCDKustomize) XXX_Size() int

func (*ArgoCDKustomize) XXX_Unmarshal added in v0.5.0

func (m *ArgoCDKustomize) XXX_Unmarshal(b []byte) error

type ArgoCDKustomizeImageUpdate added in v0.3.0

type ArgoCDKustomizeImageUpdate struct {
	// Image specifies a container image (without tag). This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	Image string `json:"image" protobuf:"bytes,1,opt,name=image"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing ArgoCDKustomize's Origin
	// field. If that, too, is unspecified, Promotions will fail if there is ever
	// ambiguity regarding from which piece of Freight an artifact is to be
	// sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,3,opt,name=origin"`
	// UseDigest specifies whether the image's digest should be used instead of
	// its tag.
	//
	// +kubebuilder:validation:Optional
	UseDigest bool `json:"useDigest" protobuf:"varint,2,opt,name=useDigest"`
}

ArgoCDKustomizeImageUpdate describes how a specific image version can be incorporated into an Argo CD Application's Kustomize parameters.

func (*ArgoCDKustomizeImageUpdate) DeepCopy added in v0.3.0

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

func (*ArgoCDKustomizeImageUpdate) DeepCopyInto added in v0.3.0

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

func (*ArgoCDKustomizeImageUpdate) Descriptor added in v0.5.0

func (*ArgoCDKustomizeImageUpdate) Descriptor() ([]byte, []int)

func (*ArgoCDKustomizeImageUpdate) Marshal added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) Marshal() (dAtA []byte, err error)

func (*ArgoCDKustomizeImageUpdate) MarshalTo added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) MarshalTo(dAtA []byte) (int, error)

func (*ArgoCDKustomizeImageUpdate) MarshalToSizedBuffer added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArgoCDKustomizeImageUpdate) ProtoMessage added in v0.5.0

func (*ArgoCDKustomizeImageUpdate) ProtoMessage()

func (*ArgoCDKustomizeImageUpdate) Reset added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) Reset()

func (*ArgoCDKustomizeImageUpdate) Size added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) Size() (n int)

func (*ArgoCDKustomizeImageUpdate) String added in v0.5.0

func (this *ArgoCDKustomizeImageUpdate) String() string

func (*ArgoCDKustomizeImageUpdate) Unmarshal added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) Unmarshal(dAtA []byte) error

func (*ArgoCDKustomizeImageUpdate) XXX_DiscardUnknown added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) XXX_DiscardUnknown()

func (*ArgoCDKustomizeImageUpdate) XXX_Marshal added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArgoCDKustomizeImageUpdate) XXX_Merge added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) XXX_Merge(src proto.Message)

func (*ArgoCDKustomizeImageUpdate) XXX_Size added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) XXX_Size() int

func (*ArgoCDKustomizeImageUpdate) XXX_Unmarshal added in v0.5.0

func (m *ArgoCDKustomizeImageUpdate) XXX_Unmarshal(b []byte) error

type ArgoCDSourceUpdate

type ArgoCDSourceUpdate struct {
	// RepoURL along with the Chart field identifies which of an Argo CD
	// Application's sources this update is intended for. Note: As of Argo CD 2.6,
	// Applications can use multiple sources. When the source to be updated
	// references a Helm chart repository, the values of the RepoURL and Chart
	// fields should exactly match the values of the fields of the same names in
	// the source. i.e. Do not match the values of these two fields to your
	// Warehouse; match them to the Application source you wish to update. This is
	// a required field.
	//
	// +kubebuilder:validation:MinLength=1
	RepoURL string `json:"repoURL" protobuf:"bytes,1,opt,name=repoURL"`
	// Chart along with the RepoURL field identifies which of an Argo CD
	// Application's sources this update is intended for. Note: As of Argo CD 2.6,
	// Applications can use multiple sources. When the source to be updated
	// references a Helm chart repository, the values of the RepoURL and Chart
	// fields should exactly match the values of the fields of the same names in
	// the source. i.e. Do not match the values of these two fields to your
	// Warehouse; match them to the Application source you wish to update.
	//
	// +kubebuilder:validation:Optional
	Chart string `json:"chart,omitempty" protobuf:"bytes,2,opt,name=chart"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing ArgoCDAppUpdate's Origin
	// field. If that, too, is unspecified, Promotions will fail if there is ever
	// ambiguity regarding from which piece of Freight an artifact is to be
	// sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,6,opt,name=origin"`
	// UpdateTargetRevision is a bool indicating whether the source should be
	// updated such that its TargetRevision field points at the most recently git
	// commit (if RepoURL references a git repository) or chart version (if
	// RepoURL references a chart repository).
	UpdateTargetRevision bool `json:"updateTargetRevision,omitempty" protobuf:"varint,3,opt,name=updateTargetRevision"`
	// Kustomize describes updates to the source's Kustomize-specific attributes.
	Kustomize *ArgoCDKustomize `json:"kustomize,omitempty" protobuf:"bytes,4,opt,name=kustomize"`
	// Helm describes updates to the source's Helm-specific attributes.
	Helm *ArgoCDHelm `json:"helm,omitempty" protobuf:"bytes,5,opt,name=helm"`
}

ArgoCDSourceUpdate describes updates that should be applied to one of an Argo CD Application resource's sources.

func (*ArgoCDSourceUpdate) DeepCopy

func (in *ArgoCDSourceUpdate) DeepCopy() *ArgoCDSourceUpdate

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

func (*ArgoCDSourceUpdate) DeepCopyInto

func (in *ArgoCDSourceUpdate) DeepCopyInto(out *ArgoCDSourceUpdate)

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

func (*ArgoCDSourceUpdate) Descriptor added in v0.5.0

func (*ArgoCDSourceUpdate) Descriptor() ([]byte, []int)

func (*ArgoCDSourceUpdate) Marshal added in v0.5.0

func (m *ArgoCDSourceUpdate) Marshal() (dAtA []byte, err error)

func (*ArgoCDSourceUpdate) MarshalTo added in v0.5.0

func (m *ArgoCDSourceUpdate) MarshalTo(dAtA []byte) (int, error)

func (*ArgoCDSourceUpdate) MarshalToSizedBuffer added in v0.5.0

func (m *ArgoCDSourceUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArgoCDSourceUpdate) ProtoMessage added in v0.5.0

func (*ArgoCDSourceUpdate) ProtoMessage()

func (*ArgoCDSourceUpdate) Reset added in v0.5.0

func (m *ArgoCDSourceUpdate) Reset()

func (*ArgoCDSourceUpdate) Size added in v0.5.0

func (m *ArgoCDSourceUpdate) Size() (n int)

func (*ArgoCDSourceUpdate) String added in v0.5.0

func (this *ArgoCDSourceUpdate) String() string

func (*ArgoCDSourceUpdate) Unmarshal added in v0.5.0

func (m *ArgoCDSourceUpdate) Unmarshal(dAtA []byte) error

func (*ArgoCDSourceUpdate) XXX_DiscardUnknown added in v0.5.0

func (m *ArgoCDSourceUpdate) XXX_DiscardUnknown()

func (*ArgoCDSourceUpdate) XXX_Marshal added in v0.5.0

func (m *ArgoCDSourceUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArgoCDSourceUpdate) XXX_Merge added in v0.5.0

func (m *ArgoCDSourceUpdate) XXX_Merge(src proto.Message)

func (*ArgoCDSourceUpdate) XXX_Size added in v0.5.0

func (m *ArgoCDSourceUpdate) XXX_Size() int

func (*ArgoCDSourceUpdate) XXX_Unmarshal added in v0.5.0

func (m *ArgoCDSourceUpdate) XXX_Unmarshal(b []byte) error

type Chart

type Chart struct {
	// RepoURL specifies the URL of a Helm chart repository. Classic chart
	// repositories (using HTTP/S) can contain differently named charts. When this
	// field points to such a repository, the Name field will specify the name of
	// the chart within the repository. In the case of a repository within an OCI
	// registry, the URL implicitly points to a specific chart and the Name field
	// will be empty.
	RepoURL string `json:"repoURL,omitempty" protobuf:"bytes,1,opt,name=repoURL"`
	// Name specifies the name of the chart.
	Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"`
	// Version specifies a particular version of the chart.
	Version string `json:"version,omitempty" protobuf:"bytes,3,opt,name=version"`
}

Chart describes a specific version of a Helm chart.

func (*Chart) DeepCopy

func (in *Chart) DeepCopy() *Chart

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

func (*Chart) DeepCopyInto

func (in *Chart) DeepCopyInto(out *Chart)

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

func (*Chart) DeepEquals added in v0.8.0

func (c *Chart) DeepEquals(other *Chart) bool

DeepEquals returns a bool indicating whether the receiver deep-equals the provided Chart. I.e., all fields must be equal.

func (*Chart) Descriptor added in v0.5.0

func (*Chart) Descriptor() ([]byte, []int)

func (*Chart) Marshal added in v0.5.0

func (m *Chart) Marshal() (dAtA []byte, err error)

func (*Chart) MarshalTo added in v0.5.0

func (m *Chart) MarshalTo(dAtA []byte) (int, error)

func (*Chart) MarshalToSizedBuffer added in v0.5.0

func (m *Chart) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Chart) ProtoMessage added in v0.5.0

func (*Chart) ProtoMessage()

func (*Chart) Reset added in v0.5.0

func (m *Chart) Reset()

func (*Chart) Size added in v0.5.0

func (m *Chart) Size() (n int)

func (*Chart) String added in v0.5.0

func (this *Chart) String() string

func (*Chart) Unmarshal added in v0.5.0

func (m *Chart) Unmarshal(dAtA []byte) error

func (*Chart) XXX_DiscardUnknown added in v0.5.0

func (m *Chart) XXX_DiscardUnknown()

func (*Chart) XXX_Marshal added in v0.5.0

func (m *Chart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Chart) XXX_Merge added in v0.5.0

func (m *Chart) XXX_Merge(src proto.Message)

func (*Chart) XXX_Size added in v0.5.0

func (m *Chart) XXX_Size() int

func (*Chart) XXX_Unmarshal added in v0.5.0

func (m *Chart) XXX_Unmarshal(b []byte) error

type ChartDiscoveryResult added in v0.7.0

type ChartDiscoveryResult struct {
	// RepoURL is the repository URL of the Helm chart, as specified in the
	// ChartSubscription.
	//
	// +kubebuilder:validation:MinLength=1
	RepoURL string `json:"repoURL" protobuf:"bytes,1,opt,name=repoURL"`
	// Name is the name of the Helm chart, as specified in the ChartSubscription.
	Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"`
	// SemverConstraint is the constraint for which versions were discovered.
	// This field is optional, and only populated if the ChartSubscription
	// specifies a SemverConstraint.
	SemverConstraint string `json:"semverConstraint,omitempty" protobuf:"bytes,3,opt,name=semverConstraint"`
	// Versions is a list of versions discovered by the Warehouse for the
	// ChartSubscription. An empty list indicates that the discovery operation was
	// successful, but no versions matching the ChartSubscription criteria were
	// found.
	//
	// +optional
	Versions []string `json:"versions" protobuf:"bytes,4,rep,name=versions"`
}

ChartDiscoveryResult represents the result of a chart discovery operation for a ChartSubscription.

func (*ChartDiscoveryResult) DeepCopy added in v0.7.0

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

func (*ChartDiscoveryResult) DeepCopyInto added in v0.7.0

func (in *ChartDiscoveryResult) DeepCopyInto(out *ChartDiscoveryResult)

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

func (*ChartDiscoveryResult) Descriptor added in v0.7.0

func (*ChartDiscoveryResult) Descriptor() ([]byte, []int)

func (*ChartDiscoveryResult) Marshal added in v0.7.0

func (m *ChartDiscoveryResult) Marshal() (dAtA []byte, err error)

func (*ChartDiscoveryResult) MarshalTo added in v0.7.0

func (m *ChartDiscoveryResult) MarshalTo(dAtA []byte) (int, error)

func (*ChartDiscoveryResult) MarshalToSizedBuffer added in v0.7.0

func (m *ChartDiscoveryResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChartDiscoveryResult) ProtoMessage added in v0.7.0

func (*ChartDiscoveryResult) ProtoMessage()

func (*ChartDiscoveryResult) Reset added in v0.7.0

func (m *ChartDiscoveryResult) Reset()

func (*ChartDiscoveryResult) Size added in v0.7.0

func (m *ChartDiscoveryResult) Size() (n int)

func (*ChartDiscoveryResult) String added in v0.7.0

func (this *ChartDiscoveryResult) String() string

func (*ChartDiscoveryResult) Unmarshal added in v0.7.0

func (m *ChartDiscoveryResult) Unmarshal(dAtA []byte) error

func (*ChartDiscoveryResult) XXX_DiscardUnknown added in v0.7.0

func (m *ChartDiscoveryResult) XXX_DiscardUnknown()

func (*ChartDiscoveryResult) XXX_Marshal added in v0.7.0

func (m *ChartDiscoveryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChartDiscoveryResult) XXX_Merge added in v0.7.0

func (m *ChartDiscoveryResult) XXX_Merge(src proto.Message)

func (*ChartDiscoveryResult) XXX_Size added in v0.7.0

func (m *ChartDiscoveryResult) XXX_Size() int

func (*ChartDiscoveryResult) XXX_Unmarshal added in v0.7.0

func (m *ChartDiscoveryResult) XXX_Unmarshal(b []byte) error

type ChartSubscription

type ChartSubscription struct {
	// RepoURL specifies the URL of a Helm chart repository. It may be a classic
	// chart repository (using HTTP/S) OR a repository within an OCI registry.
	// Classic chart repositories can contain differently named charts. When this
	// field points to such a repository, the Name field MUST also be used
	// to specify the name of the desired chart within that repository. In the
	// case of a repository within an OCI registry, the URL implicitly points to
	// a specific chart and the Name field MUST NOT be used. The RepoURL field is
	// required.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^(((https?)|(oci))://)([\w\d\.\-]+)(:[\d]+)?(/.*)*$`
	RepoURL string `json:"repoURL" protobuf:"bytes,1,opt,name=repoURL"`
	// Name specifies the name of a Helm chart to subscribe to within a classic
	// chart repository specified by the RepoURL field. This field is required
	// when the RepoURL field points to a classic chart repository and MUST
	// otherwise be empty.
	Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"`
	// SemverConstraint specifies constraints on what new chart versions are
	// permissible. This field is optional. When left unspecified, there will be
	// no constraints, which means the latest version of the chart will always be
	// used. Care should be taken with leaving this field unspecified, as it can
	// lead to the unanticipated rollout of breaking changes.
	// More info: https://github.com/masterminds/semver#checking-version-constraints
	//
	// +kubebuilder:validation:Optional
	SemverConstraint string `json:"semverConstraint,omitempty" protobuf:"bytes,3,opt,name=semverConstraint"`
	// DiscoveryLimit is an optional limit on the number of chart versions that
	// can be discovered for this subscription. The limit is applied after
	// filtering charts based on the SemverConstraint field.
	// When left unspecified, the field is implicitly treated as if its value
	// were "20". The upper limit for this field is 100.
	//
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=100
	// +kubebuilder:default=20
	DiscoveryLimit int32 `json:"discoveryLimit,omitempty" protobuf:"varint,4,opt,name=discoveryLimit"`
}

ChartSubscription defines a subscription to a Helm chart repository.

func (*ChartSubscription) DeepCopy

func (in *ChartSubscription) DeepCopy() *ChartSubscription

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

func (*ChartSubscription) DeepCopyInto

func (in *ChartSubscription) DeepCopyInto(out *ChartSubscription)

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

func (*ChartSubscription) Descriptor added in v0.5.0

func (*ChartSubscription) Descriptor() ([]byte, []int)

func (*ChartSubscription) Marshal added in v0.5.0

func (m *ChartSubscription) Marshal() (dAtA []byte, err error)

func (*ChartSubscription) MarshalTo added in v0.5.0

func (m *ChartSubscription) MarshalTo(dAtA []byte) (int, error)

func (*ChartSubscription) MarshalToSizedBuffer added in v0.5.0

func (m *ChartSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChartSubscription) ProtoMessage added in v0.5.0

func (*ChartSubscription) ProtoMessage()

func (*ChartSubscription) Reset added in v0.5.0

func (m *ChartSubscription) Reset()

func (*ChartSubscription) Size added in v0.5.0

func (m *ChartSubscription) Size() (n int)

func (*ChartSubscription) String added in v0.5.0

func (this *ChartSubscription) String() string

func (*ChartSubscription) Unmarshal added in v0.5.0

func (m *ChartSubscription) Unmarshal(dAtA []byte) error

func (*ChartSubscription) XXX_DiscardUnknown added in v0.5.0

func (m *ChartSubscription) XXX_DiscardUnknown()

func (*ChartSubscription) XXX_Marshal added in v0.5.0

func (m *ChartSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChartSubscription) XXX_Merge added in v0.5.0

func (m *ChartSubscription) XXX_Merge(src proto.Message)

func (*ChartSubscription) XXX_Size added in v0.5.0

func (m *ChartSubscription) XXX_Size() int

func (*ChartSubscription) XXX_Unmarshal added in v0.5.0

func (m *ChartSubscription) XXX_Unmarshal(b []byte) error

type CommitSelectionStrategy added in v0.4.0

type CommitSelectionStrategy string

+kubebuilder:validation:Enum={Lexical,NewestFromBranch,NewestTag,SemVer}

const (
	CommitSelectionStrategyLexical          CommitSelectionStrategy = "Lexical"
	CommitSelectionStrategyNewestFromBranch CommitSelectionStrategy = "NewestFromBranch"
	CommitSelectionStrategyNewestTag        CommitSelectionStrategy = "NewestTag"
	CommitSelectionStrategySemVer           CommitSelectionStrategy = "SemVer"
)

type DiscoveredArtifacts added in v0.7.0

type DiscoveredArtifacts struct {
	// Git holds the commits discovered by the Warehouse for the Git
	// subscriptions.
	//
	// +optional
	Git []GitDiscoveryResult `json:"git,omitempty" protobuf:"bytes,1,rep,name=git"`
	// Images holds the image references discovered by the Warehouse for the
	// image subscriptions.
	//
	// +optional
	Images []ImageDiscoveryResult `json:"images,omitempty" protobuf:"bytes,2,rep,name=images"`
	// Charts holds the charts discovered by the Warehouse for the chart
	// subscriptions.
	//
	// +optional
	Charts []ChartDiscoveryResult `json:"charts,omitempty" protobuf:"bytes,3,rep,name=charts"`
}

DiscoveredArtifacts holds the artifacts discovered by the Warehouse for its subscriptions.

func (*DiscoveredArtifacts) DeepCopy added in v0.7.0

func (in *DiscoveredArtifacts) DeepCopy() *DiscoveredArtifacts

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

func (*DiscoveredArtifacts) DeepCopyInto added in v0.7.0

func (in *DiscoveredArtifacts) DeepCopyInto(out *DiscoveredArtifacts)

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

func (*DiscoveredArtifacts) Descriptor added in v0.7.0

func (*DiscoveredArtifacts) Descriptor() ([]byte, []int)

func (*DiscoveredArtifacts) Marshal added in v0.7.0

func (m *DiscoveredArtifacts) Marshal() (dAtA []byte, err error)

func (*DiscoveredArtifacts) MarshalTo added in v0.7.0

func (m *DiscoveredArtifacts) MarshalTo(dAtA []byte) (int, error)

func (*DiscoveredArtifacts) MarshalToSizedBuffer added in v0.7.0

func (m *DiscoveredArtifacts) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DiscoveredArtifacts) ProtoMessage added in v0.7.0

func (*DiscoveredArtifacts) ProtoMessage()

func (*DiscoveredArtifacts) Reset added in v0.7.0

func (m *DiscoveredArtifacts) Reset()

func (*DiscoveredArtifacts) Size added in v0.7.0

func (m *DiscoveredArtifacts) Size() (n int)

func (*DiscoveredArtifacts) String added in v0.7.0

func (this *DiscoveredArtifacts) String() string

func (*DiscoveredArtifacts) Unmarshal added in v0.7.0

func (m *DiscoveredArtifacts) Unmarshal(dAtA []byte) error

func (*DiscoveredArtifacts) XXX_DiscardUnknown added in v0.7.0

func (m *DiscoveredArtifacts) XXX_DiscardUnknown()

func (*DiscoveredArtifacts) XXX_Marshal added in v0.7.0

func (m *DiscoveredArtifacts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DiscoveredArtifacts) XXX_Merge added in v0.7.0

func (m *DiscoveredArtifacts) XXX_Merge(src proto.Message)

func (*DiscoveredArtifacts) XXX_Size added in v0.7.0

func (m *DiscoveredArtifacts) XXX_Size() int

func (*DiscoveredArtifacts) XXX_Unmarshal added in v0.7.0

func (m *DiscoveredArtifacts) XXX_Unmarshal(b []byte) error

type DiscoveredCommit added in v0.7.0

type DiscoveredCommit struct {
	// ID is the identifier of the commit. This typically is a SHA-1 hash.
	//
	// +kubebuilder:validation:MinLength=1
	ID string `json:"id,omitempty" protobuf:"bytes,1,opt,name=id"`
	// Branch is the branch in which the commit was found. This field is
	// optional, and populated based on the CommitSelectionStrategy of the
	// GitSubscription.
	Branch string `json:"branch,omitempty" protobuf:"bytes,2,opt,name=branch"`
	// Tag is the tag that resolved to this commit. This field is optional, and
	// populated based on the CommitSelectionStrategy of the GitSubscription.
	Tag string `json:"tag,omitempty" protobuf:"bytes,3,opt,name=tag"`
	// Subject is the subject of the commit (i.e. the first line of the commit
	// message).
	Subject string `json:"subject,omitempty" protobuf:"bytes,4,opt,name=subject"`
	// Author is the author of the commit.
	Author string `json:"author,omitempty" protobuf:"bytes,5,opt,name=author"`
	// Committer is the person who committed the commit.
	Committer string `json:"committer,omitempty" protobuf:"bytes,6,opt,name=committer"`
	// CreatorDate is the commit creation date as specified by the commit, or
	// the tagger date if the commit belongs to an annotated tag.
	CreatorDate *metav1.Time `json:"creatorDate,omitempty" protobuf:"bytes,7,opt,name=creatorDate"`
}

DiscoveredCommit represents a commit discovered by a Warehouse for a GitSubscription.

func (*DiscoveredCommit) DeepCopy added in v0.7.0

func (in *DiscoveredCommit) DeepCopy() *DiscoveredCommit

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

func (*DiscoveredCommit) DeepCopyInto added in v0.7.0

func (in *DiscoveredCommit) DeepCopyInto(out *DiscoveredCommit)

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

func (*DiscoveredCommit) Descriptor added in v0.7.0

func (*DiscoveredCommit) Descriptor() ([]byte, []int)

func (*DiscoveredCommit) Marshal added in v0.7.0

func (m *DiscoveredCommit) Marshal() (dAtA []byte, err error)

func (*DiscoveredCommit) MarshalTo added in v0.7.0

func (m *DiscoveredCommit) MarshalTo(dAtA []byte) (int, error)

func (*DiscoveredCommit) MarshalToSizedBuffer added in v0.7.0

func (m *DiscoveredCommit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DiscoveredCommit) ProtoMessage added in v0.7.0

func (*DiscoveredCommit) ProtoMessage()

func (*DiscoveredCommit) Reset added in v0.7.0

func (m *DiscoveredCommit) Reset()

func (*DiscoveredCommit) Size added in v0.7.0

func (m *DiscoveredCommit) Size() (n int)

func (*DiscoveredCommit) String added in v0.7.0

func (this *DiscoveredCommit) String() string

func (*DiscoveredCommit) Unmarshal added in v0.7.0

func (m *DiscoveredCommit) Unmarshal(dAtA []byte) error

func (*DiscoveredCommit) XXX_DiscardUnknown added in v0.7.0

func (m *DiscoveredCommit) XXX_DiscardUnknown()

func (*DiscoveredCommit) XXX_Marshal added in v0.7.0

func (m *DiscoveredCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DiscoveredCommit) XXX_Merge added in v0.7.0

func (m *DiscoveredCommit) XXX_Merge(src proto.Message)

func (*DiscoveredCommit) XXX_Size added in v0.7.0

func (m *DiscoveredCommit) XXX_Size() int

func (*DiscoveredCommit) XXX_Unmarshal added in v0.7.0

func (m *DiscoveredCommit) XXX_Unmarshal(b []byte) error

type DiscoveredImageReference added in v0.7.0

type DiscoveredImageReference struct {
	// Tag is the tag of the image.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=128
	// +kubebuilder:validation:Pattern=`^[\w.\-\_]+$`
	Tag string `json:"tag" protobuf:"bytes,1,opt,name=tag"`
	// Digest is the digest of the image.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^[a-z0-9]+:[a-f0-9]+$`
	Digest string `json:"digest" protobuf:"bytes,2,opt,name=digest"`
	// GitRepoURL is the URL of the Git repository that contains the source
	// code for this image. This field is optional, and only populated if the
	// ImageSubscription specifies a GitRepoURL.
	GitRepoURL string `json:"gitRepoURL,omitempty" protobuf:"bytes,3,opt,name=gitRepoURL"`
	// CreatedAt is the time the image was created. This field is optional, and
	// not populated for every ImageSelectionStrategy.
	CreatedAt *metav1.Time `json:"createdAt,omitempty" protobuf:"bytes,4,opt,name=createdAt"`
}

DiscoveredImageReference represents an image reference discovered by a Warehouse for an ImageSubscription.

func (*DiscoveredImageReference) DeepCopy added in v0.7.0

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

func (*DiscoveredImageReference) DeepCopyInto added in v0.7.0

func (in *DiscoveredImageReference) DeepCopyInto(out *DiscoveredImageReference)

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

func (*DiscoveredImageReference) Descriptor added in v0.7.0

func (*DiscoveredImageReference) Descriptor() ([]byte, []int)

func (*DiscoveredImageReference) Marshal added in v0.7.0

func (m *DiscoveredImageReference) Marshal() (dAtA []byte, err error)

func (*DiscoveredImageReference) MarshalTo added in v0.7.0

func (m *DiscoveredImageReference) MarshalTo(dAtA []byte) (int, error)

func (*DiscoveredImageReference) MarshalToSizedBuffer added in v0.7.0

func (m *DiscoveredImageReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DiscoveredImageReference) ProtoMessage added in v0.7.0

func (*DiscoveredImageReference) ProtoMessage()

func (*DiscoveredImageReference) Reset added in v0.7.0

func (m *DiscoveredImageReference) Reset()

func (*DiscoveredImageReference) Size added in v0.7.0

func (m *DiscoveredImageReference) Size() (n int)

func (*DiscoveredImageReference) String added in v0.7.0

func (this *DiscoveredImageReference) String() string

func (*DiscoveredImageReference) Unmarshal added in v0.7.0

func (m *DiscoveredImageReference) Unmarshal(dAtA []byte) error

func (*DiscoveredImageReference) XXX_DiscardUnknown added in v0.7.0

func (m *DiscoveredImageReference) XXX_DiscardUnknown()

func (*DiscoveredImageReference) XXX_Marshal added in v0.7.0

func (m *DiscoveredImageReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DiscoveredImageReference) XXX_Merge added in v0.7.0

func (m *DiscoveredImageReference) XXX_Merge(src proto.Message)

func (*DiscoveredImageReference) XXX_Size added in v0.7.0

func (m *DiscoveredImageReference) XXX_Size() int

func (*DiscoveredImageReference) XXX_Unmarshal added in v0.7.0

func (m *DiscoveredImageReference) XXX_Unmarshal(b []byte) error

type Freight

type Freight struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	// Alias is a human-friendly alias for a piece of Freight. This is an optional
	// field. A defaulting webhook will sync this field with the value of the
	// kargo.akuity.io/alias label. When the alias label is not present or differs
	// from the value of this field, the defaulting webhook will set the label to
	// the value of this field. If the alias label is present and this field is
	// empty, the defaulting webhook will set the value of this field to the value
	// of the alias label. If this field is empty and the alias label is not
	// present, the defaulting webhook will choose an available alias and assign
	// it to both the field and label.
	Alias string `json:"alias,omitempty" protobuf:"bytes,7,opt,name=alias"`
	// Warehouse is the name of the Warehouse that created this Freight. This is a
	// required field. TODO: It is not clear yet how this field should be set in
	// the case of user-defined Freight.
	//
	// Deprecated: Use Origin instead.
	Warehouse string `json:"warehouse,omitempty" protobuf:"bytes,8,opt,name=warehouse"`
	// Origin describes a kind of Freight in terms of its origin.
	//
	// +kubebuilder:validation:Required
	Origin FreightOrigin `json:"origin,omitempty" protobuf:"bytes,9,opt,name=origin"`
	// Commits describes specific Git repository commits.
	Commits []GitCommit `json:"commits,omitempty" protobuf:"bytes,3,rep,name=commits"`
	// Images describes specific versions of specific container images.
	Images []Image `json:"images,omitempty" protobuf:"bytes,4,rep,name=images"`
	// Charts describes specific versions of specific Helm charts.
	Charts []Chart `json:"charts,omitempty" protobuf:"bytes,5,rep,name=charts"`
	// Status describes the current status of this Freight.
	Status FreightStatus `json:"status,omitempty" protobuf:"bytes,6,opt,name=status"`
}

Freight represents a collection of versioned artifacts.

func GetFreight added in v0.2.0

func GetFreight(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
) (*Freight, error)

GetFreight returns a pointer to the Freight resource specified by the namespacedName argument. If no such resource is found, nil is returned instead.

func GetFreightByAlias added in v0.5.0

func GetFreightByAlias(
	ctx context.Context,
	c client.Client,
	project string,
	alias string,
) (*Freight, error)

GetFreightByAlias returns a pointer to the Freight resource specified by the project and alias arguments. If no such resource is found, nil is returned instead.

func GetFreightByNameOrAlias added in v0.5.0

func GetFreightByNameOrAlias(
	ctx context.Context,
	c client.Client,
	project string,
	name string,
	alias string,
) (*Freight, error)

GetFreightByNameOrAlias returns a pointer to the Freight resource specified by the project, and name OR alias arguments. If no such resource is found, nil is returned instead.

func (*Freight) DeepCopy

func (in *Freight) DeepCopy() *Freight

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

func (*Freight) DeepCopyInto

func (in *Freight) DeepCopyInto(out *Freight)

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

func (*Freight) DeepCopyObject added in v0.2.0

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

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

func (*Freight) Descriptor added in v0.5.0

func (*Freight) Descriptor() ([]byte, []int)

func (*Freight) GenerateID added in v0.5.0

func (f *Freight) GenerateID() string

GenerateID deterministically calculates a piece of Freight's ID based on its contents and returns it.

func (*Freight) GetStatus added in v0.2.0

func (f *Freight) GetStatus() *FreightStatus

func (*Freight) Marshal added in v0.5.0

func (m *Freight) Marshal() (dAtA []byte, err error)

func (*Freight) MarshalTo added in v0.5.0

func (m *Freight) MarshalTo(dAtA []byte) (int, error)

func (*Freight) MarshalToSizedBuffer added in v0.5.0

func (m *Freight) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Freight) ProtoMessage added in v0.5.0

func (*Freight) ProtoMessage()

func (*Freight) Reset added in v0.5.0

func (m *Freight) Reset()

func (*Freight) Size added in v0.5.0

func (m *Freight) Size() (n int)

func (*Freight) String added in v0.5.0

func (this *Freight) String() string

func (*Freight) Unmarshal added in v0.5.0

func (m *Freight) Unmarshal(dAtA []byte) error

func (*Freight) XXX_DiscardUnknown added in v0.5.0

func (m *Freight) XXX_DiscardUnknown()

func (*Freight) XXX_Marshal added in v0.5.0

func (m *Freight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Freight) XXX_Merge added in v0.5.0

func (m *Freight) XXX_Merge(src proto.Message)

func (*Freight) XXX_Size added in v0.5.0

func (m *Freight) XXX_Size() int

func (*Freight) XXX_Unmarshal added in v0.5.0

func (m *Freight) XXX_Unmarshal(b []byte) error

type FreightCollection added in v0.8.0

type FreightCollection struct {
	// ID is a unique and deterministically calculated identifier for the
	// FreightCollection. It is updated on each use of the UpdateOrPush method.
	ID string `json:"id" protobuf:"bytes,3,opt,name=id"`
	// Freight is a map of FreightReference objects, indexed by their Warehouse
	// origin.
	Freight map[string]FreightReference `` /* 130-byte string literal not displayed */
	// VerificationHistory is a stack of recent VerificationInfo. By default,
	// the last ten VerificationInfo are stored.
	VerificationHistory VerificationInfoStack `json:"verificationHistory,omitempty" protobuf:"bytes,2,rep,name=verificationHistory"`
}

FreightCollection is a collection of FreightReferences, each of which represents a piece of Freight that has been selected for deployment to a Stage.

func (*FreightCollection) DeepCopy added in v0.8.0

func (in *FreightCollection) DeepCopy() *FreightCollection

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

func (*FreightCollection) DeepCopyInto added in v0.8.0

func (in *FreightCollection) DeepCopyInto(out *FreightCollection)

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

func (*FreightCollection) Descriptor added in v0.8.0

func (*FreightCollection) Descriptor() ([]byte, []int)

func (*FreightCollection) Marshal added in v0.8.0

func (m *FreightCollection) Marshal() (dAtA []byte, err error)

func (*FreightCollection) MarshalTo added in v0.8.0

func (m *FreightCollection) MarshalTo(dAtA []byte) (int, error)

func (*FreightCollection) MarshalToSizedBuffer added in v0.8.0

func (m *FreightCollection) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FreightCollection) ProtoMessage added in v0.8.0

func (*FreightCollection) ProtoMessage()

func (*FreightCollection) References added in v0.8.0

func (f *FreightCollection) References() []FreightReference

References returns a slice of FreightReference objects from the FreightCollection. The slice is ordered by the origin of the FreightReference objects.

func (*FreightCollection) Reset added in v0.8.0

func (m *FreightCollection) Reset()

func (*FreightCollection) Size added in v0.8.0

func (m *FreightCollection) Size() (n int)

func (*FreightCollection) String added in v0.8.0

func (this *FreightCollection) String() string

func (*FreightCollection) Unmarshal added in v0.8.0

func (m *FreightCollection) Unmarshal(dAtA []byte) error

func (*FreightCollection) UpdateOrPush added in v0.8.0

func (f *FreightCollection) UpdateOrPush(freight ...FreightReference)

UpdateOrPush updates the entry in the FreightCollection based on the Warehouse name of the provided FreightReference. If no such entry exists, the provided FreightReference is appended to the FreightCollection. This function is not concurrency-safe.

func (*FreightCollection) XXX_DiscardUnknown added in v0.8.0

func (m *FreightCollection) XXX_DiscardUnknown()

func (*FreightCollection) XXX_Marshal added in v0.8.0

func (m *FreightCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FreightCollection) XXX_Merge added in v0.8.0

func (m *FreightCollection) XXX_Merge(src proto.Message)

func (*FreightCollection) XXX_Size added in v0.8.0

func (m *FreightCollection) XXX_Size() int

func (*FreightCollection) XXX_Unmarshal added in v0.8.0

func (m *FreightCollection) XXX_Unmarshal(b []byte) error

type FreightCreationPolicy added in v0.7.0

type FreightCreationPolicy string

FreightCreationPolicy defines how Freight is created by a Warehouse. +kubebuilder:validation:Enum={Automatic,Manual}

const (
	// FreightCreationPolicyAutomatic indicates that Freight is created automatically.
	FreightCreationPolicyAutomatic FreightCreationPolicy = "Automatic"
	// FreightCreationPolicyManual indicates that Freight is created manually.
	FreightCreationPolicyManual FreightCreationPolicy = "Manual"
)

type FreightHistory added in v0.8.0

type FreightHistory []*FreightCollection

FreightHistory is a linear list of FreightCollection items. The list is ordered by the time at which the FreightCollection was recorded, with the most recent (current) FreightCollection at the top of the list.

func (*FreightHistory) Current added in v0.8.0

func (f *FreightHistory) Current() *FreightCollection

Current returns the most recent (current) FreightCollection from the history.

func (FreightHistory) DeepCopy added in v0.8.0

func (in FreightHistory) DeepCopy() FreightHistory

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

func (FreightHistory) DeepCopyInto added in v0.8.0

func (in FreightHistory) DeepCopyInto(out *FreightHistory)

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

func (*FreightHistory) Record added in v0.8.0

func (f *FreightHistory) Record(freight ...*FreightCollection)

Record appends the provided FreightCollection as the most recent (current) FreightCollection in the history. I.e. The provided FreightCollection becomes the first item in the list. If the list grows beyond ten items, the bottom items are removed.

type FreightList added in v0.2.0

type FreightList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []Freight `json:"items" protobuf:"bytes,2,rep,name=items"`
}

FreightList is a list of Freight resources.

func (*FreightList) DeepCopy added in v0.2.0

func (in *FreightList) DeepCopy() *FreightList

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

func (*FreightList) DeepCopyInto added in v0.2.0

func (in *FreightList) DeepCopyInto(out *FreightList)

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

func (*FreightList) DeepCopyObject added in v0.2.0

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

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

func (*FreightList) Descriptor added in v0.5.0

func (*FreightList) Descriptor() ([]byte, []int)

func (*FreightList) Marshal added in v0.5.0

func (m *FreightList) Marshal() (dAtA []byte, err error)

func (*FreightList) MarshalTo added in v0.5.0

func (m *FreightList) MarshalTo(dAtA []byte) (int, error)

func (*FreightList) MarshalToSizedBuffer added in v0.5.0

func (m *FreightList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FreightList) ProtoMessage added in v0.5.0

func (*FreightList) ProtoMessage()

func (*FreightList) Reset added in v0.5.0

func (m *FreightList) Reset()

func (*FreightList) Size added in v0.5.0

func (m *FreightList) Size() (n int)

func (*FreightList) String added in v0.5.0

func (this *FreightList) String() string

func (*FreightList) Unmarshal added in v0.5.0

func (m *FreightList) Unmarshal(dAtA []byte) error

func (*FreightList) XXX_DiscardUnknown added in v0.5.0

func (m *FreightList) XXX_DiscardUnknown()

func (*FreightList) XXX_Marshal added in v0.5.0

func (m *FreightList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FreightList) XXX_Merge added in v0.5.0

func (m *FreightList) XXX_Merge(src proto.Message)

func (*FreightList) XXX_Size added in v0.5.0

func (m *FreightList) XXX_Size() int

func (*FreightList) XXX_Unmarshal added in v0.5.0

func (m *FreightList) XXX_Unmarshal(b []byte) error

type FreightOrigin added in v0.8.0

type FreightOrigin struct {
	// Kind is the kind of resource from which Freight may have originated. At
	// present, this can only be "Warehouse".
	//
	// +kubebuilder:validation:Required
	Kind FreightOriginKind `json:"kind" protobuf:"bytes,1,opt,name=kind"`
	// Name is the name of the resource of the kind indicated by the Kind field
	// from which Freight may originated.
	//
	// +kubebuilder:validation:Required
	Name string `json:"name" protobuf:"bytes,2,opt,name=name"`
}

FreightOrigin describes a kind of Freight in terms of where it may have originated.

+protobuf.options.(gogoproto.goproto_stringer)=false

func (*FreightOrigin) DeepCopy added in v0.8.0

func (in *FreightOrigin) DeepCopy() *FreightOrigin

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

func (*FreightOrigin) DeepCopyInto added in v0.8.0

func (in *FreightOrigin) DeepCopyInto(out *FreightOrigin)

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

func (*FreightOrigin) Descriptor added in v0.8.0

func (*FreightOrigin) Descriptor() ([]byte, []int)

func (*FreightOrigin) Equals added in v0.8.0

func (f *FreightOrigin) Equals(other *FreightOrigin) bool

func (*FreightOrigin) Marshal added in v0.8.0

func (m *FreightOrigin) Marshal() (dAtA []byte, err error)

func (*FreightOrigin) MarshalTo added in v0.8.0

func (m *FreightOrigin) MarshalTo(dAtA []byte) (int, error)

func (*FreightOrigin) MarshalToSizedBuffer added in v0.8.0

func (m *FreightOrigin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FreightOrigin) ProtoMessage added in v0.8.0

func (*FreightOrigin) ProtoMessage()

func (*FreightOrigin) Reset added in v0.8.0

func (m *FreightOrigin) Reset()

func (*FreightOrigin) Size added in v0.8.0

func (m *FreightOrigin) Size() (n int)

func (*FreightOrigin) String added in v0.8.0

func (f *FreightOrigin) String() string

func (*FreightOrigin) Unmarshal added in v0.8.0

func (m *FreightOrigin) Unmarshal(dAtA []byte) error

func (*FreightOrigin) XXX_DiscardUnknown added in v0.8.0

func (m *FreightOrigin) XXX_DiscardUnknown()

func (*FreightOrigin) XXX_Marshal added in v0.8.0

func (m *FreightOrigin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FreightOrigin) XXX_Merge added in v0.8.0

func (m *FreightOrigin) XXX_Merge(src proto.Message)

func (*FreightOrigin) XXX_Size added in v0.8.0

func (m *FreightOrigin) XXX_Size() int

func (*FreightOrigin) XXX_Unmarshal added in v0.8.0

func (m *FreightOrigin) XXX_Unmarshal(b []byte) error

type FreightOriginKind added in v0.8.0

type FreightOriginKind string

+kubebuilder:validation:Enum={Warehouse}

const FreightOriginKindWarehouse FreightOriginKind = "Warehouse"

type FreightReference added in v0.4.0

type FreightReference struct {
	// Name is system-assigned identifier that is derived deterministically from
	// the contents of the Freight. i.e. Two pieces of Freight can be compared for
	// equality by comparing their Names.
	Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
	// Warehouse is the name of the Warehouse that created this Freight.
	//
	// Deprecated: Use the Origin instead.
	Warehouse string `json:"warehouse,omitempty" protobuf:"bytes,6,opt,name=warehouse"`
	// Origin describes a kind of Freight in terms of its origin.
	Origin FreightOrigin `json:"origin,omitempty" protobuf:"bytes,8,opt,name=origin"`
	// Commits describes specific Git repository commits.
	Commits []GitCommit `json:"commits,omitempty" protobuf:"bytes,2,rep,name=commits"`
	// Images describes specific versions of specific container images.
	Images []Image `json:"images,omitempty" protobuf:"bytes,3,rep,name=images"`
	// Charts describes specific versions of specific Helm charts.
	Charts []Chart `json:"charts,omitempty" protobuf:"bytes,4,rep,name=charts"`
	// VerificationInfo is information about any verification process that was
	// associated with this Freight for this Stage.
	//
	// Deprecated: Use FreightCollection.VerificationHistory instead.
	VerificationInfo *VerificationInfo `json:"verificationInfo,omitempty" protobuf:"bytes,5,opt,name=verificationInfo"`
	// VerificationHistory is a stack of recent VerificationInfo. By default,
	// the last ten VerificationInfo are stored.
	//
	// Deprecated: Use FreightCollection.VerificationHistory instead.
	VerificationHistory VerificationInfoStack `json:"verificationHistory,omitempty" protobuf:"bytes,7,rep,name=verificationHistory"`
}

FreightReference is a simplified representation of a piece of Freight -- not a root resource type.

func (*FreightReference) DeepCopy added in v0.4.0

func (in *FreightReference) DeepCopy() *FreightReference

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

func (*FreightReference) DeepCopyInto added in v0.4.0

func (in *FreightReference) DeepCopyInto(out *FreightReference)

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

func (*FreightReference) Descriptor added in v0.5.0

func (*FreightReference) Descriptor() ([]byte, []int)

func (*FreightReference) Marshal added in v0.5.0

func (m *FreightReference) Marshal() (dAtA []byte, err error)

func (*FreightReference) MarshalTo added in v0.5.0

func (m *FreightReference) MarshalTo(dAtA []byte) (int, error)

func (*FreightReference) MarshalToSizedBuffer added in v0.5.0

func (m *FreightReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FreightReference) ProtoMessage added in v0.5.0

func (*FreightReference) ProtoMessage()

func (*FreightReference) Reset added in v0.5.0

func (m *FreightReference) Reset()

func (*FreightReference) Size added in v0.5.0

func (m *FreightReference) Size() (n int)

func (*FreightReference) String added in v0.5.0

func (this *FreightReference) String() string

func (*FreightReference) Unmarshal added in v0.5.0

func (m *FreightReference) Unmarshal(dAtA []byte) error

func (*FreightReference) XXX_DiscardUnknown added in v0.5.0

func (m *FreightReference) XXX_DiscardUnknown()

func (*FreightReference) XXX_Marshal added in v0.5.0

func (m *FreightReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FreightReference) XXX_Merge added in v0.5.0

func (m *FreightReference) XXX_Merge(src proto.Message)

func (*FreightReference) XXX_Size added in v0.5.0

func (m *FreightReference) XXX_Size() int

func (*FreightReference) XXX_Unmarshal added in v0.5.0

func (m *FreightReference) XXX_Unmarshal(b []byte) error

type FreightReferenceStack deprecated added in v0.4.0

type FreightReferenceStack []FreightReference

FreightReferenceStack is a linear stack of FreightReferences.

Deprecated: Use FreightHistory instead.

func (FreightReferenceStack) DeepCopy added in v0.4.0

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

func (FreightReferenceStack) DeepCopyInto added in v0.4.0

func (in FreightReferenceStack) DeepCopyInto(out *FreightReferenceStack)

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

func (*FreightReferenceStack) Push added in v0.4.0

func (f *FreightReferenceStack) Push(freight ...FreightReference)

Push appends the provided FreightReference to the top of the stack. If the stack grows beyond 10 items, the bottom items are removed.

func (*FreightReferenceStack) UpdateOrPush added in v0.5.0

func (f *FreightReferenceStack) UpdateOrPush(freight ...FreightReference)

UpdateOrPush updates the first FreightReference with the same name as the provided FreightReference or appends the provided FreightReference to the stack if no such FreightReference is found.

The order of existing items in the stack is preserved, and new items without a matching name are appended to the top of the stack. If the stack grows beyond 10 items, the bottom items are removed.

type FreightRequest added in v0.8.0

type FreightRequest struct {
	// Origin specifies from where the requested Freight must have originated.
	// This is a required field.
	//
	// +kubebuilder:validation:Required
	Origin FreightOrigin `json:"origin" protobuf:"bytes,1,opt,name=origin"`
	// Sources describes where the requested Freight may be obtained from. This is
	// a required field.
	Sources FreightSources `json:"sources" protobuf:"bytes,2,opt,name=sources"`
}

FreightRequest expresses a Stage's need for Freight having originated from a particular Warehouse.

func (*FreightRequest) DeepCopy added in v0.8.0

func (in *FreightRequest) DeepCopy() *FreightRequest

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

func (*FreightRequest) DeepCopyInto added in v0.8.0

func (in *FreightRequest) DeepCopyInto(out *FreightRequest)

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

func (*FreightRequest) Descriptor added in v0.8.0

func (*FreightRequest) Descriptor() ([]byte, []int)

func (*FreightRequest) Marshal added in v0.8.0

func (m *FreightRequest) Marshal() (dAtA []byte, err error)

func (*FreightRequest) MarshalTo added in v0.8.0

func (m *FreightRequest) MarshalTo(dAtA []byte) (int, error)

func (*FreightRequest) MarshalToSizedBuffer added in v0.8.0

func (m *FreightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FreightRequest) ProtoMessage added in v0.8.0

func (*FreightRequest) ProtoMessage()

func (*FreightRequest) Reset added in v0.8.0

func (m *FreightRequest) Reset()

func (*FreightRequest) Size added in v0.8.0

func (m *FreightRequest) Size() (n int)

func (*FreightRequest) String added in v0.8.0

func (this *FreightRequest) String() string

func (*FreightRequest) Unmarshal added in v0.8.0

func (m *FreightRequest) Unmarshal(dAtA []byte) error

func (*FreightRequest) XXX_DiscardUnknown added in v0.8.0

func (m *FreightRequest) XXX_DiscardUnknown()

func (*FreightRequest) XXX_Marshal added in v0.8.0

func (m *FreightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FreightRequest) XXX_Merge added in v0.8.0

func (m *FreightRequest) XXX_Merge(src proto.Message)

func (*FreightRequest) XXX_Size added in v0.8.0

func (m *FreightRequest) XXX_Size() int

func (*FreightRequest) XXX_Unmarshal added in v0.8.0

func (m *FreightRequest) XXX_Unmarshal(b []byte) error

type FreightSources added in v0.8.0

type FreightSources struct {
	// Direct indicates the requested Freight may be obtained directly from the
	// Warehouse from which it originated. If this field's value is false, then
	// the value of the Stages field must be non-empty. i.e. Between the two
	// fields, at least one source must be specified.
	Direct bool `json:"direct,omitempty" protobuf:"varint,1,opt,name=direct"`
	// Stages identifies other "upstream" Stages as potential sources of the
	// requested Freight. If this field's value is empty, then the value of the
	// Direct field must be true. i.e. Between the two fields, at least on source
	// must be specified.
	Stages []string `json:"stages,omitempty" protobuf:"bytes,2,rep,name=stages"`
}

func (*FreightSources) DeepCopy added in v0.8.0

func (in *FreightSources) DeepCopy() *FreightSources

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

func (*FreightSources) DeepCopyInto added in v0.8.0

func (in *FreightSources) DeepCopyInto(out *FreightSources)

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

func (*FreightSources) Descriptor added in v0.8.0

func (*FreightSources) Descriptor() ([]byte, []int)

func (*FreightSources) Marshal added in v0.8.0

func (m *FreightSources) Marshal() (dAtA []byte, err error)

func (*FreightSources) MarshalTo added in v0.8.0

func (m *FreightSources) MarshalTo(dAtA []byte) (int, error)

func (*FreightSources) MarshalToSizedBuffer added in v0.8.0

func (m *FreightSources) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FreightSources) ProtoMessage added in v0.8.0

func (*FreightSources) ProtoMessage()

func (*FreightSources) Reset added in v0.8.0

func (m *FreightSources) Reset()

func (*FreightSources) Size added in v0.8.0

func (m *FreightSources) Size() (n int)

func (*FreightSources) String added in v0.8.0

func (this *FreightSources) String() string

func (*FreightSources) Unmarshal added in v0.8.0

func (m *FreightSources) Unmarshal(dAtA []byte) error

func (*FreightSources) XXX_DiscardUnknown added in v0.8.0

func (m *FreightSources) XXX_DiscardUnknown()

func (*FreightSources) XXX_Marshal added in v0.8.0

func (m *FreightSources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FreightSources) XXX_Merge added in v0.8.0

func (m *FreightSources) XXX_Merge(src proto.Message)

func (*FreightSources) XXX_Size added in v0.8.0

func (m *FreightSources) XXX_Size() int

func (*FreightSources) XXX_Unmarshal added in v0.8.0

func (m *FreightSources) XXX_Unmarshal(b []byte) error

type FreightStatus added in v0.2.0

type FreightStatus struct {
	// VerifiedIn describes the Stages in which this Freight has been verified
	// through promotion and subsequent health checks.
	VerifiedIn map[string]VerifiedStage `` /* 140-byte string literal not displayed */
	// ApprovedFor describes the Stages for which this Freight has been approved
	// preemptively/manually by a user. This is useful for hotfixes, where one
	// might wish to promote a piece of Freight to a given Stage without
	// transiting the entire pipeline.
	ApprovedFor map[string]ApprovedStage `` /* 142-byte string literal not displayed */
}

FreightStatus describes a piece of Freight's most recently observed state.

func (*FreightStatus) DeepCopy added in v0.2.0

func (in *FreightStatus) DeepCopy() *FreightStatus

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

func (*FreightStatus) DeepCopyInto added in v0.2.0

func (in *FreightStatus) DeepCopyInto(out *FreightStatus)

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

func (*FreightStatus) Descriptor added in v0.5.0

func (*FreightStatus) Descriptor() ([]byte, []int)

func (*FreightStatus) Marshal added in v0.5.0

func (m *FreightStatus) Marshal() (dAtA []byte, err error)

func (*FreightStatus) MarshalTo added in v0.5.0

func (m *FreightStatus) MarshalTo(dAtA []byte) (int, error)

func (*FreightStatus) MarshalToSizedBuffer added in v0.5.0

func (m *FreightStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FreightStatus) ProtoMessage added in v0.5.0

func (*FreightStatus) ProtoMessage()

func (*FreightStatus) Reset added in v0.5.0

func (m *FreightStatus) Reset()

func (*FreightStatus) Size added in v0.5.0

func (m *FreightStatus) Size() (n int)

func (*FreightStatus) String added in v0.5.0

func (this *FreightStatus) String() string

func (*FreightStatus) Unmarshal added in v0.5.0

func (m *FreightStatus) Unmarshal(dAtA []byte) error

func (*FreightStatus) XXX_DiscardUnknown added in v0.5.0

func (m *FreightStatus) XXX_DiscardUnknown()

func (*FreightStatus) XXX_Marshal added in v0.5.0

func (m *FreightStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FreightStatus) XXX_Merge added in v0.5.0

func (m *FreightStatus) XXX_Merge(src proto.Message)

func (*FreightStatus) XXX_Size added in v0.5.0

func (m *FreightStatus) XXX_Size() int

func (*FreightStatus) XXX_Unmarshal added in v0.5.0

func (m *FreightStatus) XXX_Unmarshal(b []byte) error

type GitCommit

type GitCommit struct {
	// RepoURL is the URL of a Git repository.
	RepoURL string `json:"repoURL,omitempty" protobuf:"bytes,1,opt,name=repoURL"`
	// ID is the ID of a specific commit in the Git repository specified by
	// RepoURL.
	ID string `json:"id,omitempty" protobuf:"bytes,2,opt,name=id"`
	// Branch denotes the branch of the repository where this commit was found.
	Branch string `json:"branch,omitempty" protobuf:"bytes,3,opt,name=branch"`
	// Tag denotes a tag in the repository that matched selection criteria and
	// resolved to this commit.
	Tag string `json:"tag,omitempty" protobuf:"bytes,4,opt,name=tag"`
	// HealthCheckCommit is the ID of a specific commit. When specified,
	// assessments of Stage health will use this value (instead of ID) when
	// determining if applicable sources of Argo CD Application resources
	// associated with the Stage are or are not synced to this commit. Note that
	// there are cases (as in that of Kargo Render being utilized as a promotion
	// mechanism) wherein the value of this field may differ from the commit ID
	// found in the ID field.
	HealthCheckCommit string `json:"healthCheckCommit,omitempty" protobuf:"bytes,5,opt,name=healthCheckCommit"`
	// Message is the message associated with the commit. At present, this only
	// contains the first line (subject) of the commit message.
	Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
	// Author is the author of the commit.
	Author string `json:"author,omitempty" protobuf:"bytes,7,opt,name=author"`
	// Committer is the person who committed the commit.
	Committer string `json:"committer,omitempty" protobuf:"bytes,8,opt,name=committer"`
}

GitCommit describes a specific commit from a specific Git repository.

func (*GitCommit) DeepCopy

func (in *GitCommit) DeepCopy() *GitCommit

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

func (*GitCommit) DeepCopyInto

func (in *GitCommit) DeepCopyInto(out *GitCommit)

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

func (*GitCommit) DeepEquals added in v0.8.0

func (g *GitCommit) DeepEquals(other *GitCommit) bool

DeepEquals returns a bool indicating whether the receiver deep-equals the provided GitCommit. I.e., all fields must be equal.

func (*GitCommit) Descriptor added in v0.5.0

func (*GitCommit) Descriptor() ([]byte, []int)

func (*GitCommit) Equals

func (g *GitCommit) Equals(rhs *GitCommit) bool

Equals returns a bool indicating whether two GitCommits are equivalent.

func (*GitCommit) Marshal added in v0.5.0

func (m *GitCommit) Marshal() (dAtA []byte, err error)

func (*GitCommit) MarshalTo added in v0.5.0

func (m *GitCommit) MarshalTo(dAtA []byte) (int, error)

func (*GitCommit) MarshalToSizedBuffer added in v0.5.0

func (m *GitCommit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitCommit) ProtoMessage added in v0.5.0

func (*GitCommit) ProtoMessage()

func (*GitCommit) Reset added in v0.5.0

func (m *GitCommit) Reset()

func (*GitCommit) Size added in v0.5.0

func (m *GitCommit) Size() (n int)

func (*GitCommit) String added in v0.5.0

func (this *GitCommit) String() string

func (*GitCommit) Unmarshal added in v0.5.0

func (m *GitCommit) Unmarshal(dAtA []byte) error

func (*GitCommit) XXX_DiscardUnknown added in v0.5.0

func (m *GitCommit) XXX_DiscardUnknown()

func (*GitCommit) XXX_Marshal added in v0.5.0

func (m *GitCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GitCommit) XXX_Merge added in v0.5.0

func (m *GitCommit) XXX_Merge(src proto.Message)

func (*GitCommit) XXX_Size added in v0.5.0

func (m *GitCommit) XXX_Size() int

func (*GitCommit) XXX_Unmarshal added in v0.5.0

func (m *GitCommit) XXX_Unmarshal(b []byte) error

type GitDiscoveryResult added in v0.7.0

type GitDiscoveryResult struct {
	// RepoURL is the repository URL of the GitSubscription.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`(?:^(https?)://(?:([\w-]+):(.+)@)?([\w-]+(?:\.[\w-]+)*)(?::(\d{1,5}))?(/.*)$)|(?:^([\w-]+)@([\w+]+(?:\.[\w-]+)*):(/?.*))`
	RepoURL string `json:"repoURL" protobuf:"bytes,1,opt,name=repoURL"`
	// Commits is a list of commits discovered by the Warehouse for the
	// GitSubscription. An empty list indicates that the discovery operation was
	// successful, but no commits matching the GitSubscription criteria were found.
	//
	// +optional
	Commits []DiscoveredCommit `json:"commits" protobuf:"bytes,2,rep,name=commits"`
}

GitDiscoveryResult represents the result of a Git discovery operation for a GitSubscription.

func (*GitDiscoveryResult) DeepCopy added in v0.7.0

func (in *GitDiscoveryResult) DeepCopy() *GitDiscoveryResult

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

func (*GitDiscoveryResult) DeepCopyInto added in v0.7.0

func (in *GitDiscoveryResult) DeepCopyInto(out *GitDiscoveryResult)

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

func (*GitDiscoveryResult) Descriptor added in v0.7.0

func (*GitDiscoveryResult) Descriptor() ([]byte, []int)

func (*GitDiscoveryResult) Marshal added in v0.7.0

func (m *GitDiscoveryResult) Marshal() (dAtA []byte, err error)

func (*GitDiscoveryResult) MarshalTo added in v0.7.0

func (m *GitDiscoveryResult) MarshalTo(dAtA []byte) (int, error)

func (*GitDiscoveryResult) MarshalToSizedBuffer added in v0.7.0

func (m *GitDiscoveryResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitDiscoveryResult) ProtoMessage added in v0.7.0

func (*GitDiscoveryResult) ProtoMessage()

func (*GitDiscoveryResult) Reset added in v0.7.0

func (m *GitDiscoveryResult) Reset()

func (*GitDiscoveryResult) Size added in v0.7.0

func (m *GitDiscoveryResult) Size() (n int)

func (*GitDiscoveryResult) String added in v0.7.0

func (this *GitDiscoveryResult) String() string

func (*GitDiscoveryResult) Unmarshal added in v0.7.0

func (m *GitDiscoveryResult) Unmarshal(dAtA []byte) error

func (*GitDiscoveryResult) XXX_DiscardUnknown added in v0.7.0

func (m *GitDiscoveryResult) XXX_DiscardUnknown()

func (*GitDiscoveryResult) XXX_Marshal added in v0.7.0

func (m *GitDiscoveryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GitDiscoveryResult) XXX_Merge added in v0.7.0

func (m *GitDiscoveryResult) XXX_Merge(src proto.Message)

func (*GitDiscoveryResult) XXX_Size added in v0.7.0

func (m *GitDiscoveryResult) XXX_Size() int

func (*GitDiscoveryResult) XXX_Unmarshal added in v0.7.0

func (m *GitDiscoveryResult) XXX_Unmarshal(b []byte) error

type GitHubPullRequest added in v0.3.0

type GitHubPullRequest struct {
}

func (*GitHubPullRequest) DeepCopy added in v0.3.0

func (in *GitHubPullRequest) DeepCopy() *GitHubPullRequest

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

func (*GitHubPullRequest) DeepCopyInto added in v0.3.0

func (in *GitHubPullRequest) DeepCopyInto(out *GitHubPullRequest)

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

func (*GitHubPullRequest) Descriptor added in v0.5.0

func (*GitHubPullRequest) Descriptor() ([]byte, []int)

func (*GitHubPullRequest) Marshal added in v0.5.0

func (m *GitHubPullRequest) Marshal() (dAtA []byte, err error)

func (*GitHubPullRequest) MarshalTo added in v0.5.0

func (m *GitHubPullRequest) MarshalTo(dAtA []byte) (int, error)

func (*GitHubPullRequest) MarshalToSizedBuffer added in v0.5.0

func (m *GitHubPullRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitHubPullRequest) ProtoMessage added in v0.5.0

func (*GitHubPullRequest) ProtoMessage()

func (*GitHubPullRequest) Reset added in v0.5.0

func (m *GitHubPullRequest) Reset()

func (*GitHubPullRequest) Size added in v0.5.0

func (m *GitHubPullRequest) Size() (n int)

func (*GitHubPullRequest) String added in v0.5.0

func (this *GitHubPullRequest) String() string

func (*GitHubPullRequest) Unmarshal added in v0.5.0

func (m *GitHubPullRequest) Unmarshal(dAtA []byte) error

func (*GitHubPullRequest) XXX_DiscardUnknown added in v0.5.0

func (m *GitHubPullRequest) XXX_DiscardUnknown()

func (*GitHubPullRequest) XXX_Marshal added in v0.5.0

func (m *GitHubPullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GitHubPullRequest) XXX_Merge added in v0.5.0

func (m *GitHubPullRequest) XXX_Merge(src proto.Message)

func (*GitHubPullRequest) XXX_Size added in v0.5.0

func (m *GitHubPullRequest) XXX_Size() int

func (*GitHubPullRequest) XXX_Unmarshal added in v0.5.0

func (m *GitHubPullRequest) XXX_Unmarshal(b []byte) error

type GitLabPullRequest added in v0.6.0

type GitLabPullRequest struct {
}

func (*GitLabPullRequest) DeepCopy added in v0.6.0

func (in *GitLabPullRequest) DeepCopy() *GitLabPullRequest

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

func (*GitLabPullRequest) DeepCopyInto added in v0.6.0

func (in *GitLabPullRequest) DeepCopyInto(out *GitLabPullRequest)

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

func (*GitLabPullRequest) Descriptor added in v0.6.0

func (*GitLabPullRequest) Descriptor() ([]byte, []int)

func (*GitLabPullRequest) Marshal added in v0.6.0

func (m *GitLabPullRequest) Marshal() (dAtA []byte, err error)

func (*GitLabPullRequest) MarshalTo added in v0.6.0

func (m *GitLabPullRequest) MarshalTo(dAtA []byte) (int, error)

func (*GitLabPullRequest) MarshalToSizedBuffer added in v0.6.0

func (m *GitLabPullRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitLabPullRequest) ProtoMessage added in v0.6.0

func (*GitLabPullRequest) ProtoMessage()

func (*GitLabPullRequest) Reset added in v0.6.0

func (m *GitLabPullRequest) Reset()

func (*GitLabPullRequest) Size added in v0.6.0

func (m *GitLabPullRequest) Size() (n int)

func (*GitLabPullRequest) String added in v0.6.0

func (this *GitLabPullRequest) String() string

func (*GitLabPullRequest) Unmarshal added in v0.6.0

func (m *GitLabPullRequest) Unmarshal(dAtA []byte) error

func (*GitLabPullRequest) XXX_DiscardUnknown added in v0.6.0

func (m *GitLabPullRequest) XXX_DiscardUnknown()

func (*GitLabPullRequest) XXX_Marshal added in v0.6.0

func (m *GitLabPullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GitLabPullRequest) XXX_Merge added in v0.6.0

func (m *GitLabPullRequest) XXX_Merge(src proto.Message)

func (*GitLabPullRequest) XXX_Size added in v0.6.0

func (m *GitLabPullRequest) XXX_Size() int

func (*GitLabPullRequest) XXX_Unmarshal added in v0.6.0

func (m *GitLabPullRequest) XXX_Unmarshal(b []byte) error

type GitRepoUpdate

type GitRepoUpdate struct {
	// RepoURL is the URL of the repository to update. This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^https?://(\w+([\.-]\w+)*@)?\w+([\.-]\w+)*(:[\d]+)?(/.*)?$`
	RepoURL string `json:"repoURL" protobuf:"bytes,1,opt,name=repoURL"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, the branch
	// checked out by this promotion mechanism will be the one specified by the
	// ReadBranch field. If that, too, is unspecified, the default branch of the
	// repository will be checked out. Always provide a value for this field if
	// wishing to check out a specific commit indicated by a piece of Freight.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,9,opt,name=origin"`
	// InsecureSkipTLSVerify specifies whether certificate verification errors
	// should be ignored when connecting to the repository. This should be enabled
	// only with great caution.
	InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty" protobuf:"varint,2,opt,name=insecureSkipTLSVerify"`
	// ReadBranch specifies a particular branch of the repository from which to
	// locate contents that will be written to the branch specified by the
	// WriteBranch field. This field is optional. When not specified, the
	// ReadBranch is implicitly the repository's default branch AND in cases where
	// a Freight includes a GitCommit, that commit's ID will supersede the value
	// of this field. Therefore, in practice, this field is only used to clarify
	// what branch of a repository can be treated as a source of manifests or
	// other configuration when a Stage has no subscription to that repository.
	//
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=`^(\w+([-/]\w+)*)?$`
	ReadBranch string `json:"readBranch,omitempty" protobuf:"bytes,3,opt,name=readBranch"`
	// WriteBranch specifies the particular branch of the repository to be
	// updated. This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^\w+([-/]\w+)*$`
	WriteBranch string `json:"writeBranch" protobuf:"bytes,4,opt,name=writeBranch"`
	// PullRequest will generate a pull request instead of making the commit directly
	PullRequest *PullRequestPromotionMechanism `json:"pullRequest,omitempty" protobuf:"bytes,5,opt,name=pullRequest"`
	// Render describes how to use Kargo Render to incorporate Freight into the
	// Stage. This is mutually exclusive with the Kustomize and Helm fields.
	Render *KargoRenderPromotionMechanism `json:"render,omitempty" protobuf:"bytes,6,opt,name=render"`
	// Kustomize describes how to use Kustomize to incorporate Freight into the
	// Stage. This is mutually exclusive with the Render and Helm fields.
	Kustomize *KustomizePromotionMechanism `json:"kustomize,omitempty" protobuf:"bytes,7,opt,name=kustomize"`
	// Helm describes how to use Helm to incorporate Freight into the Stage. This
	// is mutually exclusive with the Render and Kustomize fields.
	Helm *HelmPromotionMechanism `json:"helm,omitempty" protobuf:"bytes,8,opt,name=helm"`
}

GitRepoUpdate describes updates that should be applied to a Git repository (using various configuration management tools) to incorporate Freight into a Stage.

func (*GitRepoUpdate) DeepCopy

func (in *GitRepoUpdate) DeepCopy() *GitRepoUpdate

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

func (*GitRepoUpdate) DeepCopyInto

func (in *GitRepoUpdate) DeepCopyInto(out *GitRepoUpdate)

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

func (*GitRepoUpdate) Descriptor added in v0.5.0

func (*GitRepoUpdate) Descriptor() ([]byte, []int)

func (*GitRepoUpdate) Marshal added in v0.5.0

func (m *GitRepoUpdate) Marshal() (dAtA []byte, err error)

func (*GitRepoUpdate) MarshalTo added in v0.5.0

func (m *GitRepoUpdate) MarshalTo(dAtA []byte) (int, error)

func (*GitRepoUpdate) MarshalToSizedBuffer added in v0.5.0

func (m *GitRepoUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitRepoUpdate) ProtoMessage added in v0.5.0

func (*GitRepoUpdate) ProtoMessage()

func (*GitRepoUpdate) Reset added in v0.5.0

func (m *GitRepoUpdate) Reset()

func (*GitRepoUpdate) Size added in v0.5.0

func (m *GitRepoUpdate) Size() (n int)

func (*GitRepoUpdate) String added in v0.5.0

func (this *GitRepoUpdate) String() string

func (*GitRepoUpdate) Unmarshal added in v0.5.0

func (m *GitRepoUpdate) Unmarshal(dAtA []byte) error

func (*GitRepoUpdate) XXX_DiscardUnknown added in v0.5.0

func (m *GitRepoUpdate) XXX_DiscardUnknown()

func (*GitRepoUpdate) XXX_Marshal added in v0.5.0

func (m *GitRepoUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GitRepoUpdate) XXX_Merge added in v0.5.0

func (m *GitRepoUpdate) XXX_Merge(src proto.Message)

func (*GitRepoUpdate) XXX_Size added in v0.5.0

func (m *GitRepoUpdate) XXX_Size() int

func (*GitRepoUpdate) XXX_Unmarshal added in v0.5.0

func (m *GitRepoUpdate) XXX_Unmarshal(b []byte) error

type GitSubscription

type GitSubscription struct {
	// URL is the repository's URL. This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`(?:^(https?)://(?:([\w-]+):(.+)@)?([\w-]+(?:\.[\w-]+)*)(?::(\d{1,5}))?(/.*)$)|(?:^([\w-]+)@([\w+]+(?:\.[\w-]+)*):(/?.*))`
	RepoURL string `json:"repoURL" protobuf:"bytes,1,opt,name=repoURL"`
	// CommitSelectionStrategy specifies the rules for how to identify the newest
	// commit of interest in the repository specified by the RepoURL field. This
	// field is optional. When left unspecified, the field is implicitly treated
	// as if its value were "NewestFromBranch".
	//
	// +kubebuilder:default=NewestFromBranch
	CommitSelectionStrategy CommitSelectionStrategy `json:"commitSelectionStrategy,omitempty" protobuf:"bytes,2,opt,name=commitSelectionStrategy"`
	// Branch references a particular branch of the repository. The value in this
	// field only has any effect when the CommitSelectionStrategy is
	// NewestFromBranch or left unspecified (which is implicitly the same as
	// NewestFromBranch). This field is optional. When left unspecified, (and the
	// CommitSelectionStrategy is NewestFromBranch or unspecified), the
	// subscription is implicitly to the repository's default branch.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^\w+([-/]\w+)*$`
	Branch string `json:"branch,omitempty" protobuf:"bytes,3,opt,name=branch"`
	// SemverConstraint specifies constraints on what new tagged commits are
	// considered in determining the newest commit of interest. The value in this
	// field only has any effect when the CommitSelectionStrategy is SemVer. This
	// field is optional. When left unspecified, there will be no constraints,
	// which means the latest semantically tagged commit will always be used. Care
	// should be taken with leaving this field unspecified, as it can lead to the
	// unanticipated rollout of breaking changes.
	//
	// +kubebuilder:validation:Optional
	SemverConstraint string `json:"semverConstraint,omitempty" protobuf:"bytes,4,opt,name=semverConstraint"`
	// AllowTags is a regular expression that can optionally be used to limit the
	// tags that are considered in determining the newest commit of interest. The
	// value in this field only has any effect when the CommitSelectionStrategy is
	// Lexical, NewestTag, or SemVer. This field is optional.
	//
	// +kubebuilder:validation:Optional
	AllowTags string `json:"allowTags,omitempty" protobuf:"bytes,5,opt,name=allowTags"`
	// IgnoreTags is a list of tags that must be ignored when determining the
	// newest commit of interest. No regular expressions or glob patterns are
	// supported yet. The value in this field only has any effect when the
	// CommitSelectionStrategy is Lexical, NewestTag, or SemVer. This field is
	// optional.
	//
	// +kubebuilder:validation:Optional
	IgnoreTags []string `json:"ignoreTags,omitempty" protobuf:"bytes,6,rep,name=ignoreTags"`
	// InsecureSkipTLSVerify specifies whether certificate verification errors
	// should be ignored when connecting to the repository. This should be enabled
	// only with great caution.
	InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty" protobuf:"varint,7,opt,name=insecureSkipTLSVerify"`
	// IncludePaths is a list of selectors that designate paths in the repository
	// that should trigger the production of new Freight when changes are detected
	// therein. When specified, only changes in the identified paths will trigger
	// Freight production. When not specified, changes in any path will trigger
	// Freight production. Selectors may be defined using:
	//   1. Exact paths to files or directories (ex. "charts/foo")
	//   2. Glob patterns (prefix the pattern with "glob:"; ex. "glob:*.yaml")
	//   3. Regular expressions (prefix the pattern with "regex:" or "regexp:";
	//      ex. "regexp:^.*\.yaml$")
	// Paths selected by IncludePaths may be unselected by ExcludePaths. This
	// is a useful method for including a broad set of paths and then excluding a
	// subset of them.
	// +kubebuilder:validation:Optional
	IncludePaths []string `json:"includePaths,omitempty" protobuf:"bytes,8,rep,name=includePaths"`
	// ExcludePaths is a list of selectors that designate paths in the repository
	// that should NOT trigger the production of new Freight when changes are
	// detected therein. When specified, changes in the identified paths will not
	// trigger Freight production. When not specified, paths that should trigger
	// Freight production will be defined solely by IncludePaths. Selectors may be
	// defined using:
	//   1. Exact paths to files or directories (ex. "charts/foo")
	//   2. Glob patterns (prefix the pattern with "glob:"; ex. "glob:*.yaml")
	//   3. Regular expressions (prefix the pattern with "regex:" or "regexp:";
	//      ex. "regexp:^.*\.yaml$")
	// Paths selected by IncludePaths may be unselected by ExcludePaths. This
	// is a useful method for including a broad set of paths and then excluding a
	// subset of them.
	// +kubebuilder:validation:Optional
	ExcludePaths []string `json:"excludePaths,omitempty" protobuf:"bytes,9,rep,name=excludePaths"`
	// DiscoveryLimit is an optional limit on the number of commits that can be
	// discovered for this subscription. The limit is applied after filtering
	// commits based on the AllowTags and IgnoreTags fields.
	// When left unspecified, the field is implicitly treated as if its value
	// were "20". The upper limit for this field is 100.
	//
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=100
	// +kubebuilder:default=20
	DiscoveryLimit int32 `json:"discoveryLimit,omitempty" protobuf:"varint,10,opt,name=discoveryLimit"`
}

GitSubscription defines a subscription to a Git repository.

func (*GitSubscription) DeepCopy

func (in *GitSubscription) DeepCopy() *GitSubscription

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

func (*GitSubscription) DeepCopyInto

func (in *GitSubscription) DeepCopyInto(out *GitSubscription)

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

func (*GitSubscription) Descriptor added in v0.5.0

func (*GitSubscription) Descriptor() ([]byte, []int)

func (*GitSubscription) Marshal added in v0.5.0

func (m *GitSubscription) Marshal() (dAtA []byte, err error)

func (*GitSubscription) MarshalTo added in v0.5.0

func (m *GitSubscription) MarshalTo(dAtA []byte) (int, error)

func (*GitSubscription) MarshalToSizedBuffer added in v0.5.0

func (m *GitSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitSubscription) ProtoMessage added in v0.5.0

func (*GitSubscription) ProtoMessage()

func (*GitSubscription) Reset added in v0.5.0

func (m *GitSubscription) Reset()

func (*GitSubscription) Size added in v0.5.0

func (m *GitSubscription) Size() (n int)

func (*GitSubscription) String added in v0.5.0

func (this *GitSubscription) String() string

func (*GitSubscription) Unmarshal added in v0.5.0

func (m *GitSubscription) Unmarshal(dAtA []byte) error

func (*GitSubscription) XXX_DiscardUnknown added in v0.5.0

func (m *GitSubscription) XXX_DiscardUnknown()

func (*GitSubscription) XXX_Marshal added in v0.5.0

func (m *GitSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GitSubscription) XXX_Merge added in v0.5.0

func (m *GitSubscription) XXX_Merge(src proto.Message)

func (*GitSubscription) XXX_Size added in v0.5.0

func (m *GitSubscription) XXX_Size() int

func (*GitSubscription) XXX_Unmarshal added in v0.5.0

func (m *GitSubscription) XXX_Unmarshal(b []byte) error

type Health

type Health struct {
	// Status describes the health of the Stage.
	Status HealthState `json:"status,omitempty" protobuf:"bytes,1,opt,name=status"`
	// Issues clarifies why a Stage in any state other than Healthy is in that
	// state. This field will always be the empty when a Stage is Healthy.
	Issues []string `json:"issues,omitempty" protobuf:"bytes,2,rep,name=issues"`
	// ArgoCDApps describes the current state of any related ArgoCD Applications.
	ArgoCDApps []ArgoCDAppStatus `json:"argoCDApps,omitempty" protobuf:"bytes,3,rep,name=argoCDApps"`
}

Health describes the health of a Stage.

func (*Health) DeepCopy

func (in *Health) DeepCopy() *Health

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

func (*Health) DeepCopyInto

func (in *Health) DeepCopyInto(out *Health)

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

func (*Health) Descriptor added in v0.5.0

func (*Health) Descriptor() ([]byte, []int)

func (*Health) Marshal added in v0.5.0

func (m *Health) Marshal() (dAtA []byte, err error)

func (*Health) MarshalTo added in v0.5.0

func (m *Health) MarshalTo(dAtA []byte) (int, error)

func (*Health) MarshalToSizedBuffer added in v0.5.0

func (m *Health) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Health) ProtoMessage added in v0.5.0

func (*Health) ProtoMessage()

func (*Health) Reset added in v0.5.0

func (m *Health) Reset()

func (*Health) Size added in v0.5.0

func (m *Health) Size() (n int)

func (*Health) String added in v0.5.0

func (this *Health) String() string

func (*Health) Unmarshal added in v0.5.0

func (m *Health) Unmarshal(dAtA []byte) error

func (*Health) XXX_DiscardUnknown added in v0.5.0

func (m *Health) XXX_DiscardUnknown()

func (*Health) XXX_Marshal added in v0.5.0

func (m *Health) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Health) XXX_Merge added in v0.5.0

func (m *Health) XXX_Merge(src proto.Message)

func (*Health) XXX_Size added in v0.5.0

func (m *Health) XXX_Size() int

func (*Health) XXX_Unmarshal added in v0.5.0

func (m *Health) XXX_Unmarshal(b []byte) error

type HealthState

type HealthState string
const (
	HealthStateHealthy     HealthState = "Healthy"
	HealthStateUnhealthy   HealthState = "Unhealthy"
	HealthStateProgressing HealthState = "Progressing"
	HealthStateUnknown     HealthState = "Unknown"
)

func (HealthState) Merge

func (h HealthState) Merge(other HealthState) HealthState

Merge returns the more severe of two HealthStates.

type HelmChartDependencyUpdate

type HelmChartDependencyUpdate struct {
	// Repository along with Name identifies a subchart of the umbrella chart at
	// ChartPath whose version should be updated. The values of both fields should
	// exactly match the values of the fields of the same names in a dependency
	// expressed in the Chart.yaml of the umbrella chart at ChartPath. i.e. Do not
	// match the values of these two fields to your Warehouse; match them to the
	// Chart.yaml. This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^(((https?)|(oci))://)([\w\d\.\-]+)(:[\d]+)?(/.*)*$`
	Repository string `json:"repository" protobuf:"bytes,1,opt,name=repository"`
	// Name along with Repository identifies a subchart of the umbrella chart at
	// ChartPath whose version should be updated. The values of both fields should
	// exactly match the values of the fields of the same names in a dependency
	// expressed in the Chart.yaml of the umbrella chart at ChartPath. i.e. Do not
	// match the values of these two fields to your Warehouse; match them to the
	// Chart.yaml. This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name" protobuf:"bytes,2,opt,name=name"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing HelmPromotionMechanism's
	// Origin field. If that, too, is unspecified, Promotions will fail if there
	// is ever ambiguity regarding from which piece of Freight an artifact is to
	// be sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,4,opt,name=origin"`
	// ChartPath is the path to an umbrella chart.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[\w-\.]+(/[\w-\.]+)*$
	ChartPath string `json:"chartPath" protobuf:"bytes,3,opt,name=chartPath"`
}

HelmChartDependencyUpdate describes how a specific Helm chart that is used as a subchart of an umbrella chart can be updated.

func (*HelmChartDependencyUpdate) DeepCopy

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

func (*HelmChartDependencyUpdate) DeepCopyInto

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

func (*HelmChartDependencyUpdate) Descriptor added in v0.5.0

func (*HelmChartDependencyUpdate) Descriptor() ([]byte, []int)

func (*HelmChartDependencyUpdate) Marshal added in v0.5.0

func (m *HelmChartDependencyUpdate) Marshal() (dAtA []byte, err error)

func (*HelmChartDependencyUpdate) MarshalTo added in v0.5.0

func (m *HelmChartDependencyUpdate) MarshalTo(dAtA []byte) (int, error)

func (*HelmChartDependencyUpdate) MarshalToSizedBuffer added in v0.5.0

func (m *HelmChartDependencyUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HelmChartDependencyUpdate) ProtoMessage added in v0.5.0

func (*HelmChartDependencyUpdate) ProtoMessage()

func (*HelmChartDependencyUpdate) Reset added in v0.5.0

func (m *HelmChartDependencyUpdate) Reset()

func (*HelmChartDependencyUpdate) Size added in v0.5.0

func (m *HelmChartDependencyUpdate) Size() (n int)

func (*HelmChartDependencyUpdate) String added in v0.5.0

func (this *HelmChartDependencyUpdate) String() string

func (*HelmChartDependencyUpdate) Unmarshal added in v0.5.0

func (m *HelmChartDependencyUpdate) Unmarshal(dAtA []byte) error

func (*HelmChartDependencyUpdate) XXX_DiscardUnknown added in v0.5.0

func (m *HelmChartDependencyUpdate) XXX_DiscardUnknown()

func (*HelmChartDependencyUpdate) XXX_Marshal added in v0.5.0

func (m *HelmChartDependencyUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelmChartDependencyUpdate) XXX_Merge added in v0.5.0

func (m *HelmChartDependencyUpdate) XXX_Merge(src proto.Message)

func (*HelmChartDependencyUpdate) XXX_Size added in v0.5.0

func (m *HelmChartDependencyUpdate) XXX_Size() int

func (*HelmChartDependencyUpdate) XXX_Unmarshal added in v0.5.0

func (m *HelmChartDependencyUpdate) XXX_Unmarshal(b []byte) error

type HelmImageUpdate

type HelmImageUpdate struct {
	// Image specifies a container image (without tag). This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^(\w+([\.-]\w+)*(:[\d]+)?/)?(\w+([\.-]\w+)*)(/\w+([\.-]\w+)*)*$`
	Image string `json:"image" protobuf:"bytes,1,opt,name=image"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing HelmPromotionMechanism's
	// Origin field. If that, too, is unspecified, Promotions will fail if there
	// is ever ambiguity regarding from which piece of Freight an artifact is to
	// be sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,5,opt,name=origin"`
	// ValuesFilePath specifies a path to the Helm values file that is to be
	// updated. This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[\w-\.]+(/[\w-\.]+)*$
	ValuesFilePath string `json:"valuesFilePath" protobuf:"bytes,2,opt,name=valuesFilePath"`
	// Key specifies a key within the Helm values file that is to be updated. This
	// is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	Key string `json:"key" protobuf:"bytes,3,opt,name=key"`
	// Value specifies the new value for the specified key in the specified Helm
	// values file. Valid values are:
	//
	// - ImageAndTag: Replaces the value of the specified key with
	//   <image name>:<tag>
	// - Tag: Replaces the value of the specified key with just the new tag
	// - ImageAndDigest: Replaces the value of the specified key with
	//   <image name>@<digest>
	// - Digest: Replaces the value of the specified key with just the new digest.
	//
	// This is a required field.
	Value ImageUpdateValueType `json:"value" protobuf:"bytes,4,opt,name=value"`
}

HelmImageUpdate describes how a specific image version can be incorporated into a specific Helm values file.

func (*HelmImageUpdate) DeepCopy

func (in *HelmImageUpdate) DeepCopy() *HelmImageUpdate

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

func (*HelmImageUpdate) DeepCopyInto

func (in *HelmImageUpdate) DeepCopyInto(out *HelmImageUpdate)

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

func (*HelmImageUpdate) Descriptor added in v0.5.0

func (*HelmImageUpdate) Descriptor() ([]byte, []int)

func (*HelmImageUpdate) Marshal added in v0.5.0

func (m *HelmImageUpdate) Marshal() (dAtA []byte, err error)

func (*HelmImageUpdate) MarshalTo added in v0.5.0

func (m *HelmImageUpdate) MarshalTo(dAtA []byte) (int, error)

func (*HelmImageUpdate) MarshalToSizedBuffer added in v0.5.0

func (m *HelmImageUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HelmImageUpdate) ProtoMessage added in v0.5.0

func (*HelmImageUpdate) ProtoMessage()

func (*HelmImageUpdate) Reset added in v0.5.0

func (m *HelmImageUpdate) Reset()

func (*HelmImageUpdate) Size added in v0.5.0

func (m *HelmImageUpdate) Size() (n int)

func (*HelmImageUpdate) String added in v0.5.0

func (this *HelmImageUpdate) String() string

func (*HelmImageUpdate) Unmarshal added in v0.5.0

func (m *HelmImageUpdate) Unmarshal(dAtA []byte) error

func (*HelmImageUpdate) XXX_DiscardUnknown added in v0.5.0

func (m *HelmImageUpdate) XXX_DiscardUnknown()

func (*HelmImageUpdate) XXX_Marshal added in v0.5.0

func (m *HelmImageUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelmImageUpdate) XXX_Merge added in v0.5.0

func (m *HelmImageUpdate) XXX_Merge(src proto.Message)

func (*HelmImageUpdate) XXX_Size added in v0.5.0

func (m *HelmImageUpdate) XXX_Size() int

func (*HelmImageUpdate) XXX_Unmarshal added in v0.5.0

func (m *HelmImageUpdate) XXX_Unmarshal(b []byte) error

type HelmPromotionMechanism

type HelmPromotionMechanism struct {
	// Images describes how specific image versions can be incorporated into Helm
	// values files.
	Images []HelmImageUpdate `json:"images,omitempty" protobuf:"bytes,1,rep,name=images"`
	// Charts describes how specific chart versions can be incorporated into an
	// umbrella chart.
	Charts []HelmChartDependencyUpdate `json:"charts,omitempty" protobuf:"bytes,2,rep,name=charts"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing GitRepoUpdate's Origin field.
	// If that, too, is unspecified, Promotions will fail if there is ever
	// ambiguity regarding from which piece of Freight an artifact is to be
	// sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,3,opt,name=origin"`
}

HelmPromotionMechanism describes how to use Helm to incorporate Freight into a Stage.

func (*HelmPromotionMechanism) DeepCopy

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

func (*HelmPromotionMechanism) DeepCopyInto

func (in *HelmPromotionMechanism) DeepCopyInto(out *HelmPromotionMechanism)

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

func (*HelmPromotionMechanism) Descriptor added in v0.5.0

func (*HelmPromotionMechanism) Descriptor() ([]byte, []int)

func (*HelmPromotionMechanism) Marshal added in v0.5.0

func (m *HelmPromotionMechanism) Marshal() (dAtA []byte, err error)

func (*HelmPromotionMechanism) MarshalTo added in v0.5.0

func (m *HelmPromotionMechanism) MarshalTo(dAtA []byte) (int, error)

func (*HelmPromotionMechanism) MarshalToSizedBuffer added in v0.5.0

func (m *HelmPromotionMechanism) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HelmPromotionMechanism) ProtoMessage added in v0.5.0

func (*HelmPromotionMechanism) ProtoMessage()

func (*HelmPromotionMechanism) Reset added in v0.5.0

func (m *HelmPromotionMechanism) Reset()

func (*HelmPromotionMechanism) Size added in v0.5.0

func (m *HelmPromotionMechanism) Size() (n int)

func (*HelmPromotionMechanism) String added in v0.5.0

func (this *HelmPromotionMechanism) String() string

func (*HelmPromotionMechanism) Unmarshal added in v0.5.0

func (m *HelmPromotionMechanism) Unmarshal(dAtA []byte) error

func (*HelmPromotionMechanism) XXX_DiscardUnknown added in v0.5.0

func (m *HelmPromotionMechanism) XXX_DiscardUnknown()

func (*HelmPromotionMechanism) XXX_Marshal added in v0.5.0

func (m *HelmPromotionMechanism) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelmPromotionMechanism) XXX_Merge added in v0.5.0

func (m *HelmPromotionMechanism) XXX_Merge(src proto.Message)

func (*HelmPromotionMechanism) XXX_Size added in v0.5.0

func (m *HelmPromotionMechanism) XXX_Size() int

func (*HelmPromotionMechanism) XXX_Unmarshal added in v0.5.0

func (m *HelmPromotionMechanism) XXX_Unmarshal(b []byte) error

type Image

type Image struct {
	// RepoURL describes the repository in which the image can be found.
	RepoURL string `json:"repoURL,omitempty" protobuf:"bytes,1,opt,name=repoURL"`
	// GitRepoURL specifies the URL of a Git repository that contains the source
	// code for the image repository referenced by the RepoURL field if Kargo was
	// able to infer it.
	GitRepoURL string `json:"gitRepoURL,omitempty" protobuf:"bytes,2,opt,name=gitRepoURL"`
	// Tag identifies a specific version of the image in the repository specified
	// by RepoURL.
	Tag string `json:"tag,omitempty" protobuf:"bytes,3,opt,name=tag"`
	// Digest identifies a specific version of the image in the repository
	// specified by RepoURL. This is a more precise identifier than Tag.
	Digest string `json:"digest,omitempty" protobuf:"bytes,4,opt,name=digest"`
}

Image describes a specific version of a container image.

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

func (*Image) DeepEquals added in v0.8.0

func (i *Image) DeepEquals(other *Image) bool

DeepEquals returns a bool indicating whether the receiver deep-equals the provided Image. I.e., all fields must be equal.

func (*Image) Descriptor added in v0.5.0

func (*Image) Descriptor() ([]byte, []int)

func (*Image) Marshal added in v0.5.0

func (m *Image) Marshal() (dAtA []byte, err error)

func (*Image) MarshalTo added in v0.5.0

func (m *Image) MarshalTo(dAtA []byte) (int, error)

func (*Image) MarshalToSizedBuffer added in v0.5.0

func (m *Image) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Image) ProtoMessage added in v0.5.0

func (*Image) ProtoMessage()

func (*Image) Reset added in v0.5.0

func (m *Image) Reset()

func (*Image) Size added in v0.5.0

func (m *Image) Size() (n int)

func (*Image) String added in v0.5.0

func (this *Image) String() string

func (*Image) Unmarshal added in v0.5.0

func (m *Image) Unmarshal(dAtA []byte) error

func (*Image) XXX_DiscardUnknown added in v0.5.0

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal added in v0.5.0

func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Image) XXX_Merge added in v0.5.0

func (m *Image) XXX_Merge(src proto.Message)

func (*Image) XXX_Size added in v0.5.0

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal added in v0.5.0

func (m *Image) XXX_Unmarshal(b []byte) error

type ImageDiscoveryResult added in v0.7.0

type ImageDiscoveryResult struct {
	// RepoURL is the repository URL of the image, as specified in the
	// ImageSubscription.
	//
	// +kubebuilder:validation:MinLength=1
	RepoURL string `json:"repoURL" protobuf:"bytes,1,opt,name=repoURL"`
	// Platform is the target platform constraint of the ImageSubscription
	// for which references were discovered. This field is optional, and
	// only populated if the ImageSubscription specifies a Platform.
	Platform string `json:"platform,omitempty" protobuf:"bytes,2,opt,name=platform"`
	// References is a list of image references discovered by the Warehouse for
	// the ImageSubscription. An empty list indicates that the discovery
	// operation was successful, but no images matching the ImageSubscription
	// criteria were found.
	//
	// +optional
	References []DiscoveredImageReference `json:"references" protobuf:"bytes,3,rep,name=references"`
}

ImageDiscoveryResult represents the result of an image discovery operation for an ImageSubscription.

func (*ImageDiscoveryResult) DeepCopy added in v0.7.0

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

func (*ImageDiscoveryResult) DeepCopyInto added in v0.7.0

func (in *ImageDiscoveryResult) DeepCopyInto(out *ImageDiscoveryResult)

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

func (*ImageDiscoveryResult) Descriptor added in v0.7.0

func (*ImageDiscoveryResult) Descriptor() ([]byte, []int)

func (*ImageDiscoveryResult) Marshal added in v0.7.0

func (m *ImageDiscoveryResult) Marshal() (dAtA []byte, err error)

func (*ImageDiscoveryResult) MarshalTo added in v0.7.0

func (m *ImageDiscoveryResult) MarshalTo(dAtA []byte) (int, error)

func (*ImageDiscoveryResult) MarshalToSizedBuffer added in v0.7.0

func (m *ImageDiscoveryResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ImageDiscoveryResult) ProtoMessage added in v0.7.0

func (*ImageDiscoveryResult) ProtoMessage()

func (*ImageDiscoveryResult) Reset added in v0.7.0

func (m *ImageDiscoveryResult) Reset()

func (*ImageDiscoveryResult) Size added in v0.7.0

func (m *ImageDiscoveryResult) Size() (n int)

func (*ImageDiscoveryResult) String added in v0.7.0

func (this *ImageDiscoveryResult) String() string

func (*ImageDiscoveryResult) Unmarshal added in v0.7.0

func (m *ImageDiscoveryResult) Unmarshal(dAtA []byte) error

func (*ImageDiscoveryResult) XXX_DiscardUnknown added in v0.7.0

func (m *ImageDiscoveryResult) XXX_DiscardUnknown()

func (*ImageDiscoveryResult) XXX_Marshal added in v0.7.0

func (m *ImageDiscoveryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageDiscoveryResult) XXX_Merge added in v0.7.0

func (m *ImageDiscoveryResult) XXX_Merge(src proto.Message)

func (*ImageDiscoveryResult) XXX_Size added in v0.7.0

func (m *ImageDiscoveryResult) XXX_Size() int

func (*ImageDiscoveryResult) XXX_Unmarshal added in v0.7.0

func (m *ImageDiscoveryResult) XXX_Unmarshal(b []byte) error

type ImageSelectionStrategy added in v0.4.0

type ImageSelectionStrategy string

+kubebuilder:validation:Enum={Digest,Lexical,NewestBuild,SemVer}

const (
	ImageSelectionStrategyDigest      ImageSelectionStrategy = "Digest"
	ImageSelectionStrategyLexical     ImageSelectionStrategy = "Lexical"
	ImageSelectionStrategyNewestBuild ImageSelectionStrategy = "NewestBuild"
	ImageSelectionStrategySemVer      ImageSelectionStrategy = "SemVer"
)

type ImageSubscription

type ImageSubscription struct {
	// RepoURL specifies the URL of the image repository to subscribe to. The
	// value in this field MUST NOT include an image tag. This field is required.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^(\w+([\.-]\w+)*(:[\d]+)?/)?(\w+([\.-]\w+)*)(/\w+([\.-]\w+)*)*$`
	RepoURL string `json:"repoURL" protobuf:"bytes,1,opt,name=repoURL"`
	// GitRepoURL optionally specifies the URL of a Git repository that contains
	// the source code for the image repository referenced by the RepoURL field.
	// When this is specified, Kargo MAY be able to infer and link to the exact
	// revision of that source code that was used to build the image.
	//
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern=`^https?://(\w+([\.-]\w+)*@)?\w+([\.-]\w+)*(:[\d]+)?(/.*)?$`
	GitRepoURL string `json:"gitRepoURL,omitempty" protobuf:"bytes,2,opt,name=gitRepoURL"`
	// ImageSelectionStrategy specifies the rules for how to identify the newest version
	// of the image specified by the RepoURL field. This field is optional. When
	// left unspecified, the field is implicitly treated as if its value were
	// "SemVer".
	//
	// +kubebuilder:default=SemVer
	ImageSelectionStrategy ImageSelectionStrategy `json:"imageSelectionStrategy,omitempty" protobuf:"bytes,3,opt,name=imageSelectionStrategy"`
	// SemverConstraint specifies constraints on what new image versions are
	// permissible. The value in this field only has any effect when the
	// ImageSelectionStrategy is SemVer or left unspecified (which is implicitly
	// the same as SemVer). This field is also optional. When left unspecified,
	// (and the ImageSelectionStrategy is SemVer or unspecified), there will be no
	// constraints, which means the latest semantically tagged version of an image
	// will always be used. Care should be taken with leaving this field
	// unspecified, as it can lead to the unanticipated rollout of breaking
	// changes. Refer to Image Updater documentation for more details.
	// More info: https://github.com/masterminds/semver#checking-version-constraints
	//
	// +kubebuilder:validation:Optional
	SemverConstraint string `json:"semverConstraint,omitempty" protobuf:"bytes,4,opt,name=semverConstraint"`
	// AllowTags is a regular expression that can optionally be used to limit the
	// image tags that are considered in determining the newest version of an
	// image. This field is optional.
	//
	// +kubebuilder:validation:Optional
	AllowTags string `json:"allowTags,omitempty" protobuf:"bytes,5,opt,name=allowTags"`
	// IgnoreTags is a list of tags that must be ignored when determining the
	// newest version of an image. No regular expressions or glob patterns are
	// supported yet. This field is optional.
	//
	// +kubebuilder:validation:Optional
	IgnoreTags []string `json:"ignoreTags,omitempty" protobuf:"bytes,6,rep,name=ignoreTags"`
	// Platform is a string of the form <os>/<arch> that limits the tags that can
	// be considered when searching for new versions of an image. This field is
	// optional. When left unspecified, it is implicitly equivalent to the
	// OS/architecture of the Kargo controller. Care should be taken to set this
	// value correctly in cases where the image referenced by this
	// ImageRepositorySubscription will run on a Kubernetes node with a different
	// OS/architecture than the Kargo controller. At present this is uncommon, but
	// not unheard of.
	//
	// +kubebuilder:validation:Optional
	Platform string `json:"platform,omitempty" protobuf:"bytes,7,opt,name=platform"`
	// InsecureSkipTLSVerify specifies whether certificate verification errors
	// should be ignored when connecting to the repository. This should be enabled
	// only with great caution.
	InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty" protobuf:"varint,8,opt,name=insecureSkipTLSVerify"`
	// DiscoveryLimit is an optional limit on the number of image references
	// that can be discovered for this subscription. The limit is applied after
	// filtering images based on the AllowTags and IgnoreTags fields.
	// When left unspecified, the field is implicitly treated as if its value
	// were "20". The upper limit for this field is 100.
	//
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=100
	// +kubebuilder:default=20
	DiscoveryLimit int32 `json:"discoveryLimit,omitempty" protobuf:"varint,9,opt,name=discoveryLimit"`
}

ImageSubscription defines a subscription to an image repository.

func (*ImageSubscription) DeepCopy

func (in *ImageSubscription) DeepCopy() *ImageSubscription

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

func (*ImageSubscription) DeepCopyInto

func (in *ImageSubscription) DeepCopyInto(out *ImageSubscription)

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

func (*ImageSubscription) Descriptor added in v0.5.0

func (*ImageSubscription) Descriptor() ([]byte, []int)

func (*ImageSubscription) Marshal added in v0.5.0

func (m *ImageSubscription) Marshal() (dAtA []byte, err error)

func (*ImageSubscription) MarshalTo added in v0.5.0

func (m *ImageSubscription) MarshalTo(dAtA []byte) (int, error)

func (*ImageSubscription) MarshalToSizedBuffer added in v0.5.0

func (m *ImageSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ImageSubscription) ProtoMessage added in v0.5.0

func (*ImageSubscription) ProtoMessage()

func (*ImageSubscription) Reset added in v0.5.0

func (m *ImageSubscription) Reset()

func (*ImageSubscription) Size added in v0.5.0

func (m *ImageSubscription) Size() (n int)

func (*ImageSubscription) String added in v0.5.0

func (this *ImageSubscription) String() string

func (*ImageSubscription) Unmarshal added in v0.5.0

func (m *ImageSubscription) Unmarshal(dAtA []byte) error

func (*ImageSubscription) XXX_DiscardUnknown added in v0.5.0

func (m *ImageSubscription) XXX_DiscardUnknown()

func (*ImageSubscription) XXX_Marshal added in v0.5.0

func (m *ImageSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageSubscription) XXX_Merge added in v0.5.0

func (m *ImageSubscription) XXX_Merge(src proto.Message)

func (*ImageSubscription) XXX_Size added in v0.5.0

func (m *ImageSubscription) XXX_Size() int

func (*ImageSubscription) XXX_Unmarshal added in v0.5.0

func (m *ImageSubscription) XXX_Unmarshal(b []byte) error

type ImageUpdateValueType

type ImageUpdateValueType string

+kubebuilder:validation:Enum={ImageAndTag,Tag,ImageAndDigest,Digest}

const (
	ImageUpdateValueTypeImageAndTag    ImageUpdateValueType = "ImageAndTag"
	ImageUpdateValueTypeTag            ImageUpdateValueType = "Tag"
	ImageUpdateValueTypeImageAndDigest ImageUpdateValueType = "ImageAndDigest"
	ImageUpdateValueTypeDigest         ImageUpdateValueType = "Digest"
)

type KargoRenderImageUpdate added in v0.3.0

type KargoRenderImageUpdate struct {
	// Image specifies a container image (without tag). This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	Image string `json:"image" protobuf:"bytes,1,opt,name=image"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing
	// KargoRenderPromotionMechanism's Origin field. If that, too, is unspecified,
	// Promotions will fail if there is ever ambiguity regarding from which piece
	// of Freight an artifact is to be sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,3,opt,name=origin"`
	// UseDigest specifies whether the image's digest should be used instead of
	// its tag.
	//
	// +kubebuilder:validation:Optional
	UseDigest bool `json:"useDigest" protobuf:"varint,2,opt,name=useDigest"`
}

KargoRenderImageUpdate describes how an image can be incorporated into a Stage using Kargo Render.

func (*KargoRenderImageUpdate) DeepCopy added in v0.3.0

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

func (*KargoRenderImageUpdate) DeepCopyInto added in v0.3.0

func (in *KargoRenderImageUpdate) DeepCopyInto(out *KargoRenderImageUpdate)

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

func (*KargoRenderImageUpdate) Descriptor added in v0.5.0

func (*KargoRenderImageUpdate) Descriptor() ([]byte, []int)

func (*KargoRenderImageUpdate) Marshal added in v0.5.0

func (m *KargoRenderImageUpdate) Marshal() (dAtA []byte, err error)

func (*KargoRenderImageUpdate) MarshalTo added in v0.5.0

func (m *KargoRenderImageUpdate) MarshalTo(dAtA []byte) (int, error)

func (*KargoRenderImageUpdate) MarshalToSizedBuffer added in v0.5.0

func (m *KargoRenderImageUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KargoRenderImageUpdate) ProtoMessage added in v0.5.0

func (*KargoRenderImageUpdate) ProtoMessage()

func (*KargoRenderImageUpdate) Reset added in v0.5.0

func (m *KargoRenderImageUpdate) Reset()

func (*KargoRenderImageUpdate) Size added in v0.5.0

func (m *KargoRenderImageUpdate) Size() (n int)

func (*KargoRenderImageUpdate) String added in v0.5.0

func (this *KargoRenderImageUpdate) String() string

func (*KargoRenderImageUpdate) Unmarshal added in v0.5.0

func (m *KargoRenderImageUpdate) Unmarshal(dAtA []byte) error

func (*KargoRenderImageUpdate) XXX_DiscardUnknown added in v0.5.0

func (m *KargoRenderImageUpdate) XXX_DiscardUnknown()

func (*KargoRenderImageUpdate) XXX_Marshal added in v0.5.0

func (m *KargoRenderImageUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KargoRenderImageUpdate) XXX_Merge added in v0.5.0

func (m *KargoRenderImageUpdate) XXX_Merge(src proto.Message)

func (*KargoRenderImageUpdate) XXX_Size added in v0.5.0

func (m *KargoRenderImageUpdate) XXX_Size() int

func (*KargoRenderImageUpdate) XXX_Unmarshal added in v0.5.0

func (m *KargoRenderImageUpdate) XXX_Unmarshal(b []byte) error

type KargoRenderPromotionMechanism added in v0.2.0

type KargoRenderPromotionMechanism struct {
	// Images describes how images can be incorporated into a Stage using Kargo
	// Render. If this field is omitted, all images in the Freight being promoted
	// will be passed to Kargo Render in the form <image name>:<tag>. (e.g. Will
	// not use digests by default.)
	//
	// +kubebuilder:validation:Optional
	Images []KargoRenderImageUpdate `json:"images,omitempty" protobuf:"bytes,1,rep,name=images"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing GitRepoUpdate's Origin field.
	// If that, too, is unspecified, Promotions will fail if there is ever
	// ambiguity regarding from which piece of Freight an artifact is to be
	// sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,2,opt,name=origin"`
}

KargoRenderPromotionMechanism describes how to use Kargo Render to incorporate Freight into a Stage.

func (*KargoRenderPromotionMechanism) DeepCopy added in v0.2.0

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

func (*KargoRenderPromotionMechanism) DeepCopyInto added in v0.2.0

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

func (*KargoRenderPromotionMechanism) Descriptor added in v0.5.0

func (*KargoRenderPromotionMechanism) Descriptor() ([]byte, []int)

func (*KargoRenderPromotionMechanism) Marshal added in v0.5.0

func (m *KargoRenderPromotionMechanism) Marshal() (dAtA []byte, err error)

func (*KargoRenderPromotionMechanism) MarshalTo added in v0.5.0

func (m *KargoRenderPromotionMechanism) MarshalTo(dAtA []byte) (int, error)

func (*KargoRenderPromotionMechanism) MarshalToSizedBuffer added in v0.5.0

func (m *KargoRenderPromotionMechanism) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KargoRenderPromotionMechanism) ProtoMessage added in v0.5.0

func (*KargoRenderPromotionMechanism) ProtoMessage()

func (*KargoRenderPromotionMechanism) Reset added in v0.5.0

func (m *KargoRenderPromotionMechanism) Reset()

func (*KargoRenderPromotionMechanism) Size added in v0.5.0

func (m *KargoRenderPromotionMechanism) Size() (n int)

func (*KargoRenderPromotionMechanism) String added in v0.5.0

func (this *KargoRenderPromotionMechanism) String() string

func (*KargoRenderPromotionMechanism) Unmarshal added in v0.5.0

func (m *KargoRenderPromotionMechanism) Unmarshal(dAtA []byte) error

func (*KargoRenderPromotionMechanism) XXX_DiscardUnknown added in v0.5.0

func (m *KargoRenderPromotionMechanism) XXX_DiscardUnknown()

func (*KargoRenderPromotionMechanism) XXX_Marshal added in v0.5.0

func (m *KargoRenderPromotionMechanism) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KargoRenderPromotionMechanism) XXX_Merge added in v0.5.0

func (m *KargoRenderPromotionMechanism) XXX_Merge(src proto.Message)

func (*KargoRenderPromotionMechanism) XXX_Size added in v0.5.0

func (m *KargoRenderPromotionMechanism) XXX_Size() int

func (*KargoRenderPromotionMechanism) XXX_Unmarshal added in v0.5.0

func (m *KargoRenderPromotionMechanism) XXX_Unmarshal(b []byte) error

type KustomizeImageUpdate

type KustomizeImageUpdate struct {
	// Image specifies a container image (without tag). This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	Image string `json:"image" protobuf:"bytes,1,opt,name=image"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing KustomizePromotionMechanism's
	// Origin field. If that, too, is unspecified, Promotions will fail if there
	// is ever ambiguity regarding from which piece of Freight an artifact is to
	// be sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,4,opt,name=origin"`
	// Path specifies a path in which the `kustomize edit set image` command
	// should be executed. This is a required field.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[\w-\.]+(/[\w-\.]+)*$
	Path string `json:"path" protobuf:"bytes,2,opt,name=path"`
	// UseDigest specifies whether the image's digest should be used instead of
	// its tag.
	//
	// +kubebuilder:validation:Optional
	UseDigest bool `json:"useDigest" protobuf:"varint,3,opt,name=useDigest"`
}

KustomizeImageUpdate describes how to run `kustomize edit set image` for a given image.

func (*KustomizeImageUpdate) DeepCopy

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

func (*KustomizeImageUpdate) DeepCopyInto

func (in *KustomizeImageUpdate) DeepCopyInto(out *KustomizeImageUpdate)

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

func (*KustomizeImageUpdate) Descriptor added in v0.5.0

func (*KustomizeImageUpdate) Descriptor() ([]byte, []int)

func (*KustomizeImageUpdate) Marshal added in v0.5.0

func (m *KustomizeImageUpdate) Marshal() (dAtA []byte, err error)

func (*KustomizeImageUpdate) MarshalTo added in v0.5.0

func (m *KustomizeImageUpdate) MarshalTo(dAtA []byte) (int, error)

func (*KustomizeImageUpdate) MarshalToSizedBuffer added in v0.5.0

func (m *KustomizeImageUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KustomizeImageUpdate) ProtoMessage added in v0.5.0

func (*KustomizeImageUpdate) ProtoMessage()

func (*KustomizeImageUpdate) Reset added in v0.5.0

func (m *KustomizeImageUpdate) Reset()

func (*KustomizeImageUpdate) Size added in v0.5.0

func (m *KustomizeImageUpdate) Size() (n int)

func (*KustomizeImageUpdate) String added in v0.5.0

func (this *KustomizeImageUpdate) String() string

func (*KustomizeImageUpdate) Unmarshal added in v0.5.0

func (m *KustomizeImageUpdate) Unmarshal(dAtA []byte) error

func (*KustomizeImageUpdate) XXX_DiscardUnknown added in v0.5.0

func (m *KustomizeImageUpdate) XXX_DiscardUnknown()

func (*KustomizeImageUpdate) XXX_Marshal added in v0.5.0

func (m *KustomizeImageUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KustomizeImageUpdate) XXX_Merge added in v0.5.0

func (m *KustomizeImageUpdate) XXX_Merge(src proto.Message)

func (*KustomizeImageUpdate) XXX_Size added in v0.5.0

func (m *KustomizeImageUpdate) XXX_Size() int

func (*KustomizeImageUpdate) XXX_Unmarshal added in v0.5.0

func (m *KustomizeImageUpdate) XXX_Unmarshal(b []byte) error

type KustomizePromotionMechanism

type KustomizePromotionMechanism struct {
	// Images describes images for which `kustomize edit set image` should be
	// executed and the paths in which those commands should be executed.
	//
	// +kubebuilder:validation:MinItems=1
	Images []KustomizeImageUpdate `json:"images" protobuf:"bytes,1,rep,name=images"`
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. When left unspecified, it will
	// implicitly inherit the value of the enclosing GitRepoUpdate's Origin field.
	// If that, too, is unspecified, Promotions will fail if there is ever
	// ambiguity regarding from which piece of Freight an artifact is to be
	// sourced.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,2,opt,name=origin"`
}

KustomizePromotionMechanism describes how to use Kustomize to incorporate Freight into a Stage.

func (*KustomizePromotionMechanism) DeepCopy

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

func (*KustomizePromotionMechanism) DeepCopyInto

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

func (*KustomizePromotionMechanism) Descriptor added in v0.5.0

func (*KustomizePromotionMechanism) Descriptor() ([]byte, []int)

func (*KustomizePromotionMechanism) Marshal added in v0.5.0

func (m *KustomizePromotionMechanism) Marshal() (dAtA []byte, err error)

func (*KustomizePromotionMechanism) MarshalTo added in v0.5.0

func (m *KustomizePromotionMechanism) MarshalTo(dAtA []byte) (int, error)

func (*KustomizePromotionMechanism) MarshalToSizedBuffer added in v0.5.0

func (m *KustomizePromotionMechanism) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KustomizePromotionMechanism) ProtoMessage added in v0.5.0

func (*KustomizePromotionMechanism) ProtoMessage()

func (*KustomizePromotionMechanism) Reset added in v0.5.0

func (m *KustomizePromotionMechanism) Reset()

func (*KustomizePromotionMechanism) Size added in v0.5.0

func (m *KustomizePromotionMechanism) Size() (n int)

func (*KustomizePromotionMechanism) String added in v0.5.0

func (this *KustomizePromotionMechanism) String() string

func (*KustomizePromotionMechanism) Unmarshal added in v0.5.0

func (m *KustomizePromotionMechanism) Unmarshal(dAtA []byte) error

func (*KustomizePromotionMechanism) XXX_DiscardUnknown added in v0.5.0

func (m *KustomizePromotionMechanism) XXX_DiscardUnknown()

func (*KustomizePromotionMechanism) XXX_Marshal added in v0.5.0

func (m *KustomizePromotionMechanism) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KustomizePromotionMechanism) XXX_Merge added in v0.5.0

func (m *KustomizePromotionMechanism) XXX_Merge(src proto.Message)

func (*KustomizePromotionMechanism) XXX_Size added in v0.5.0

func (m *KustomizePromotionMechanism) XXX_Size() int

func (*KustomizePromotionMechanism) XXX_Unmarshal added in v0.5.0

func (m *KustomizePromotionMechanism) XXX_Unmarshal(b []byte) error

type Project added in v0.4.0

type Project struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	// Spec describes a Project.
	Spec *ProjectSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	// Status describes the Project's current status.
	Status ProjectStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

Project is a resource type that reconciles to a specially labeled namespace and other TODO: TBD project-level resources.

func GetProject added in v0.4.0

func GetProject(
	ctx context.Context,
	c client.Client,
	name string,
) (*Project, error)

GetProject returns a pointer to the cluster-scoped Project resource specified by the name argument. If no such resource is found, nil is returned instead.

func (*Project) DeepCopy added in v0.4.0

func (in *Project) DeepCopy() *Project

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

func (*Project) DeepCopyInto added in v0.4.0

func (in *Project) DeepCopyInto(out *Project)

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

func (*Project) DeepCopyObject added in v0.4.0

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

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

func (*Project) Descriptor added in v0.5.0

func (*Project) Descriptor() ([]byte, []int)

func (*Project) GetStatus added in v0.4.0

func (p *Project) GetStatus() *ProjectStatus

func (*Project) Marshal added in v0.5.0

func (m *Project) Marshal() (dAtA []byte, err error)

func (*Project) MarshalTo added in v0.5.0

func (m *Project) MarshalTo(dAtA []byte) (int, error)

func (*Project) MarshalToSizedBuffer added in v0.5.0

func (m *Project) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Project) ProtoMessage added in v0.5.0

func (*Project) ProtoMessage()

func (*Project) Reset added in v0.5.0

func (m *Project) Reset()

func (*Project) Size added in v0.5.0

func (m *Project) Size() (n int)

func (*Project) String added in v0.5.0

func (this *Project) String() string

func (*Project) Unmarshal added in v0.5.0

func (m *Project) Unmarshal(dAtA []byte) error

func (*Project) XXX_DiscardUnknown added in v0.5.0

func (m *Project) XXX_DiscardUnknown()

func (*Project) XXX_Marshal added in v0.5.0

func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Project) XXX_Merge added in v0.5.0

func (m *Project) XXX_Merge(src proto.Message)

func (*Project) XXX_Size added in v0.5.0

func (m *Project) XXX_Size() int

func (*Project) XXX_Unmarshal added in v0.5.0

func (m *Project) XXX_Unmarshal(b []byte) error

type ProjectList added in v0.4.0

type ProjectList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []Project `json:"items" protobuf:"bytes,2,rep,name=items"`
}

ProjectList is a list of Project resources.

func (*ProjectList) DeepCopy added in v0.4.0

func (in *ProjectList) DeepCopy() *ProjectList

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

func (*ProjectList) DeepCopyInto added in v0.4.0

func (in *ProjectList) DeepCopyInto(out *ProjectList)

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

func (*ProjectList) DeepCopyObject added in v0.4.0

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

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

func (*ProjectList) Descriptor added in v0.5.0

func (*ProjectList) Descriptor() ([]byte, []int)

func (*ProjectList) Marshal added in v0.5.0

func (m *ProjectList) Marshal() (dAtA []byte, err error)

func (*ProjectList) MarshalTo added in v0.5.0

func (m *ProjectList) MarshalTo(dAtA []byte) (int, error)

func (*ProjectList) MarshalToSizedBuffer added in v0.5.0

func (m *ProjectList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProjectList) ProtoMessage added in v0.5.0

func (*ProjectList) ProtoMessage()

func (*ProjectList) Reset added in v0.5.0

func (m *ProjectList) Reset()

func (*ProjectList) Size added in v0.5.0

func (m *ProjectList) Size() (n int)

func (*ProjectList) String added in v0.5.0

func (this *ProjectList) String() string

func (*ProjectList) Unmarshal added in v0.5.0

func (m *ProjectList) Unmarshal(dAtA []byte) error

func (*ProjectList) XXX_DiscardUnknown added in v0.5.0

func (m *ProjectList) XXX_DiscardUnknown()

func (*ProjectList) XXX_Marshal added in v0.5.0

func (m *ProjectList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProjectList) XXX_Merge added in v0.5.0

func (m *ProjectList) XXX_Merge(src proto.Message)

func (*ProjectList) XXX_Size added in v0.5.0

func (m *ProjectList) XXX_Size() int

func (*ProjectList) XXX_Unmarshal added in v0.5.0

func (m *ProjectList) XXX_Unmarshal(b []byte) error

type ProjectPhase added in v0.4.0

type ProjectPhase string
const (
	// ProjectPhaseInitializing denotes a Project that is not yet fully
	// initialized.
	ProjectPhaseInitializing ProjectPhase = "Initializing"
	// ProjectPhaseInitializationFailed denotes a Project while failed to
	// initialize properly.
	ProjectPhaseInitializationFailed ProjectPhase = "InitializationFailed"
	// ProjectPhaseReady denotes a Project that is fully initialized.
	ProjectPhaseReady ProjectPhase = "Ready"
)

func (*ProjectPhase) IsTerminal added in v0.4.0

func (p *ProjectPhase) IsTerminal() bool

IsTerminal returns true if the ProjectPhase is a terminal one.

type ProjectSpec added in v0.4.0

type ProjectSpec struct {
	// PromotionPolicies defines policies governing the promotion of Freight to
	// specific Stages within this Project.
	PromotionPolicies []PromotionPolicy `json:"promotionPolicies,omitempty" protobuf:"bytes,1,rep,name=promotionPolicies"`
}

ProjectSpec describes a Project.

func (*ProjectSpec) DeepCopy added in v0.4.0

func (in *ProjectSpec) DeepCopy() *ProjectSpec

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

func (*ProjectSpec) DeepCopyInto added in v0.4.0

func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)

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

func (*ProjectSpec) Descriptor added in v0.5.0

func (*ProjectSpec) Descriptor() ([]byte, []int)

func (*ProjectSpec) Marshal added in v0.5.0

func (m *ProjectSpec) Marshal() (dAtA []byte, err error)

func (*ProjectSpec) MarshalTo added in v0.5.0

func (m *ProjectSpec) MarshalTo(dAtA []byte) (int, error)

func (*ProjectSpec) MarshalToSizedBuffer added in v0.5.0

func (m *ProjectSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProjectSpec) ProtoMessage added in v0.5.0

func (*ProjectSpec) ProtoMessage()

func (*ProjectSpec) Reset added in v0.5.0

func (m *ProjectSpec) Reset()

func (*ProjectSpec) Size added in v0.5.0

func (m *ProjectSpec) Size() (n int)

func (*ProjectSpec) String added in v0.5.0

func (this *ProjectSpec) String() string

func (*ProjectSpec) Unmarshal added in v0.5.0

func (m *ProjectSpec) Unmarshal(dAtA []byte) error

func (*ProjectSpec) XXX_DiscardUnknown added in v0.5.0

func (m *ProjectSpec) XXX_DiscardUnknown()

func (*ProjectSpec) XXX_Marshal added in v0.5.0

func (m *ProjectSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProjectSpec) XXX_Merge added in v0.5.0

func (m *ProjectSpec) XXX_Merge(src proto.Message)

func (*ProjectSpec) XXX_Size added in v0.5.0

func (m *ProjectSpec) XXX_Size() int

func (*ProjectSpec) XXX_Unmarshal added in v0.5.0

func (m *ProjectSpec) XXX_Unmarshal(b []byte) error

type ProjectStatus added in v0.4.0

type ProjectStatus struct {
	// Phase describes the Project's current phase.
	Phase ProjectPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase"`
	// Message is a display message about the Project, including any errors
	// preventing the Project from being reconciled. i.e. If the Phase field has a
	// value of CreationFailed, this field can be expected to explain why.
	Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"`
}

ProjectStatus describes a Project's current status.

func (*ProjectStatus) DeepCopy added in v0.4.0

func (in *ProjectStatus) DeepCopy() *ProjectStatus

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

func (*ProjectStatus) DeepCopyInto added in v0.4.0

func (in *ProjectStatus) DeepCopyInto(out *ProjectStatus)

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

func (*ProjectStatus) Descriptor added in v0.5.0

func (*ProjectStatus) Descriptor() ([]byte, []int)

func (*ProjectStatus) Marshal added in v0.5.0

func (m *ProjectStatus) Marshal() (dAtA []byte, err error)

func (*ProjectStatus) MarshalTo added in v0.5.0

func (m *ProjectStatus) MarshalTo(dAtA []byte) (int, error)

func (*ProjectStatus) MarshalToSizedBuffer added in v0.5.0

func (m *ProjectStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProjectStatus) ProtoMessage added in v0.5.0

func (*ProjectStatus) ProtoMessage()

func (*ProjectStatus) Reset added in v0.5.0

func (m *ProjectStatus) Reset()

func (*ProjectStatus) Size added in v0.5.0

func (m *ProjectStatus) Size() (n int)

func (*ProjectStatus) String added in v0.5.0

func (this *ProjectStatus) String() string

func (*ProjectStatus) Unmarshal added in v0.5.0

func (m *ProjectStatus) Unmarshal(dAtA []byte) error

func (*ProjectStatus) XXX_DiscardUnknown added in v0.5.0

func (m *ProjectStatus) XXX_DiscardUnknown()

func (*ProjectStatus) XXX_Marshal added in v0.5.0

func (m *ProjectStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProjectStatus) XXX_Merge added in v0.5.0

func (m *ProjectStatus) XXX_Merge(src proto.Message)

func (*ProjectStatus) XXX_Size added in v0.5.0

func (m *ProjectStatus) XXX_Size() int

func (*ProjectStatus) XXX_Unmarshal added in v0.5.0

func (m *ProjectStatus) XXX_Unmarshal(b []byte) error

type Promotion

type Promotion struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	// Spec describes the desired transition of a specific Stage into a specific
	// Freight.
	//
	// +kubebuilder:validation:Required
	Spec PromotionSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
	// Status describes the current state of the transition represented by this
	// Promotion.
	Status PromotionStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

Promotion represents a request to transition a particular Stage into a particular Freight.

func GetPromotion added in v0.2.0

func GetPromotion(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
) (*Promotion, error)

GetPromotion returns a pointer to the Promotion resource specified by the namespacedName argument. If no such resource is found, nil is returned instead.

func RefreshPromotion added in v0.3.0

func RefreshPromotion(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
) (*Promotion, error)

RefreshPromotion forces reconciliation of a Promotion by setting an annotation on the Promotion, causing the controller to reconcile it. Currently, the annotation value is the timestamp of the request, but might in the future include additional metadata/context necessary for the request.

func (*Promotion) DeepCopy

func (in *Promotion) DeepCopy() *Promotion

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

func (*Promotion) DeepCopyInto

func (in *Promotion) DeepCopyInto(out *Promotion)

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

func (*Promotion) DeepCopyObject

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

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

func (*Promotion) Descriptor added in v0.5.0

func (*Promotion) Descriptor() ([]byte, []int)

func (*Promotion) GetStatus

func (p *Promotion) GetStatus() *PromotionStatus

func (*Promotion) Marshal added in v0.5.0

func (m *Promotion) Marshal() (dAtA []byte, err error)

func (*Promotion) MarshalTo added in v0.5.0

func (m *Promotion) MarshalTo(dAtA []byte) (int, error)

func (*Promotion) MarshalToSizedBuffer added in v0.5.0

func (m *Promotion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Promotion) ProtoMessage added in v0.5.0

func (*Promotion) ProtoMessage()

func (*Promotion) Reset added in v0.5.0

func (m *Promotion) Reset()

func (*Promotion) Size added in v0.5.0

func (m *Promotion) Size() (n int)

func (*Promotion) String added in v0.5.0

func (this *Promotion) String() string

func (*Promotion) Unmarshal added in v0.5.0

func (m *Promotion) Unmarshal(dAtA []byte) error

func (*Promotion) XXX_DiscardUnknown added in v0.5.0

func (m *Promotion) XXX_DiscardUnknown()

func (*Promotion) XXX_Marshal added in v0.5.0

func (m *Promotion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Promotion) XXX_Merge added in v0.5.0

func (m *Promotion) XXX_Merge(src proto.Message)

func (*Promotion) XXX_Size added in v0.5.0

func (m *Promotion) XXX_Size() int

func (*Promotion) XXX_Unmarshal added in v0.5.0

func (m *Promotion) XXX_Unmarshal(b []byte) error

type PromotionList

type PromotionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []Promotion `json:"items" protobuf:"bytes,2,rep,name=items"`
}

PromotionList contains a list of Promotion

func (*PromotionList) DeepCopy

func (in *PromotionList) DeepCopy() *PromotionList

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

func (*PromotionList) DeepCopyInto

func (in *PromotionList) DeepCopyInto(out *PromotionList)

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

func (*PromotionList) DeepCopyObject

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

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

func (*PromotionList) Descriptor added in v0.5.0

func (*PromotionList) Descriptor() ([]byte, []int)

func (*PromotionList) Marshal added in v0.5.0

func (m *PromotionList) Marshal() (dAtA []byte, err error)

func (*PromotionList) MarshalTo added in v0.5.0

func (m *PromotionList) MarshalTo(dAtA []byte) (int, error)

func (*PromotionList) MarshalToSizedBuffer added in v0.5.0

func (m *PromotionList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PromotionList) ProtoMessage added in v0.5.0

func (*PromotionList) ProtoMessage()

func (*PromotionList) Reset added in v0.5.0

func (m *PromotionList) Reset()

func (*PromotionList) Size added in v0.5.0

func (m *PromotionList) Size() (n int)

func (*PromotionList) String added in v0.5.0

func (this *PromotionList) String() string

func (*PromotionList) Unmarshal added in v0.5.0

func (m *PromotionList) Unmarshal(dAtA []byte) error

func (*PromotionList) XXX_DiscardUnknown added in v0.5.0

func (m *PromotionList) XXX_DiscardUnknown()

func (*PromotionList) XXX_Marshal added in v0.5.0

func (m *PromotionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PromotionList) XXX_Merge added in v0.5.0

func (m *PromotionList) XXX_Merge(src proto.Message)

func (*PromotionList) XXX_Size added in v0.5.0

func (m *PromotionList) XXX_Size() int

func (*PromotionList) XXX_Unmarshal added in v0.5.0

func (m *PromotionList) XXX_Unmarshal(b []byte) error

type PromotionMechanisms

type PromotionMechanisms struct {
	// Origin disambiguates the origin from which artifacts used by this promotion
	// mechanism must have originated. This is especially useful in cases where a
	// Stage may request Freight from multiples origins (e.g. multiple Warehouses)
	// and some of those each reference different versions of artifacts from the
	// same repository. This field is optional. Its value is overridable by
	// child promotion mechanisms.
	Origin *FreightOrigin `json:"origin,omitempty" protobuf:"bytes,3,opt,name=origin"`
	// GitRepoUpdates describes updates that should be applied to Git repositories
	// to incorporate Freight into the Stage. This field is optional, as such
	// actions are not required in all cases.
	GitRepoUpdates []GitRepoUpdate `json:"gitRepoUpdates,omitempty" protobuf:"bytes,1,rep,name=gitRepoUpdates"`
	// ArgoCDAppUpdates describes updates that should be applied to Argo CD
	// Application resources to incorporate Freight into the Stage. This field is
	// optional, as such actions are not required in all cases. Note that all
	// updates specified by the GitRepoUpdates field, if any, are applied BEFORE
	// these.
	ArgoCDAppUpdates []ArgoCDAppUpdate `json:"argoCDAppUpdates,omitempty" protobuf:"bytes,2,rep,name=argoCDAppUpdates"`
}

PromotionMechanisms describes how to incorporate Freight into a Stage.

func (*PromotionMechanisms) DeepCopy

func (in *PromotionMechanisms) DeepCopy() *PromotionMechanisms

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

func (*PromotionMechanisms) DeepCopyInto

func (in *PromotionMechanisms) DeepCopyInto(out *PromotionMechanisms)

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

func (*PromotionMechanisms) Descriptor added in v0.5.0

func (*PromotionMechanisms) Descriptor() ([]byte, []int)

func (*PromotionMechanisms) Marshal added in v0.5.0

func (m *PromotionMechanisms) Marshal() (dAtA []byte, err error)

func (*PromotionMechanisms) MarshalTo added in v0.5.0

func (m *PromotionMechanisms) MarshalTo(dAtA []byte) (int, error)

func (*PromotionMechanisms) MarshalToSizedBuffer added in v0.5.0

func (m *PromotionMechanisms) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PromotionMechanisms) ProtoMessage added in v0.5.0

func (*PromotionMechanisms) ProtoMessage()

func (*PromotionMechanisms) Reset added in v0.5.0

func (m *PromotionMechanisms) Reset()

func (*PromotionMechanisms) Size added in v0.5.0

func (m *PromotionMechanisms) Size() (n int)

func (*PromotionMechanisms) String added in v0.5.0

func (this *PromotionMechanisms) String() string

func (*PromotionMechanisms) Unmarshal added in v0.5.0

func (m *PromotionMechanisms) Unmarshal(dAtA []byte) error

func (*PromotionMechanisms) XXX_DiscardUnknown added in v0.5.0

func (m *PromotionMechanisms) XXX_DiscardUnknown()

func (*PromotionMechanisms) XXX_Marshal added in v0.5.0

func (m *PromotionMechanisms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PromotionMechanisms) XXX_Merge added in v0.5.0

func (m *PromotionMechanisms) XXX_Merge(src proto.Message)

func (*PromotionMechanisms) XXX_Size added in v0.5.0

func (m *PromotionMechanisms) XXX_Size() int

func (*PromotionMechanisms) XXX_Unmarshal added in v0.5.0

func (m *PromotionMechanisms) XXX_Unmarshal(b []byte) error

type PromotionPhase

type PromotionPhase string
const (
	// PromotionPhasePending denotes a Promotion that has not been executed yet.
	// i.e. It is currently waiting in a queue. Queues are stage-specific and
	// prioritized by Promotion creation time.
	PromotionPhasePending PromotionPhase = "Pending"
	// PromotionPhaseRunning denotes a Promotion that is actively being executed.
	//
	// TODO: "Active" is the operative word here. We are leaving room for the
	// possibility in the near future that an in-progress Promotion might be
	// paused/suspended pending some user action.
	PromotionPhaseRunning PromotionPhase = "Running"
	// PromotionPhaseSucceeded denotes a Promotion that has been successfully
	// executed.
	PromotionPhaseSucceeded PromotionPhase = "Succeeded"
	// PromotionPhaseFailed denotes a Promotion that has failed
	PromotionPhaseFailed PromotionPhase = "Failed"
	// PromotionPhaseErrored denotes a Promotion that has failed for technical
	// reasons. Further information about the failure can be found in the
	// Promotion's status.
	PromotionPhaseErrored PromotionPhase = "Errored"
)

func (*PromotionPhase) IsTerminal

func (p *PromotionPhase) IsTerminal() bool

IsTerminal returns true if the PromotionPhase is a terminal one.

type PromotionPolicy

type PromotionPolicy struct {
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
	Stage string `json:"stage" protobuf:"bytes,1,opt,name=stage"`
	// AutoPromotionEnabled indicates whether new Freight can automatically be
	// promoted into the Stage referenced by the Stage field. Note: There are may
	// be other conditions also required for an auto-promotion to occur. This
	// field defaults to false, but is commonly set to true for Stages that
	// subscribe to Warehouses instead of other, upstream Stages. This allows
	// users to define Stages that are automatically updated as soon as new
	// artifacts are detected.
	AutoPromotionEnabled bool `json:"autoPromotionEnabled,omitempty" protobuf:"varint,2,opt,name=autoPromotionEnabled"`
}

PromotionPolicy defines policies governing the promotion of Freight to a specific Stage.

func (*PromotionPolicy) DeepCopy

func (in *PromotionPolicy) DeepCopy() *PromotionPolicy

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

func (*PromotionPolicy) DeepCopyInto

func (in *PromotionPolicy) DeepCopyInto(out *PromotionPolicy)

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

func (*PromotionPolicy) Descriptor added in v0.5.0

func (*PromotionPolicy) Descriptor() ([]byte, []int)

func (*PromotionPolicy) Marshal added in v0.5.0

func (m *PromotionPolicy) Marshal() (dAtA []byte, err error)

func (*PromotionPolicy) MarshalTo added in v0.5.0

func (m *PromotionPolicy) MarshalTo(dAtA []byte) (int, error)

func (*PromotionPolicy) MarshalToSizedBuffer added in v0.5.0

func (m *PromotionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PromotionPolicy) ProtoMessage added in v0.5.0

func (*PromotionPolicy) ProtoMessage()

func (*PromotionPolicy) Reset added in v0.5.0

func (m *PromotionPolicy) Reset()

func (*PromotionPolicy) Size added in v0.5.0

func (m *PromotionPolicy) Size() (n int)

func (*PromotionPolicy) String added in v0.5.0

func (this *PromotionPolicy) String() string

func (*PromotionPolicy) Unmarshal added in v0.5.0

func (m *PromotionPolicy) Unmarshal(dAtA []byte) error

func (*PromotionPolicy) XXX_DiscardUnknown added in v0.5.0

func (m *PromotionPolicy) XXX_DiscardUnknown()

func (*PromotionPolicy) XXX_Marshal added in v0.5.0

func (m *PromotionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PromotionPolicy) XXX_Merge added in v0.5.0

func (m *PromotionPolicy) XXX_Merge(src proto.Message)

func (*PromotionPolicy) XXX_Size added in v0.5.0

func (m *PromotionPolicy) XXX_Size() int

func (*PromotionPolicy) XXX_Unmarshal added in v0.5.0

func (m *PromotionPolicy) XXX_Unmarshal(b []byte) error

type PromotionReference added in v0.8.0

type PromotionReference struct {
	// Name is the name of the Promotion
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// Freight is the freight being promoted
	Freight *FreightReference `json:"freight,omitempty" protobuf:"bytes,2,opt,name=freight"`
	// Status is the (optional) status of the promotion
	Status *PromotionStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
	// FinishedAt is the time at which the Promotion was completed.
	FinishedAt *metav1.Time `json:"finishedAt,omitempty" protobuf:"bytes,4,opt,name=finishedAt"`
}

func (*PromotionReference) DeepCopy added in v0.8.0

func (in *PromotionReference) DeepCopy() *PromotionReference

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

func (*PromotionReference) DeepCopyInto added in v0.8.0

func (in *PromotionReference) DeepCopyInto(out *PromotionReference)

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

func (*PromotionReference) Descriptor added in v0.8.0

func (*PromotionReference) Descriptor() ([]byte, []int)

func (*PromotionReference) Marshal added in v0.8.0

func (m *PromotionReference) Marshal() (dAtA []byte, err error)

func (*PromotionReference) MarshalTo added in v0.8.0

func (m *PromotionReference) MarshalTo(dAtA []byte) (int, error)

func (*PromotionReference) MarshalToSizedBuffer added in v0.8.0

func (m *PromotionReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PromotionReference) ProtoMessage added in v0.8.0

func (*PromotionReference) ProtoMessage()

func (*PromotionReference) Reset added in v0.8.0

func (m *PromotionReference) Reset()

func (*PromotionReference) Size added in v0.8.0

func (m *PromotionReference) Size() (n int)

func (*PromotionReference) String added in v0.8.0

func (this *PromotionReference) String() string

func (*PromotionReference) Unmarshal added in v0.8.0

func (m *PromotionReference) Unmarshal(dAtA []byte) error

func (*PromotionReference) XXX_DiscardUnknown added in v0.8.0

func (m *PromotionReference) XXX_DiscardUnknown()

func (*PromotionReference) XXX_Marshal added in v0.8.0

func (m *PromotionReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PromotionReference) XXX_Merge added in v0.8.0

func (m *PromotionReference) XXX_Merge(src proto.Message)

func (*PromotionReference) XXX_Size added in v0.8.0

func (m *PromotionReference) XXX_Size() int

func (*PromotionReference) XXX_Unmarshal added in v0.8.0

func (m *PromotionReference) XXX_Unmarshal(b []byte) error

type PromotionSpec

type PromotionSpec struct {
	// Stage specifies the name of the Stage to which this Promotion
	// applies. The Stage referenced by this field MUST be in the same
	// namespace as the Promotion.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
	Stage string `json:"stage" protobuf:"bytes,1,opt,name=stage"`
	// Freight specifies the piece of Freight to be promoted into the Stage
	// referenced by the Stage field.
	//
	// +kubebuilder:validation:MinLength=1
	Freight string `json:"freight" protobuf:"bytes,2,opt,name=freight"`
}

PromotionSpec describes the desired transition of a specific Stage into a specific Freight.

func (*PromotionSpec) DeepCopy

func (in *PromotionSpec) DeepCopy() *PromotionSpec

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

func (*PromotionSpec) DeepCopyInto

func (in *PromotionSpec) DeepCopyInto(out *PromotionSpec)

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

func (*PromotionSpec) Descriptor added in v0.5.0

func (*PromotionSpec) Descriptor() ([]byte, []int)

func (*PromotionSpec) Marshal added in v0.5.0

func (m *PromotionSpec) Marshal() (dAtA []byte, err error)

func (*PromotionSpec) MarshalTo added in v0.5.0

func (m *PromotionSpec) MarshalTo(dAtA []byte) (int, error)

func (*PromotionSpec) MarshalToSizedBuffer added in v0.5.0

func (m *PromotionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PromotionSpec) ProtoMessage added in v0.5.0

func (*PromotionSpec) ProtoMessage()

func (*PromotionSpec) Reset added in v0.5.0

func (m *PromotionSpec) Reset()

func (*PromotionSpec) Size added in v0.5.0

func (m *PromotionSpec) Size() (n int)

func (*PromotionSpec) String added in v0.5.0

func (this *PromotionSpec) String() string

func (*PromotionSpec) Unmarshal added in v0.5.0

func (m *PromotionSpec) Unmarshal(dAtA []byte) error

func (*PromotionSpec) XXX_DiscardUnknown added in v0.5.0

func (m *PromotionSpec) XXX_DiscardUnknown()

func (*PromotionSpec) XXX_Marshal added in v0.5.0

func (m *PromotionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PromotionSpec) XXX_Merge added in v0.5.0

func (m *PromotionSpec) XXX_Merge(src proto.Message)

func (*PromotionSpec) XXX_Size added in v0.5.0

func (m *PromotionSpec) XXX_Size() int

func (*PromotionSpec) XXX_Unmarshal added in v0.5.0

func (m *PromotionSpec) XXX_Unmarshal(b []byte) error

type PromotionStatus

type PromotionStatus struct {
	// LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh
	// annotation that was handled by the controller. This field can be used to
	// determine whether the request to refresh the resource has been handled.
	// +optional
	LastHandledRefresh string `json:"lastHandledRefresh,omitempty" protobuf:"bytes,4,opt,name=lastHandledRefresh"`
	// Phase describes where the Promotion currently is in its lifecycle.
	Phase PromotionPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase"`
	// Message is a display message about the promotion, including any errors
	// preventing the Promotion controller from executing this Promotion.
	// i.e. If the Phase field has a value of Failed, this field can be expected
	// to explain why.
	Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"`
	// Metadata holds arbitrary metadata set by promotion mechanisms
	// (e.g. for display purposes, or internal bookkeeping)
	Metadata map[string]string `` /* 136-byte string literal not displayed */
	// Freight is the detail of the piece of freight that was referenced by this promotion.
	Freight *FreightReference `json:"freight,omitempty" protobuf:"bytes,5,opt,name=freight"`
	// FreightCollection contains the details of the piece of Freight referenced
	// by this Promotion as well as any additional Freight that is carried over
	// from the target Stage's current state.
	FreightCollection *FreightCollection `json:"freightCollection,omitempty" protobuf:"bytes,7,opt,name=freightCollection"`
	// FinishedAt is the time when the promotion was completed.
	FinishedAt *metav1.Time `json:"finishedAt,omitempty" protobuf:"bytes,6,opt,name=finishedAt"`
}

PromotionStatus describes the current state of the transition represented by a Promotion.

func (*PromotionStatus) DeepCopy

func (in *PromotionStatus) DeepCopy() *PromotionStatus

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

func (*PromotionStatus) DeepCopyInto

func (in *PromotionStatus) DeepCopyInto(out *PromotionStatus)

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

func (*PromotionStatus) Descriptor added in v0.5.0

func (*PromotionStatus) Descriptor() ([]byte, []int)

func (*PromotionStatus) Marshal added in v0.5.0

func (m *PromotionStatus) Marshal() (dAtA []byte, err error)

func (*PromotionStatus) MarshalTo added in v0.5.0

func (m *PromotionStatus) MarshalTo(dAtA []byte) (int, error)

func (*PromotionStatus) MarshalToSizedBuffer added in v0.5.0

func (m *PromotionStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PromotionStatus) ProtoMessage added in v0.5.0

func (*PromotionStatus) ProtoMessage()

func (*PromotionStatus) Reset added in v0.5.0

func (m *PromotionStatus) Reset()

func (*PromotionStatus) Size added in v0.5.0

func (m *PromotionStatus) Size() (n int)

func (*PromotionStatus) String added in v0.5.0

func (this *PromotionStatus) String() string

func (*PromotionStatus) Unmarshal added in v0.5.0

func (m *PromotionStatus) Unmarshal(dAtA []byte) error

func (*PromotionStatus) WithPhase added in v0.3.0

func (p *PromotionStatus) WithPhase(phase PromotionPhase) *PromotionStatus

WithPhase returns a copy of PromotionStatus with the given phase

func (*PromotionStatus) XXX_DiscardUnknown added in v0.5.0

func (m *PromotionStatus) XXX_DiscardUnknown()

func (*PromotionStatus) XXX_Marshal added in v0.5.0

func (m *PromotionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PromotionStatus) XXX_Merge added in v0.5.0

func (m *PromotionStatus) XXX_Merge(src proto.Message)

func (*PromotionStatus) XXX_Size added in v0.5.0

func (m *PromotionStatus) XXX_Size() int

func (*PromotionStatus) XXX_Unmarshal added in v0.5.0

func (m *PromotionStatus) XXX_Unmarshal(b []byte) error

type PullRequestPromotionMechanism added in v0.3.0

type PullRequestPromotionMechanism struct {
	// GitHub indicates git provider is GitHub
	GitHub *GitHubPullRequest `json:"github,omitempty" protobuf:"bytes,1,opt,name=github"`
	// GitLab indicates git provider is GitLab
	GitLab *GitLabPullRequest `json:"gitlab,omitempty" protobuf:"bytes,2,opt,name=gitlab"`
}

PullRequestPromotionMechanism describes how to generate a pull request against the write branch during promotion Attempts to infer the git provider from well-known git domains.

func (*PullRequestPromotionMechanism) DeepCopy added in v0.3.0

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

func (*PullRequestPromotionMechanism) DeepCopyInto added in v0.3.0

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

func (*PullRequestPromotionMechanism) Descriptor added in v0.5.0

func (*PullRequestPromotionMechanism) Descriptor() ([]byte, []int)

func (*PullRequestPromotionMechanism) Marshal added in v0.5.0

func (m *PullRequestPromotionMechanism) Marshal() (dAtA []byte, err error)

func (*PullRequestPromotionMechanism) MarshalTo added in v0.5.0

func (m *PullRequestPromotionMechanism) MarshalTo(dAtA []byte) (int, error)

func (*PullRequestPromotionMechanism) MarshalToSizedBuffer added in v0.5.0

func (m *PullRequestPromotionMechanism) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PullRequestPromotionMechanism) ProtoMessage added in v0.5.0

func (*PullRequestPromotionMechanism) ProtoMessage()

func (*PullRequestPromotionMechanism) Reset added in v0.5.0

func (m *PullRequestPromotionMechanism) Reset()

func (*PullRequestPromotionMechanism) Size added in v0.5.0

func (m *PullRequestPromotionMechanism) Size() (n int)

func (*PullRequestPromotionMechanism) String added in v0.5.0

func (this *PullRequestPromotionMechanism) String() string

func (*PullRequestPromotionMechanism) Unmarshal added in v0.5.0

func (m *PullRequestPromotionMechanism) Unmarshal(dAtA []byte) error

func (*PullRequestPromotionMechanism) XXX_DiscardUnknown added in v0.5.0

func (m *PullRequestPromotionMechanism) XXX_DiscardUnknown()

func (*PullRequestPromotionMechanism) XXX_Marshal added in v0.5.0

func (m *PullRequestPromotionMechanism) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PullRequestPromotionMechanism) XXX_Merge added in v0.5.0

func (m *PullRequestPromotionMechanism) XXX_Merge(src proto.Message)

func (*PullRequestPromotionMechanism) XXX_Size added in v0.5.0

func (m *PullRequestPromotionMechanism) XXX_Size() int

func (*PullRequestPromotionMechanism) XXX_Unmarshal added in v0.5.0

func (m *PullRequestPromotionMechanism) XXX_Unmarshal(b []byte) error

type RepoSubscription added in v0.2.0

type RepoSubscription struct {
	// Git describes a subscriptions to a Git repository.
	Git *GitSubscription `json:"git,omitempty" protobuf:"bytes,1,opt,name=git"`
	// Image describes a subscription to container image repository.
	Image *ImageSubscription `json:"image,omitempty" protobuf:"bytes,2,opt,name=image"`
	// Chart describes a subscription to a Helm chart repository.
	Chart *ChartSubscription `json:"chart,omitempty" protobuf:"bytes,3,opt,name=chart"`
}

RepoSubscription describes a subscription to ONE OF a Git repository, a container image repository, or a Helm chart repository.

func (*RepoSubscription) DeepCopy added in v0.2.0

func (in *RepoSubscription) DeepCopy() *RepoSubscription

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

func (*RepoSubscription) DeepCopyInto added in v0.2.0

func (in *RepoSubscription) DeepCopyInto(out *RepoSubscription)

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

func (*RepoSubscription) Descriptor added in v0.5.0

func (*RepoSubscription) Descriptor() ([]byte, []int)

func (*RepoSubscription) Marshal added in v0.5.0

func (m *RepoSubscription) Marshal() (dAtA []byte, err error)

func (*RepoSubscription) MarshalTo added in v0.5.0

func (m *RepoSubscription) MarshalTo(dAtA []byte) (int, error)

func (*RepoSubscription) MarshalToSizedBuffer added in v0.5.0

func (m *RepoSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RepoSubscription) ProtoMessage added in v0.5.0

func (*RepoSubscription) ProtoMessage()

func (*RepoSubscription) Reset added in v0.5.0

func (m *RepoSubscription) Reset()

func (*RepoSubscription) Size added in v0.5.0

func (m *RepoSubscription) Size() (n int)

func (*RepoSubscription) String added in v0.5.0

func (this *RepoSubscription) String() string

func (*RepoSubscription) Unmarshal added in v0.5.0

func (m *RepoSubscription) Unmarshal(dAtA []byte) error

func (*RepoSubscription) XXX_DiscardUnknown added in v0.5.0

func (m *RepoSubscription) XXX_DiscardUnknown()

func (*RepoSubscription) XXX_Marshal added in v0.5.0

func (m *RepoSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepoSubscription) XXX_Merge added in v0.5.0

func (m *RepoSubscription) XXX_Merge(src proto.Message)

func (*RepoSubscription) XXX_Size added in v0.5.0

func (m *RepoSubscription) XXX_Size() int

func (*RepoSubscription) XXX_Unmarshal added in v0.5.0

func (m *RepoSubscription) XXX_Unmarshal(b []byte) error

type Stage

type Stage struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	// Spec describes sources of Freight used by the Stage and how to incorporate
	// Freight into the Stage.
	//
	// +kubebuilder:validation:Required
	Spec StageSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
	// Status describes the Stage's current and recent Freight, health, and more.
	Status StageStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

Stage is the Kargo API's main type.

func GetStage

func GetStage(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
) (*Stage, error)

GetStage returns a pointer to the Stage resource specified by the namespacedName argument. If no such resource is found, nil is returned instead.

func RefreshStage

func RefreshStage(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
) (*Stage, error)

RefreshStage forces reconciliation of a Stage by setting an annotation on the Stage, causing the controller to reconcile it. Currently, the annotation value is the timestamp of the request, but might in the future include additional metadata/context necessary for the request.

func (*Stage) DeepCopy

func (in *Stage) DeepCopy() *Stage

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

func (*Stage) DeepCopyInto

func (in *Stage) DeepCopyInto(out *Stage)

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

func (*Stage) DeepCopyObject

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

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

func (*Stage) Descriptor added in v0.5.0

func (*Stage) Descriptor() ([]byte, []int)

func (*Stage) GetStatus

func (s *Stage) GetStatus() *StageStatus

func (*Stage) Marshal added in v0.5.0

func (m *Stage) Marshal() (dAtA []byte, err error)

func (*Stage) MarshalTo added in v0.5.0

func (m *Stage) MarshalTo(dAtA []byte) (int, error)

func (*Stage) MarshalToSizedBuffer added in v0.5.0

func (m *Stage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Stage) ProtoMessage added in v0.5.0

func (*Stage) ProtoMessage()

func (*Stage) Reset added in v0.5.0

func (m *Stage) Reset()

func (*Stage) Size added in v0.5.0

func (m *Stage) Size() (n int)

func (*Stage) String added in v0.5.0

func (this *Stage) String() string

func (*Stage) Unmarshal added in v0.5.0

func (m *Stage) Unmarshal(dAtA []byte) error

func (*Stage) XXX_DiscardUnknown added in v0.5.0

func (m *Stage) XXX_DiscardUnknown()

func (*Stage) XXX_Marshal added in v0.5.0

func (m *Stage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stage) XXX_Merge added in v0.5.0

func (m *Stage) XXX_Merge(src proto.Message)

func (*Stage) XXX_Size added in v0.5.0

func (m *Stage) XXX_Size() int

func (*Stage) XXX_Unmarshal added in v0.5.0

func (m *Stage) XXX_Unmarshal(b []byte) error

type StageList

type StageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []Stage `json:"items" protobuf:"bytes,2,rep,name=items"`
}

StageList is a list of Stage resources.

func (*StageList) DeepCopy

func (in *StageList) DeepCopy() *StageList

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

func (*StageList) DeepCopyInto

func (in *StageList) DeepCopyInto(out *StageList)

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

func (*StageList) DeepCopyObject

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

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

func (*StageList) Descriptor added in v0.5.0

func (*StageList) Descriptor() ([]byte, []int)

func (*StageList) Marshal added in v0.5.0

func (m *StageList) Marshal() (dAtA []byte, err error)

func (*StageList) MarshalTo added in v0.5.0

func (m *StageList) MarshalTo(dAtA []byte) (int, error)

func (*StageList) MarshalToSizedBuffer added in v0.5.0

func (m *StageList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StageList) ProtoMessage added in v0.5.0

func (*StageList) ProtoMessage()

func (*StageList) Reset added in v0.5.0

func (m *StageList) Reset()

func (*StageList) Size added in v0.5.0

func (m *StageList) Size() (n int)

func (*StageList) String added in v0.5.0

func (this *StageList) String() string

func (*StageList) Unmarshal added in v0.5.0

func (m *StageList) Unmarshal(dAtA []byte) error

func (*StageList) XXX_DiscardUnknown added in v0.5.0

func (m *StageList) XXX_DiscardUnknown()

func (*StageList) XXX_Marshal added in v0.5.0

func (m *StageList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StageList) XXX_Merge added in v0.5.0

func (m *StageList) XXX_Merge(src proto.Message)

func (*StageList) XXX_Size added in v0.5.0

func (m *StageList) XXX_Size() int

func (*StageList) XXX_Unmarshal added in v0.5.0

func (m *StageList) XXX_Unmarshal(b []byte) error

type StagePhase added in v0.3.0

type StagePhase string
const (
	// StagePhaseNotApplicable denotes a Stage that has no Freight.
	StagePhaseNotApplicable StagePhase = "NotApplicable"
	// StagePhaseSteady denotes a Stage that has Freight and is not currently
	// being promoted or verified.
	StagePhaseSteady StagePhase = "Steady"
	// StagePhasePromoting denotes a Stage that is currently being promoted.
	StagePhasePromoting StagePhase = "Promoting"
	// StagePhaseVerifying denotes a Stage that is currently being verified.
	StagePhaseVerifying StagePhase = "Verifying"
)

type StageSpec

type StageSpec struct {
	// Shard is the name of the shard that this Stage belongs to. This is an
	// optional field. If not specified, the Stage will belong to the default
	// shard. A defaulting webhook will sync the value of the
	// kargo.akuity.io/shard label with the value of this field. When this field
	// is empty, the webhook will ensure that label is absent.
	Shard string `json:"shard,omitempty" protobuf:"bytes,4,opt,name=shard"`
	// Subscriptions describes the Stage's sources of Freight. This is a required
	// field.
	//
	// Deprecated: Use RequestedFreight instead.
	Subscriptions Subscriptions `json:"subscriptions" protobuf:"bytes,1,opt,name=subscriptions"`
	// RequestedFreight expresses the Stage's need for certain pieces of Freight,
	// each having originated from a particular Warehouse. This list must be
	// non-empty. In the common case, a Stage will request Freight having
	// originated from just one specific Warehouse. In advanced cases, requesting
	// Freight from multiple Warehouses provides a method of advancing new
	// artifacts of different types through parallel pipelines at different
	// speeds. This can be useful, for instance, if a Stage is home to multiple
	// microservices that are independently versioned.
	//
	// +kubebuilder:validation:MinItems=1
	RequestedFreight []FreightRequest `json:"requestedFreight" protobuf:"bytes,5,rep,name=requestedFreight"`
	// PromotionMechanisms describes how to incorporate Freight into the Stage.
	// This is an optional field as it is sometimes useful to aggregates available
	// Freight from multiple upstream Stages without performing any actions. The
	// utility of this is to allow multiple downstream Stages to subscribe to a
	// single upstream Stage where they may otherwise have subscribed to multiple
	// upstream Stages.
	PromotionMechanisms *PromotionMechanisms `json:"promotionMechanisms,omitempty" protobuf:"bytes,2,opt,name=promotionMechanisms"`
	// Verification describes how to verify a Stage's current Freight is fit for
	// promotion downstream.
	Verification *Verification `json:"verification,omitempty" protobuf:"bytes,3,opt,name=verification"`
}

StageSpec describes the sources of Freight used by a Stage and how to incorporate Freight into the Stage.

func (*StageSpec) DeepCopy

func (in *StageSpec) DeepCopy() *StageSpec

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

func (*StageSpec) DeepCopyInto

func (in *StageSpec) DeepCopyInto(out *StageSpec)

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

func (*StageSpec) Descriptor added in v0.5.0

func (*StageSpec) Descriptor() ([]byte, []int)

func (*StageSpec) Marshal added in v0.5.0

func (m *StageSpec) Marshal() (dAtA []byte, err error)

func (*StageSpec) MarshalTo added in v0.5.0

func (m *StageSpec) MarshalTo(dAtA []byte) (int, error)

func (*StageSpec) MarshalToSizedBuffer added in v0.5.0

func (m *StageSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StageSpec) ProtoMessage added in v0.5.0

func (*StageSpec) ProtoMessage()

func (*StageSpec) Reset added in v0.5.0

func (m *StageSpec) Reset()

func (*StageSpec) Size added in v0.5.0

func (m *StageSpec) Size() (n int)

func (*StageSpec) String added in v0.5.0

func (this *StageSpec) String() string

func (*StageSpec) Unmarshal added in v0.5.0

func (m *StageSpec) Unmarshal(dAtA []byte) error

func (*StageSpec) XXX_DiscardUnknown added in v0.5.0

func (m *StageSpec) XXX_DiscardUnknown()

func (*StageSpec) XXX_Marshal added in v0.5.0

func (m *StageSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StageSpec) XXX_Merge added in v0.5.0

func (m *StageSpec) XXX_Merge(src proto.Message)

func (*StageSpec) XXX_Size added in v0.5.0

func (m *StageSpec) XXX_Size() int

func (*StageSpec) XXX_Unmarshal added in v0.5.0

func (m *StageSpec) XXX_Unmarshal(b []byte) error

type StageStatus

type StageStatus struct {
	// LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh
	// annotation that was handled by the controller. This field can be used to
	// determine whether the request to refresh the resource has been handled.
	// +optional
	LastHandledRefresh string `json:"lastHandledRefresh,omitempty" protobuf:"bytes,11,opt,name=lastHandledRefresh"`
	// Phase describes where the Stage currently is in its lifecycle.
	Phase StagePhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase"`
	// FreightHistory is a list of recent Freight selections that were deployed
	// to the Stage. By default, the last ten Freight selections are stored.
	// The first item in the list is the most recent Freight selection and
	// currently deployed to the Stage, subsequent items are older selections.
	FreightHistory FreightHistory `` /* 148-byte string literal not displayed */
	// FreightSummary is human-readable text maintained by the controller that
	// summarizes what Freight is currently deployed to the Stage. For Stages that
	// request a single piece of Freight AND the request has been fulfilled, this
	// field will simply contain the name of the Freight. For Stages that request
	// a single piece of Freight AND the request has NOT been fulfilled, or for
	// Stages that request multiple pieces of Freight, this field will contain a
	// summary of fulfilled/requested Freight. The existence of this field is a
	// workaround for kubectl limitations so that this complex but valuable
	// information can be displayed in a column in response to `kubectl get
	// stages`.
	FreightSummary string `json:"freightSummary,omitempty" protobuf:"bytes,12,opt,name=freightSummary"`
	// CurrentFreight is a simplified representation of the Stage's current
	// Freight describing what is currently deployed to the Stage.
	//
	// Deprecated: Use the top item in the FreightHistory stack instead.
	CurrentFreight *FreightReference `json:"currentFreight,omitempty" protobuf:"bytes,2,opt,name=currentFreight"`
	// History is a stack of recent Freight. By default, the last ten Freight are
	// stored.
	//
	// Deprecated: Use the FreightHistory stack instead.
	History FreightReferenceStack `json:"history,omitempty" protobuf:"bytes,3,rep,name=history"`
	// Health is the Stage's last observed health.
	Health *Health `json:"health,omitempty" protobuf:"bytes,8,opt,name=health"`
	// Message describes any errors that are preventing the Stage controller
	// from assessing Stage health or from finding new Freight.
	Message string `json:"message,omitempty" protobuf:"bytes,9,opt,name=message"`
	// ObservedGeneration represents the .metadata.generation that this Stage
	// status was reconciled against.
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,6,opt,name=observedGeneration"`
	// CurrentPromotion is a reference to the currently Running promotion.
	CurrentPromotion *PromotionReference `json:"currentPromotion,omitempty" protobuf:"bytes,7,opt,name=currentPromotion"`
	// LastPromotion is a reference to the last completed promotion.
	LastPromotion *PromotionReference `json:"lastPromotion,omitempty" protobuf:"bytes,10,opt,name=lastPromotion"`
}

StageStatus describes a Stages's current and recent Freight, health, and more.

func (*StageStatus) DeepCopy

func (in *StageStatus) DeepCopy() *StageStatus

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

func (*StageStatus) DeepCopyInto

func (in *StageStatus) DeepCopyInto(out *StageStatus)

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

func (*StageStatus) Descriptor added in v0.5.0

func (*StageStatus) Descriptor() ([]byte, []int)

func (*StageStatus) Marshal added in v0.5.0

func (m *StageStatus) Marshal() (dAtA []byte, err error)

func (*StageStatus) MarshalTo added in v0.5.0

func (m *StageStatus) MarshalTo(dAtA []byte) (int, error)

func (*StageStatus) MarshalToSizedBuffer added in v0.5.0

func (m *StageStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StageStatus) ProtoMessage added in v0.5.0

func (*StageStatus) ProtoMessage()

func (*StageStatus) Reset added in v0.5.0

func (m *StageStatus) Reset()

func (*StageStatus) Size added in v0.5.0

func (m *StageStatus) Size() (n int)

func (*StageStatus) String added in v0.5.0

func (this *StageStatus) String() string

func (*StageStatus) Unmarshal added in v0.5.0

func (m *StageStatus) Unmarshal(dAtA []byte) error

func (*StageStatus) XXX_DiscardUnknown added in v0.5.0

func (m *StageStatus) XXX_DiscardUnknown()

func (*StageStatus) XXX_Marshal added in v0.5.0

func (m *StageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StageStatus) XXX_Merge added in v0.5.0

func (m *StageStatus) XXX_Merge(src proto.Message)

func (*StageStatus) XXX_Size added in v0.5.0

func (m *StageStatus) XXX_Size() int

func (*StageStatus) XXX_Unmarshal added in v0.5.0

func (m *StageStatus) XXX_Unmarshal(b []byte) error

type StageSubscription deprecated

type StageSubscription struct {
	// Name specifies the name of a Stage.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
}

StageSubscription defines a subscription to Freight from another Stage.

Deprecated: Use FreightRequest instead.

func (*StageSubscription) DeepCopy

func (in *StageSubscription) DeepCopy() *StageSubscription

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

func (*StageSubscription) DeepCopyInto

func (in *StageSubscription) DeepCopyInto(out *StageSubscription)

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

func (*StageSubscription) Descriptor added in v0.5.0

func (*StageSubscription) Descriptor() ([]byte, []int)

func (*StageSubscription) Marshal added in v0.5.0

func (m *StageSubscription) Marshal() (dAtA []byte, err error)

func (*StageSubscription) MarshalTo added in v0.5.0

func (m *StageSubscription) MarshalTo(dAtA []byte) (int, error)

func (*StageSubscription) MarshalToSizedBuffer added in v0.5.0

func (m *StageSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StageSubscription) ProtoMessage added in v0.5.0

func (*StageSubscription) ProtoMessage()

func (*StageSubscription) Reset added in v0.5.0

func (m *StageSubscription) Reset()

func (*StageSubscription) Size added in v0.5.0

func (m *StageSubscription) Size() (n int)

func (*StageSubscription) String added in v0.5.0

func (this *StageSubscription) String() string

func (*StageSubscription) Unmarshal added in v0.5.0

func (m *StageSubscription) Unmarshal(dAtA []byte) error

func (*StageSubscription) XXX_DiscardUnknown added in v0.5.0

func (m *StageSubscription) XXX_DiscardUnknown()

func (*StageSubscription) XXX_Marshal added in v0.5.0

func (m *StageSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StageSubscription) XXX_Merge added in v0.5.0

func (m *StageSubscription) XXX_Merge(src proto.Message)

func (*StageSubscription) XXX_Size added in v0.5.0

func (m *StageSubscription) XXX_Size() int

func (*StageSubscription) XXX_Unmarshal added in v0.5.0

func (m *StageSubscription) XXX_Unmarshal(b []byte) error

type Subscriptions deprecated

type Subscriptions struct {
	// Warehouse is a subscription to a Warehouse. This field is mutually
	// exclusive with the UpstreamStages field.
	Warehouse string `json:"warehouse,omitempty" protobuf:"bytes,1,opt,name=warehouse"`
	// UpstreamStages identifies other Stages as potential sources of Freight
	// for this Stage. This field is mutually exclusive with the Repos field.
	UpstreamStages []StageSubscription `json:"upstreamStages,omitempty" protobuf:"bytes,2,rep,name=upstreamStages"`
}

Subscriptions describes a Stage's sources of Freight.

Deprecated: Use FreightRequest instead.

func (*Subscriptions) DeepCopy

func (in *Subscriptions) DeepCopy() *Subscriptions

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

func (*Subscriptions) DeepCopyInto

func (in *Subscriptions) DeepCopyInto(out *Subscriptions)

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

func (*Subscriptions) Descriptor added in v0.5.0

func (*Subscriptions) Descriptor() ([]byte, []int)

func (*Subscriptions) Marshal added in v0.5.0

func (m *Subscriptions) Marshal() (dAtA []byte, err error)

func (*Subscriptions) MarshalTo added in v0.5.0

func (m *Subscriptions) MarshalTo(dAtA []byte) (int, error)

func (*Subscriptions) MarshalToSizedBuffer added in v0.5.0

func (m *Subscriptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Subscriptions) ProtoMessage added in v0.5.0

func (*Subscriptions) ProtoMessage()

func (*Subscriptions) Reset added in v0.5.0

func (m *Subscriptions) Reset()

func (*Subscriptions) Size added in v0.5.0

func (m *Subscriptions) Size() (n int)

func (*Subscriptions) String added in v0.5.0

func (this *Subscriptions) String() string

func (*Subscriptions) Unmarshal added in v0.5.0

func (m *Subscriptions) Unmarshal(dAtA []byte) error

func (*Subscriptions) XXX_DiscardUnknown added in v0.5.0

func (m *Subscriptions) XXX_DiscardUnknown()

func (*Subscriptions) XXX_Marshal added in v0.5.0

func (m *Subscriptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Subscriptions) XXX_Merge added in v0.5.0

func (m *Subscriptions) XXX_Merge(src proto.Message)

func (*Subscriptions) XXX_Size added in v0.5.0

func (m *Subscriptions) XXX_Size() int

func (*Subscriptions) XXX_Unmarshal added in v0.5.0

func (m *Subscriptions) XXX_Unmarshal(b []byte) error

type Verification added in v0.3.0

type Verification struct {
	// AnalysisTemplates is a list of AnalysisTemplates from which AnalysisRuns
	// should be created to verify a Stage's current Freight is fit to be promoted
	// downstream.
	AnalysisTemplates []AnalysisTemplateReference `json:"analysisTemplates,omitempty" protobuf:"bytes,1,rep,name=analysisTemplates"`
	// AnalysisRunMetadata contains optional metadata that should be applied to
	// all AnalysisRuns.
	AnalysisRunMetadata *AnalysisRunMetadata `json:"analysisRunMetadata,omitempty" protobuf:"bytes,2,opt,name=analysisRunMetadata"`
	// Args lists arguments that should be added to all AnalysisRuns.
	Args []AnalysisRunArgument `json:"args,omitempty" protobuf:"bytes,3,rep,name=args"`
}

Verification describes how to verify that a Promotion has been successful using Argo Rollouts AnalysisTemplates.

func (*Verification) DeepCopy added in v0.3.0

func (in *Verification) DeepCopy() *Verification

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

func (*Verification) DeepCopyInto added in v0.3.0

func (in *Verification) DeepCopyInto(out *Verification)

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

func (*Verification) Descriptor added in v0.5.0

func (*Verification) Descriptor() ([]byte, []int)

func (*Verification) Marshal added in v0.5.0

func (m *Verification) Marshal() (dAtA []byte, err error)

func (*Verification) MarshalTo added in v0.5.0

func (m *Verification) MarshalTo(dAtA []byte) (int, error)

func (*Verification) MarshalToSizedBuffer added in v0.5.0

func (m *Verification) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Verification) ProtoMessage added in v0.5.0

func (*Verification) ProtoMessage()

func (*Verification) Reset added in v0.5.0

func (m *Verification) Reset()

func (*Verification) Size added in v0.5.0

func (m *Verification) Size() (n int)

func (*Verification) String added in v0.5.0

func (this *Verification) String() string

func (*Verification) Unmarshal added in v0.5.0

func (m *Verification) Unmarshal(dAtA []byte) error

func (*Verification) XXX_DiscardUnknown added in v0.5.0

func (m *Verification) XXX_DiscardUnknown()

func (*Verification) XXX_Marshal added in v0.5.0

func (m *Verification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Verification) XXX_Merge added in v0.5.0

func (m *Verification) XXX_Merge(src proto.Message)

func (*Verification) XXX_Size added in v0.5.0

func (m *Verification) XXX_Size() int

func (*Verification) XXX_Unmarshal added in v0.5.0

func (m *Verification) XXX_Unmarshal(b []byte) error

type VerificationInfo added in v0.3.0

type VerificationInfo struct {
	// ID is the identifier of the Verification process.
	ID string `json:"id,omitempty" protobuf:"bytes,4,opt,name=id"`
	// Actor is the name of the entity that initiated or aborted the
	// Verification process.
	Actor string `json:"actor,omitempty" protobuf:"bytes,7,opt,name=actor"`
	// StartTime is the time at which the Verification process was started.
	StartTime *metav1.Time `json:"startTime,omitempty" protobuf:"bytes,5,opt,name=startTime"`
	// Phase describes the current phase of the Verification process. Generally,
	// this will be a reflection of the underlying AnalysisRun's phase, however,
	// there are exceptions to this, such as in the case where an AnalysisRun
	// cannot be launched successfully.
	Phase VerificationPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase"`
	// Message may contain additional information about why the verification
	// process is in its current phase.
	Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"`
	// AnalysisRun is a reference to the Argo Rollouts AnalysisRun that implements
	// the Verification process.
	AnalysisRun *AnalysisRunReference `json:"analysisRun,omitempty" protobuf:"bytes,3,opt,name=analysisRun"`
	// FinishTime is the time at which the Verification process finished.
	FinishTime *metav1.Time `json:"finishTime,omitempty" protobuf:"bytes,6,opt,name=finishTime"`
}

VerificationInfo contains the details of an instance of a Verification process.

func (*VerificationInfo) DeepCopy added in v0.3.0

func (in *VerificationInfo) DeepCopy() *VerificationInfo

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

func (*VerificationInfo) DeepCopyInto added in v0.3.0

func (in *VerificationInfo) DeepCopyInto(out *VerificationInfo)

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

func (*VerificationInfo) Descriptor added in v0.5.0

func (*VerificationInfo) Descriptor() ([]byte, []int)

func (*VerificationInfo) HasAnalysisRun added in v0.6.0

func (v *VerificationInfo) HasAnalysisRun() bool

HasAnalysisRun returns a bool indicating whether the VerificationInfo has an associated AnalysisRun.

func (*VerificationInfo) Marshal added in v0.5.0

func (m *VerificationInfo) Marshal() (dAtA []byte, err error)

func (*VerificationInfo) MarshalTo added in v0.5.0

func (m *VerificationInfo) MarshalTo(dAtA []byte) (int, error)

func (*VerificationInfo) MarshalToSizedBuffer added in v0.5.0

func (m *VerificationInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VerificationInfo) ProtoMessage added in v0.5.0

func (*VerificationInfo) ProtoMessage()

func (*VerificationInfo) Reset added in v0.5.0

func (m *VerificationInfo) Reset()

func (*VerificationInfo) Size added in v0.5.0

func (m *VerificationInfo) Size() (n int)

func (*VerificationInfo) String added in v0.5.0

func (this *VerificationInfo) String() string

func (*VerificationInfo) Unmarshal added in v0.5.0

func (m *VerificationInfo) Unmarshal(dAtA []byte) error

func (*VerificationInfo) XXX_DiscardUnknown added in v0.5.0

func (m *VerificationInfo) XXX_DiscardUnknown()

func (*VerificationInfo) XXX_Marshal added in v0.5.0

func (m *VerificationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerificationInfo) XXX_Merge added in v0.5.0

func (m *VerificationInfo) XXX_Merge(src proto.Message)

func (*VerificationInfo) XXX_Size added in v0.5.0

func (m *VerificationInfo) XXX_Size() int

func (*VerificationInfo) XXX_Unmarshal added in v0.5.0

func (m *VerificationInfo) XXX_Unmarshal(b []byte) error

type VerificationInfoStack added in v0.5.0

type VerificationInfoStack []VerificationInfo

func (*VerificationInfoStack) Current added in v0.6.0

Current returns the VerificationInfo at the top of the stack.

func (VerificationInfoStack) DeepCopy added in v0.5.0

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

func (VerificationInfoStack) DeepCopyInto added in v0.5.0

func (in VerificationInfoStack) DeepCopyInto(out *VerificationInfoStack)

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

func (*VerificationInfoStack) UpdateOrPush added in v0.5.0

func (v *VerificationInfoStack) UpdateOrPush(info ...VerificationInfo)

UpdateOrPush updates the VerificationInfo with the same ID as the provided VerificationInfo or appends the provided VerificationInfo to the stack if no such VerificationInfo is found.

The order of existing items in the stack is preserved, and new items without a matching ID are appended to the top of the stack. If the stack grows beyond 10 items, the bottom items are removed.

type VerificationPhase added in v0.4.0

type VerificationPhase string
const (
	// VerificationPhasePending denotes a verification process that has not yet
	// started.
	VerificationPhasePending VerificationPhase = "Pending"
	// VerificationPhaseRunning denotes a verification that is currently running.
	VerificationPhaseRunning VerificationPhase = "Running"
	// VerificationPhaseSuccessful denotes a verification process that has
	// completed successfully.
	VerificationPhaseSuccessful VerificationPhase = "Successful"
	// VerificationPhaseFailed denotes a verification process that has completed
	// with a failure.
	VerificationPhaseFailed VerificationPhase = "Failed"
	// VerificationPhaseError denotes a verification process that has completed
	// with an error.
	VerificationPhaseError VerificationPhase = "Error"
	// VerificationPhaseAborted denotes a verification process that has been
	// aborted.
	VerificationPhaseAborted VerificationPhase = "Aborted"
	// VerificationPhaseInconclusive denotes a verification process that has
	// completed with an inconclusive result.
	VerificationPhaseInconclusive VerificationPhase = "Inconclusive"
)

func (*VerificationPhase) IsTerminal added in v0.4.0

func (v *VerificationPhase) IsTerminal() bool

IsTerminal returns true if the VerificationPhase is a terminal one.

type VerificationRequest added in v0.6.0

type VerificationRequest struct {
	// ID is the identifier of the VerificationInfo for which the request is
	// being made.
	ID string `json:"id,omitempty"`
	// Actor is the user who initiated the request.
	Actor string `json:"actor,omitempty"`
	// ControlPlane is a flag to indicate if the request has been initiated by
	// a control plane.
	ControlPlane bool `json:"controlPlane,omitempty"`
}

VerificationRequest is a request payload with an optional actor field which can be used to annotate a Stage using the AnnotationKeyReverify or AnnotationKeyAbort annotations.

The ID field is used to specify the VerificationInfo to be re-verified or aborted. If the ID is empty, the request is considered invalid. The Actor field is optional and can be used to track the user who initiated the re-verification or abort request. The ControlPlane field is optional and indicates if the request was initiated by a control plane.

+protobuf=false +k8s:deepcopy-gen=false +k8s:openapi-gen=false

func AbortAnnotationValue added in v0.6.0

func AbortAnnotationValue(annotations map[string]string) (*VerificationRequest, bool)

AbortAnnotationValue returns the value of the AnnotationKeyAbort annotation which can be used to abort the verification of a Freight, and a boolean indicating whether the annotation was present.

If the value of the annotation is a valid JSON object, it is unmarshalled into a VerificationRequest struct. Otherwise, the value is treated as the ID of the verification to be aborted and set as the ID field of the returned VerificationRequest.

func ReverifyAnnotationValue added in v0.6.0

func ReverifyAnnotationValue(annotations map[string]string) (*VerificationRequest, bool)

ReverifyAnnotationValue returns the value of the AnnotationKeyReverify annotation, which can be used to determine whether the verification of a Freight should be rerun, and a boolean indicating whether the annotation was present.

If the value of the annotation is a valid JSON object, it is unmarshalled into a VerificationRequest struct. Otherwise, the value is treated as the ID of the verification to be reverified and set as the ID field of the returned VerificationRequest.

func (*VerificationRequest) Equals added in v0.6.0

func (r *VerificationRequest) Equals(other *VerificationRequest) bool

Equals returns true if the VerificationRequest is equal to the other VerificationRequest, false otherwise. Two VerificationRequests are equal if their ID, Actor, and ControlPlane fields are equal.

func (*VerificationRequest) ForID added in v0.6.0

func (r *VerificationRequest) ForID(id string) bool

ForID returns true if the VerificationRequest has the specified ID.

func (*VerificationRequest) HasID added in v0.6.0

func (r *VerificationRequest) HasID() bool

HasID returns true if the VerificationRequest has a non-empty ID.

func (*VerificationRequest) String added in v0.6.0

func (r *VerificationRequest) String() string

String returns the JSON string representation of the VerificationRequest, or an empty string if the VerificationRequest is nil or has an empty ID.

type VerifiedStage added in v0.3.0

type VerifiedStage struct{}

VerifiedStage describes a Stage in which Freight has been verified.

func (*VerifiedStage) DeepCopy added in v0.3.0

func (in *VerifiedStage) DeepCopy() *VerifiedStage

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

func (*VerifiedStage) DeepCopyInto added in v0.3.0

func (in *VerifiedStage) DeepCopyInto(out *VerifiedStage)

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

func (*VerifiedStage) Descriptor added in v0.5.0

func (*VerifiedStage) Descriptor() ([]byte, []int)

func (*VerifiedStage) Marshal added in v0.5.0

func (m *VerifiedStage) Marshal() (dAtA []byte, err error)

func (*VerifiedStage) MarshalTo added in v0.5.0

func (m *VerifiedStage) MarshalTo(dAtA []byte) (int, error)

func (*VerifiedStage) MarshalToSizedBuffer added in v0.5.0

func (m *VerifiedStage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VerifiedStage) ProtoMessage added in v0.5.0

func (*VerifiedStage) ProtoMessage()

func (*VerifiedStage) Reset added in v0.5.0

func (m *VerifiedStage) Reset()

func (*VerifiedStage) Size added in v0.5.0

func (m *VerifiedStage) Size() (n int)

func (*VerifiedStage) String added in v0.5.0

func (this *VerifiedStage) String() string

func (*VerifiedStage) Unmarshal added in v0.5.0

func (m *VerifiedStage) Unmarshal(dAtA []byte) error

func (*VerifiedStage) XXX_DiscardUnknown added in v0.5.0

func (m *VerifiedStage) XXX_DiscardUnknown()

func (*VerifiedStage) XXX_Marshal added in v0.5.0

func (m *VerifiedStage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifiedStage) XXX_Merge added in v0.5.0

func (m *VerifiedStage) XXX_Merge(src proto.Message)

func (*VerifiedStage) XXX_Size added in v0.5.0

func (m *VerifiedStage) XXX_Size() int

func (*VerifiedStage) XXX_Unmarshal added in v0.5.0

func (m *VerifiedStage) XXX_Unmarshal(b []byte) error

type Warehouse added in v0.2.0

type Warehouse struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	// Spec describes sources of artifacts.
	//
	// +kubebuilder:validation:Required
	Spec WarehouseSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
	// Status describes the Warehouse's most recently observed state.
	Status WarehouseStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

Warehouse is a source of Freight.

func GetWarehouse added in v0.2.0

func GetWarehouse(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
) (*Warehouse, error)

GetWarehouse returns a pointer to the Warehouse resource specified by the namespacedName argument. If no such resource is found, nil is returned instead.

func RefreshWarehouse added in v0.2.0

func RefreshWarehouse(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
) (*Warehouse, error)

RefreshWarehouse forces reconciliation of a Warehouse by setting an annotation on the Warehouse, causing the controller to reconcile it. Currently, the annotation value is the timestamp of the request, but might in the future include additional metadata/context necessary for the request.

func (*Warehouse) DeepCopy added in v0.2.0

func (in *Warehouse) DeepCopy() *Warehouse

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

func (*Warehouse) DeepCopyInto added in v0.2.0

func (in *Warehouse) DeepCopyInto(out *Warehouse)

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

func (*Warehouse) DeepCopyObject added in v0.2.0

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

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

func (*Warehouse) Descriptor added in v0.5.0

func (*Warehouse) Descriptor() ([]byte, []int)

func (*Warehouse) GetStatus added in v0.2.0

func (w *Warehouse) GetStatus() *WarehouseStatus

func (*Warehouse) Marshal added in v0.5.0

func (m *Warehouse) Marshal() (dAtA []byte, err error)

func (*Warehouse) MarshalTo added in v0.5.0

func (m *Warehouse) MarshalTo(dAtA []byte) (int, error)

func (*Warehouse) MarshalToSizedBuffer added in v0.5.0

func (m *Warehouse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Warehouse) ProtoMessage added in v0.5.0

func (*Warehouse) ProtoMessage()

func (*Warehouse) Reset added in v0.5.0

func (m *Warehouse) Reset()

func (*Warehouse) Size added in v0.5.0

func (m *Warehouse) Size() (n int)

func (*Warehouse) String added in v0.5.0

func (this *Warehouse) String() string

func (*Warehouse) Unmarshal added in v0.5.0

func (m *Warehouse) Unmarshal(dAtA []byte) error

func (*Warehouse) XXX_DiscardUnknown added in v0.5.0

func (m *Warehouse) XXX_DiscardUnknown()

func (*Warehouse) XXX_Marshal added in v0.5.0

func (m *Warehouse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Warehouse) XXX_Merge added in v0.5.0

func (m *Warehouse) XXX_Merge(src proto.Message)

func (*Warehouse) XXX_Size added in v0.5.0

func (m *Warehouse) XXX_Size() int

func (*Warehouse) XXX_Unmarshal added in v0.5.0

func (m *Warehouse) XXX_Unmarshal(b []byte) error

type WarehouseList added in v0.2.0

type WarehouseList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []Warehouse `json:"items" protobuf:"bytes,2,rep,name=items"`
}

WarehouseList is a list of Warehouse resources.

func (*WarehouseList) DeepCopy added in v0.2.0

func (in *WarehouseList) DeepCopy() *WarehouseList

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

func (*WarehouseList) DeepCopyInto added in v0.2.0

func (in *WarehouseList) DeepCopyInto(out *WarehouseList)

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

func (*WarehouseList) DeepCopyObject added in v0.2.0

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

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

func (*WarehouseList) Descriptor added in v0.5.0

func (*WarehouseList) Descriptor() ([]byte, []int)

func (*WarehouseList) Marshal added in v0.5.0

func (m *WarehouseList) Marshal() (dAtA []byte, err error)

func (*WarehouseList) MarshalTo added in v0.5.0

func (m *WarehouseList) MarshalTo(dAtA []byte) (int, error)

func (*WarehouseList) MarshalToSizedBuffer added in v0.5.0

func (m *WarehouseList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WarehouseList) ProtoMessage added in v0.5.0

func (*WarehouseList) ProtoMessage()

func (*WarehouseList) Reset added in v0.5.0

func (m *WarehouseList) Reset()

func (*WarehouseList) Size added in v0.5.0

func (m *WarehouseList) Size() (n int)

func (*WarehouseList) String added in v0.5.0

func (this *WarehouseList) String() string

func (*WarehouseList) Unmarshal added in v0.5.0

func (m *WarehouseList) Unmarshal(dAtA []byte) error

func (*WarehouseList) XXX_DiscardUnknown added in v0.5.0

func (m *WarehouseList) XXX_DiscardUnknown()

func (*WarehouseList) XXX_Marshal added in v0.5.0

func (m *WarehouseList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WarehouseList) XXX_Merge added in v0.5.0

func (m *WarehouseList) XXX_Merge(src proto.Message)

func (*WarehouseList) XXX_Size added in v0.5.0

func (m *WarehouseList) XXX_Size() int

func (*WarehouseList) XXX_Unmarshal added in v0.5.0

func (m *WarehouseList) XXX_Unmarshal(b []byte) error

type WarehouseSpec added in v0.2.0

type WarehouseSpec struct {
	// Shard is the name of the shard that this Warehouse belongs to. This is an
	// optional field. If not specified, the Warehouse will belong to the default
	// shard. A defaulting webhook will sync this field with the value of the
	// kargo.akuity.io/shard label. When the shard label is not present or differs
	// from the value of this field, the defaulting webhook will set the label to
	// the value of this field. If the shard label is present and this field is
	// empty, the defaulting webhook will set the value of this field to the value
	// of the shard label.
	Shard string `json:"shard,omitempty" protobuf:"bytes,2,opt,name=shard"`
	// Interval is the reconciliation interval for this Warehouse. On each
	// reconciliation, the Warehouse will discover new artifacts and optionally
	// produce new Freight. This field is optional. When left unspecified, the
	// field is implicitly treated as if its value were "5m0s".
	//
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(s|m|h))+$"
	// +kubebuilder:default="5m0s"
	Interval metav1.Duration `json:"interval" protobuf:"bytes,4,opt,name=interval"`
	// FreightCreationPolicy describes how Freight is created by this Warehouse.
	// This field is optional. When left unspecified, the field is implicitly
	// treated as if its value were "Automatic".
	//
	// +kubebuilder:default=Automatic
	// +kubebuilder:validation:Optional
	FreightCreationPolicy FreightCreationPolicy `json:"freightCreationPolicy" protobuf:"bytes,3,opt,name=freightCreationPolicy"`
	// Subscriptions describes sources of artifacts to be included in Freight
	// produced by this Warehouse.
	//
	// +kubebuilder:validation:MinItems=1
	Subscriptions []RepoSubscription `json:"subscriptions" protobuf:"bytes,1,rep,name=subscriptions"`
}

WarehouseSpec describes sources of versioned artifacts to be included in Freight produced by this Warehouse.

func (*WarehouseSpec) DeepCopy added in v0.2.0

func (in *WarehouseSpec) DeepCopy() *WarehouseSpec

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

func (*WarehouseSpec) DeepCopyInto added in v0.2.0

func (in *WarehouseSpec) DeepCopyInto(out *WarehouseSpec)

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

func (*WarehouseSpec) Descriptor added in v0.5.0

func (*WarehouseSpec) Descriptor() ([]byte, []int)

func (*WarehouseSpec) Marshal added in v0.5.0

func (m *WarehouseSpec) Marshal() (dAtA []byte, err error)

func (*WarehouseSpec) MarshalTo added in v0.5.0

func (m *WarehouseSpec) MarshalTo(dAtA []byte) (int, error)

func (*WarehouseSpec) MarshalToSizedBuffer added in v0.5.0

func (m *WarehouseSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WarehouseSpec) ProtoMessage added in v0.5.0

func (*WarehouseSpec) ProtoMessage()

func (*WarehouseSpec) Reset added in v0.5.0

func (m *WarehouseSpec) Reset()

func (*WarehouseSpec) Size added in v0.5.0

func (m *WarehouseSpec) Size() (n int)

func (*WarehouseSpec) String added in v0.5.0

func (this *WarehouseSpec) String() string

func (*WarehouseSpec) Unmarshal added in v0.5.0

func (m *WarehouseSpec) Unmarshal(dAtA []byte) error

func (*WarehouseSpec) XXX_DiscardUnknown added in v0.5.0

func (m *WarehouseSpec) XXX_DiscardUnknown()

func (*WarehouseSpec) XXX_Marshal added in v0.5.0

func (m *WarehouseSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WarehouseSpec) XXX_Merge added in v0.5.0

func (m *WarehouseSpec) XXX_Merge(src proto.Message)

func (*WarehouseSpec) XXX_Size added in v0.5.0

func (m *WarehouseSpec) XXX_Size() int

func (*WarehouseSpec) XXX_Unmarshal added in v0.5.0

func (m *WarehouseSpec) XXX_Unmarshal(b []byte) error

type WarehouseStatus added in v0.2.0

type WarehouseStatus struct {
	// LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh
	// annotation that was handled by the controller. This field can be used to
	// determine whether the request to refresh the resource has been handled.
	// +optional
	LastHandledRefresh string `json:"lastHandledRefresh,omitempty" protobuf:"bytes,6,opt,name=lastHandledRefresh"`
	// Message describes any errors that are preventing the Warehouse controller
	// from polling repositories to discover new Freight.
	Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"`
	// ObservedGeneration represents the .metadata.generation that this Warehouse
	// was reconciled against.
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,4,opt,name=observedGeneration"`
	// LastFreightID is a reference to the system-assigned identifier (name) of
	// the most recent Freight produced by the Warehouse.
	LastFreightID string `json:"lastFreightID,omitempty" protobuf:"bytes,8,opt,name=lastFreightID"`
	// DiscoveredArtifacts holds the artifacts discovered by the Warehouse.
	DiscoveredArtifacts *DiscoveredArtifacts `json:"discoveredArtifacts,omitempty" protobuf:"bytes,7,opt,name=discoveredArtifacts"`
}

WarehouseStatus describes a Warehouse's most recently observed state.

func (*WarehouseStatus) DeepCopy added in v0.2.0

func (in *WarehouseStatus) DeepCopy() *WarehouseStatus

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

func (*WarehouseStatus) DeepCopyInto added in v0.2.0

func (in *WarehouseStatus) DeepCopyInto(out *WarehouseStatus)

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

func (*WarehouseStatus) Descriptor added in v0.5.0

func (*WarehouseStatus) Descriptor() ([]byte, []int)

func (*WarehouseStatus) Marshal added in v0.5.0

func (m *WarehouseStatus) Marshal() (dAtA []byte, err error)

func (*WarehouseStatus) MarshalTo added in v0.5.0

func (m *WarehouseStatus) MarshalTo(dAtA []byte) (int, error)

func (*WarehouseStatus) MarshalToSizedBuffer added in v0.5.0

func (m *WarehouseStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WarehouseStatus) ProtoMessage added in v0.5.0

func (*WarehouseStatus) ProtoMessage()

func (*WarehouseStatus) Reset added in v0.5.0

func (m *WarehouseStatus) Reset()

func (*WarehouseStatus) Size added in v0.5.0

func (m *WarehouseStatus) Size() (n int)

func (*WarehouseStatus) String added in v0.5.0

func (this *WarehouseStatus) String() string

func (*WarehouseStatus) Unmarshal added in v0.5.0

func (m *WarehouseStatus) Unmarshal(dAtA []byte) error

func (*WarehouseStatus) XXX_DiscardUnknown added in v0.5.0

func (m *WarehouseStatus) XXX_DiscardUnknown()

func (*WarehouseStatus) XXX_Marshal added in v0.5.0

func (m *WarehouseStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WarehouseStatus) XXX_Merge added in v0.5.0

func (m *WarehouseStatus) XXX_Merge(src proto.Message)

func (*WarehouseStatus) XXX_Size added in v0.5.0

func (m *WarehouseStatus) XXX_Size() int

func (*WarehouseStatus) XXX_Unmarshal added in v0.5.0

func (m *WarehouseStatus) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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