v1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 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"

	// AnnotationKeyAuthorizedStage is an annotation key that can be set on a
	// resource to indicate that a Stage is authorized to manage it. The value
	// of the annotation should be in the format of "<project>:<stage>".
	AnnotationKeyAuthorizedStage = "kargo.akuity.io/authorized-stage"

	// AnnotationValueTrue is a value that can be set on an annotation to
	// indicate that it applies.
	AnnotationValueTrue = "true"
)
View Source
const (
	// ConditionTypeReady denotes that the resource is ready, i.e. it is
	// fully operational.
	//
	// The exact meaning of "ready" is specific to the resource type. For
	// example, a Warehouse resource may consider itself ready if it can
	// successfully connect to its upstream sources, has discovered
	// artifacts, and is not currently in the process of reconciling.
	//
	// This is an "oscillating", and "normal-true" or "positive polarity"
	// condition, meaning that the presence of the condition with a status
	// of "True" indicates that the resource is ready, and the status of
	// the condition may change over time as the resource transitions between
	// ready and not ready states.
	ConditionTypeReady = "Ready"

	// ConditionTypeReconciling denotes that the resource is currently being
	// reconciled.
	//
	// This condition is used to indicate that the controller is actively
	// working on the resource, and further changes to the resource can be
	// expected. The condition is removed when the controller has finished
	// reconciling the resource and no further changes are expected. Which
	// MAY take multiple reconciliation attempts.
	//
	// This is a "normal-false" or "negative polarity" condition, meaning
	// that the presence of the condition with a status of "True" indicates
	// that the resource is being reconciled, and the absence of the condition
	// or a status of "False" indicates that the resource is not being
	// reconciled.
	ConditionTypeReconciling = "Reconciling"

	// ConditionTypeStalled denotes that the reconciliation of the resource
	// has stalled.
	//
	// This condition is used to indicate that the controller has stopped
	// making progress on the resource, and further changes to the resource
	// are not expected until the reason for the stall is resolved, which
	// MAY require manual intervention. The condition is removed when the
	// controller has resumed making progress on the resource.
	//
	// This is a "normal-false" or "negative polarity" condition, meaning
	// that the presence of the condition with a status of "True" indicates
	// that the resource has stalled, and the absence of the condition or
	// a status of "False" indicates that the resource is operating as
	// expected.
	ConditionTypeStalled = "Stalled"

	// ConditionTypeHealthy denotes that the resource is healthy.
	//
	// The meaning of "healthy" is specific to the resource type. For example,
	// a Warehouse resource may consider itself healthy if it can successfully
	// connect to its upstream sources, while a Stage resource may consider
	// itself healthy if the underlying applications are running as expected.
	//
	// This is a "normal-true" or "positive polarity" condition, meaning that
	// the presence of the condition with a status of "True" indicates that
	// the resource is operating as expected.
	ConditionTypeHealthy = "Healthy"

	// ConditionTypePromoting denotes that Freight is currently being promoted
	// to a Stage.
	//
	// This is a "normal-false" or "negative polarity" condition, meaning
	// that the presence of the condition with a status of "True" indicates
	// that the Stage is being promoted, and the absence of the condition
	// or a status of "False" indicates that the resource is not being
	// promoted.
	ConditionTypePromoting = "Promoting"

	// ConditionTypeVerified denotes that the current Freight of a Stage has
	// been verified.
	//
	// This is a "normal-true" or "positive polarity" condition, meaning that
	// the presence of the condition with a status of "True" indicates that
	// the Freight has been verified, and the absence of the condition or a
	// status of "False" indicates that the Freight has not been verified.
	ConditionTypeVerified = "Verified"
)
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"
	AnnotationKeyEventApplications           = "event.kargo.akuity.io/applications"
)
View Source
const (
	EventReasonPromotionCreated                = "PromotionCreated"
	EventReasonPromotionSucceeded              = "PromotionSucceeded"
	EventReasonPromotionFailed                 = "PromotionFailed"
	EventReasonPromotionErrored                = "PromotionErrored"
	EventReasonPromotionAborted                = "PromotionAborted"
	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"

	// AnalysisRunTemplate labels
	AnalysisRunTemplateLabelKey         = "kargo.akuity.io/analysis-run-template"
	AnalysisRunTemplateLabelValueConfig = "config"

	LabelTrueValue = "true"

	FinalizerName = "kargo.akuity.io/finalizer"
)

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 AbortPromotion added in v1.0.0

func AbortPromotion(
	ctx context.Context,
	c client.Client,
	namespacedName types.NamespacedName,
	action AbortAction,
) error

AbortPromotion forces aborting the Promotion by setting an annotation on the object, causing the controller to abort the Promotion. The annotation value is the action to take on the Promotion to abort it.

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 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(stage *Stage, freight *Freight) bool

IsFreightAvailable answers whether the specified Freight is available to the specified Stage.

func NewFreightApprovedEventAnnotations added in v0.6.0

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

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 AbortAction added in v1.0.0

type AbortAction string

AbortAction is an action to take on a Promotion to abort it.

const (
	// AbortActionTerminate is an action to terminate the Promotion.
	// I.e. the Promotion will be marked as failed and the controller
	// will stop processing it.
	AbortActionTerminate AbortAction = "terminate"
)

type AbortPromotionRequest added in v1.0.0

type AbortPromotionRequest struct {
	// Action is the action to take on the Promotion to abort it.
	Action AbortAction `json:"action,omitempty" protobuf:"bytes,1,opt,name=action"`
	// Actor is the user who initiated the request.
	Actor string `json:"actor,omitempty" protobuf:"bytes,2,opt,name=actor"`
	// ControlPlane is a flag to indicate if the request has been initiated by
	// a control plane.
	ControlPlane bool `json:"controlPlane,omitempty" protobuf:"varint,3,opt,name=controlPlane"`
}

AbortPromotionRequest is a request payload with an optional actor field which can be used to annotate a Promotion using the AnnotationKeyAbort annotation.

+protobuf=false +k8s:deepcopy-gen=false +k8s:openapi-gen=false

func AbortPromotionAnnotationValue added in v1.0.0

func AbortPromotionAnnotationValue(annotations map[string]string) (*AbortPromotionRequest, bool)

AbortPromotionAnnotationValue returns the value of the AnnotationKeyAbort annotation which can be used to abort the promotion 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 an AbortPromotionRequest struct. Otherwise, the value is treated as the action to be taken on the Promotion and set as the Action field of the returned AbortPromotionRequest.

func (*AbortPromotionRequest) Equals added in v1.0.0

Equals returns true if the AbortPromotionRequest is equal to the other AbortPromotionRequest, false otherwise. Two VerificationRequests are equal if their Action, Actor, and ControlPlane fields are equal.

func (*AbortPromotionRequest) String added in v1.0.0

func (r *AbortPromotionRequest) String() string

String returns the JSON string representation of the AbortPromotionRequest, or an empty string if the AbortPromotionRequest is nil or has an empty Action.

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 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 {
	// DiscoveredAt is the time at which the Warehouse discovered the artifacts.
	//
	// +optional
	DiscoveredAt metav1.Time `json:"discoveredAt" protobuf:"bytes,4,opt,name=discoveredAt"`
	// 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"`
	// 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) HasNonTerminalVerification added in v1.1.0

func (f *FreightCollection) HasNonTerminalVerification() bool

HasNonTerminalVerification returns true if the FreightCollection has any verification which is not in a terminal state, indicating verification is still in progress.

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

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 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"`
	// 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 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".
	// Accepted values: Lexical, NewestFromBranch, NewestTag, SemVer
	//
	// +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"`
	// StrictSemvers specifies whether only "strict" semver tags should be
	// considered. A "strict" semver tag is one containing ALL of major, minor,
	// and patch version components. This is enabled by default, but only has any
	// effect when the CommitSelectionStrategy is SemVer. This should be disabled
	// cautiously, as it creates the potential for any tag containing numeric
	// characters only to be mistaken for a semver string containing the major
	// version number only.
	//
	// +kubebuilder:default=true
	StrictSemvers bool `json:"strictSemvers" protobuf:"varint,11,opt,name=strictSemvers"`
	// 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"`
	// Config is the opaque configuration of all health checks performed on this
	// Stage.
	Config *apiextensionsv1.JSON `json:"config,omitempty" protobuf:"bytes,4,opt,name=config"`
	// Output is the opaque output of all health checks performed on this Stage.
	Output *apiextensionsv1.JSON `json:"output,omitempty" protobuf:"bytes,5,opt,name=output"`
}

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

type HealthCheckStep struct {
	// Uses identifies a runner that can execute this step.
	//
	// +kubebuilder:validation:MinLength=1
	Uses string `json:"uses" protobuf:"bytes,1,opt,name=uses"`

	// Config is the configuration for the directive.
	Config *apiextensionsv1.JSON `json:"config,omitempty" protobuf:"bytes,2,opt,name=config"`
}

HealthCheckStep describes a health check directive which can be executed by a Stage to verify the health of a Promotion result.

func (*HealthCheckStep) DeepCopy added in v0.9.0

func (in *HealthCheckStep) DeepCopy() *HealthCheckStep

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

func (*HealthCheckStep) DeepCopyInto added in v0.9.0

func (in *HealthCheckStep) DeepCopyInto(out *HealthCheckStep)

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

func (*HealthCheckStep) Descriptor added in v0.9.0

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

func (*HealthCheckStep) GetConfig added in v0.9.0

func (s *HealthCheckStep) GetConfig() map[string]any

GetConfig returns the Config field as unmarshalled YAML.

func (*HealthCheckStep) Marshal added in v0.9.0

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

func (*HealthCheckStep) MarshalTo added in v0.9.0

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

func (*HealthCheckStep) MarshalToSizedBuffer added in v0.9.0

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

func (*HealthCheckStep) ProtoMessage added in v0.9.0

func (*HealthCheckStep) ProtoMessage()

func (*HealthCheckStep) Reset added in v0.9.0

func (m *HealthCheckStep) Reset()

func (*HealthCheckStep) Size added in v0.9.0

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

func (*HealthCheckStep) String added in v0.9.0

func (this *HealthCheckStep) String() string

func (*HealthCheckStep) Unmarshal added in v0.9.0

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

func (*HealthCheckStep) XXX_DiscardUnknown added in v0.9.0

func (m *HealthCheckStep) XXX_DiscardUnknown()

func (*HealthCheckStep) XXX_Marshal added in v0.9.0

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

func (*HealthCheckStep) XXX_Merge added in v0.9.0

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

func (*HealthCheckStep) XXX_Size added in v0.9.0

func (m *HealthCheckStep) XXX_Size() int

func (*HealthCheckStep) XXX_Unmarshal added in v0.9.0

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

type HealthState

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

func (HealthState) Merge

func (h HealthState) Merge(other HealthState) HealthState

Merge returns the more severe of two HealthStates.

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".
	// Accepted values: Digest, Lexical, NewestBuild, SemVer
	//
	// +kubebuilder:default=SemVer
	ImageSelectionStrategy ImageSelectionStrategy `json:"imageSelectionStrategy,omitempty" protobuf:"bytes,3,opt,name=imageSelectionStrategy"`
	// StrictSemvers specifies whether only "strict" semver tags should be
	// considered. A "strict" semver tag is one containing ALL of major, minor,
	// and patch version components. This is enabled by default, but only has any
	// effect when the ImageSelectionStrategy is SemVer. This should be disabled
	// cautiously, as it is not uncommon to tag container images with short Git
	// commit hashes, which have the potential to contain numeric characters only
	// and could be mistaken for a semver string containing the major version
	// number only.
	//
	// +kubebuilder:default=true
	StrictSemvers bool `json:"strictSemvers" protobuf:"varint,10,opt,name=strictSemvers"`
	// 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 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 {
	// Conditions contains the last observations of the Project's current
	// state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchMergeKey:"type" patchStrategy:"merge" protobuf:"bytes,3,rep,name=conditions"`
	// Phase describes the Project's current phase.
	//
	// Deprecated: Use the Conditions field instead.
	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.
	//
	// Deprecated: Use the Conditions field instead.
	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) GetConditions added in v1.0.0

func (w *ProjectStatus) GetConditions() []metav1.Condition

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) SetConditions added in v1.0.0

func (w *ProjectStatus) SetConditions(conditions []metav1.Condition)

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 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"
	// PromotionPhaseAborted denotes a Promotion that has been aborted by a
	// user.
	PromotionPhaseAborted PromotionPhase = "Aborted"
)

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

PromotionReference contains the relevant information about a Promotion as observed by a Stage.

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

func (r *PromotionReference) GetHealthChecks() []HealthCheckStep

GetHealthChecks returns the list of health checks for the PromotionReference.

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"`
	// Vars is a list of variables that can be referenced by expressions in
	// promotion steps.
	Vars []PromotionVariable `json:"vars,omitempty" protobuf:"bytes,4,rep,name=vars"`
	// Steps specifies the directives to be executed as part of this Promotion.
	// The order in which the directives are executed is the order in which they
	// are listed in this field.
	Steps []PromotionStep `json:"steps,omitempty" protobuf:"bytes,3,rep,name=steps"`
}

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"`
	// 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"`
	// HealthChecks contains the health check directives to be executed after
	// the Promotion has completed.
	HealthChecks []HealthCheckStep `json:"healthChecks,omitempty" protobuf:"bytes,8,rep,name=healthChecks"`
	// FinishedAt is the time when the promotion was completed.
	FinishedAt *metav1.Time `json:"finishedAt,omitempty" protobuf:"bytes,6,opt,name=finishedAt"`
	// CurrentStep is the index of the current promotion step being executed. This
	// permits steps that have already run successfully to be skipped on
	// subsequent reconciliations attempts.
	CurrentStep int64 `json:"currentStep,omitempty" protobuf:"varint,9,opt,name=currentStep"`
	// StepExecutionMetadata tracks metadata pertaining to the execution
	// of individual promotion steps.
	StepExecutionMetadata StepExecutionMetadataList `json:"stepExecutionMetadata,omitempty" protobuf:"bytes,11,rep,name=stepExecutionMetadata"`
	// State stores the state of the promotion process between reconciliation
	// attempts.
	State *apiextensionsv1.JSON `json:"state,omitempty" protobuf:"bytes,10,opt,name=state"`
}

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

func (s *PromotionStatus) GetState() map[string]any

GetState returns the State field as unmarshalled YAML.

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 (s *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 PromotionStep added in v0.9.0

type PromotionStep struct {
	// Uses identifies a runner that can execute this step.
	//
	// +kubebuilder:validation:MinLength=1
	Uses string `json:"uses" protobuf:"bytes,1,opt,name=uses"`
	// As is the alias this step can be referred to as.
	As string `json:"as,omitempty" protobuf:"bytes,2,opt,name=as"`
	// Retry is the retry policy for this step.
	Retry *PromotionStepRetry `json:"retry,omitempty" protobuf:"bytes,4,opt,name=retry"`
	// Config is opaque configuration for the PromotionStep that is understood
	// only by each PromotionStep's implementation. It is legal to utilize
	// expressions in defining values at any level of this block.
	// See https://docs.kargo.io/references/expression-language for details.
	Config *apiextensionsv1.JSON `json:"config,omitempty" protobuf:"bytes,3,opt,name=config"`
}

PromotionStep describes a directive to be executed as part of a Promotion.

func (*PromotionStep) DeepCopy added in v0.9.0

func (in *PromotionStep) DeepCopy() *PromotionStep

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

func (*PromotionStep) DeepCopyInto added in v0.9.0

func (in *PromotionStep) DeepCopyInto(out *PromotionStep)

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

func (*PromotionStep) Descriptor added in v0.9.0

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

func (*PromotionStep) Marshal added in v0.9.0

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

func (*PromotionStep) MarshalTo added in v0.9.0

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

func (*PromotionStep) MarshalToSizedBuffer added in v0.9.0

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

func (*PromotionStep) ProtoMessage added in v0.9.0

func (*PromotionStep) ProtoMessage()

func (*PromotionStep) Reset added in v0.9.0

func (m *PromotionStep) Reset()

func (*PromotionStep) Size added in v0.9.0

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

func (*PromotionStep) String added in v0.9.0

func (this *PromotionStep) String() string

func (*PromotionStep) Unmarshal added in v0.9.0

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

func (*PromotionStep) XXX_DiscardUnknown added in v0.9.0

func (m *PromotionStep) XXX_DiscardUnknown()

func (*PromotionStep) XXX_Marshal added in v0.9.0

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

func (*PromotionStep) XXX_Merge added in v0.9.0

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

func (*PromotionStep) XXX_Size added in v0.9.0

func (m *PromotionStep) XXX_Size() int

func (*PromotionStep) XXX_Unmarshal added in v0.9.0

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

type PromotionStepRetry added in v1.1.0

type PromotionStepRetry struct {
	// Timeout is the soft maximum interval in which a step that returns a Running
	// status (which typically indicates it's waiting for something to happen)
	// may be retried.
	//
	// The maximum is a soft one because the check for whether the interval has
	// elapsed occurs AFTER the step has run. This effectively means a step may
	// run ONCE beyond the close of the interval.
	//
	// If this field is set to nil, the effective default will be a step-specific
	// one. If no step-specific default exists (i.e. is also nil), the effective
	// default will be the system-wide default of 0.
	//
	// A value of 0 will cause the step to be retried indefinitely unless the
	// ErrorThreshold is reached.
	Timeout *metav1.Duration `json:"timeout,omitempty" protobuf:"bytes,1,opt,name=timeout"`
	// ErrorThreshold is the number of consecutive times the step must fail (for
	// any reason) before retries are abandoned and the entire Promotion is marked
	// as failed.
	//
	// If this field is set to 0, the effective default will be a step-specific
	// one. If no step-specific default exists (i.e. is also 0), the effective
	// default will be the system-wide default of 1.
	//
	// A value of 1 will cause the Promotion to be marked as failed after just
	// a single failure; i.e. no retries will be attempted.
	//
	// There is no option to specify an infinite number of retries using a value
	// such as -1.
	//
	// In a future release, Kargo is likely to become capable of distinguishing
	// between recoverable and non-recoverable step failures. At that time, it is
	// planned that unrecoverable failures will not be subject to this threshold
	// and will immediately cause the Promotion to be marked as failed without
	// further condition.
	ErrorThreshold uint32 `json:"errorThreshold,omitempty" protobuf:"varint,2,opt,name=errorThreshold"`
}

PromotionStepRetry describes the retry policy for a PromotionStep.

func (*PromotionStepRetry) DeepCopy added in v1.1.0

func (in *PromotionStepRetry) DeepCopy() *PromotionStepRetry

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

func (*PromotionStepRetry) DeepCopyInto added in v1.1.0

func (in *PromotionStepRetry) DeepCopyInto(out *PromotionStepRetry)

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

func (*PromotionStepRetry) Descriptor added in v1.1.0

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

func (*PromotionStepRetry) GetErrorThreshold added in v1.1.0

func (r *PromotionStepRetry) GetErrorThreshold(fallback uint32) uint32

GetErrorThreshold returns the ErrorThreshold field with the given fallback value.

func (*PromotionStepRetry) GetTimeout added in v1.1.0

func (r *PromotionStepRetry) GetTimeout(fallback *time.Duration) *time.Duration

GetTimeout returns the Timeout field with the given fallback value.

func (*PromotionStepRetry) Marshal added in v1.1.0

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

func (*PromotionStepRetry) MarshalTo added in v1.1.0

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

func (*PromotionStepRetry) MarshalToSizedBuffer added in v1.1.0

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

func (*PromotionStepRetry) ProtoMessage added in v1.1.0

func (*PromotionStepRetry) ProtoMessage()

func (*PromotionStepRetry) Reset added in v1.1.0

func (m *PromotionStepRetry) Reset()

func (*PromotionStepRetry) Size added in v1.1.0

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

func (*PromotionStepRetry) String added in v1.1.0

func (this *PromotionStepRetry) String() string

func (*PromotionStepRetry) Unmarshal added in v1.1.0

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

func (*PromotionStepRetry) XXX_DiscardUnknown added in v1.1.0

func (m *PromotionStepRetry) XXX_DiscardUnknown()

func (*PromotionStepRetry) XXX_Marshal added in v1.1.0

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

func (*PromotionStepRetry) XXX_Merge added in v1.1.0

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

func (*PromotionStepRetry) XXX_Size added in v1.1.0

func (m *PromotionStepRetry) XXX_Size() int

func (*PromotionStepRetry) XXX_Unmarshal added in v1.1.0

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

type PromotionTemplate added in v0.9.0

type PromotionTemplate struct {
	Spec PromotionTemplateSpec `json:"spec" protobuf:"bytes,1,opt,name=spec"`
}

PromotionTemplate defines a template for a Promotion that can be used to incorporate Freight into a Stage.

func (*PromotionTemplate) DeepCopy added in v0.9.0

func (in *PromotionTemplate) DeepCopy() *PromotionTemplate

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

func (*PromotionTemplate) DeepCopyInto added in v0.9.0

func (in *PromotionTemplate) DeepCopyInto(out *PromotionTemplate)

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

func (*PromotionTemplate) Descriptor added in v0.9.0

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

func (*PromotionTemplate) Marshal added in v0.9.0

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

func (*PromotionTemplate) MarshalTo added in v0.9.0

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

func (*PromotionTemplate) MarshalToSizedBuffer added in v0.9.0

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

func (*PromotionTemplate) ProtoMessage added in v0.9.0

func (*PromotionTemplate) ProtoMessage()

func (*PromotionTemplate) Reset added in v0.9.0

func (m *PromotionTemplate) Reset()

func (*PromotionTemplate) Size added in v0.9.0

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

func (*PromotionTemplate) String added in v0.9.0

func (this *PromotionTemplate) String() string

func (*PromotionTemplate) Unmarshal added in v0.9.0

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

func (*PromotionTemplate) XXX_DiscardUnknown added in v0.9.0

func (m *PromotionTemplate) XXX_DiscardUnknown()

func (*PromotionTemplate) XXX_Marshal added in v0.9.0

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

func (*PromotionTemplate) XXX_Merge added in v0.9.0

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

func (*PromotionTemplate) XXX_Size added in v0.9.0

func (m *PromotionTemplate) XXX_Size() int

func (*PromotionTemplate) XXX_Unmarshal added in v0.9.0

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

type PromotionTemplateSpec added in v0.9.0

type PromotionTemplateSpec struct {
	// Vars is a list of variables that can be referenced by expressions in
	// promotion steps.
	Vars []PromotionVariable `json:"vars,omitempty" protobuf:"bytes,2,rep,name=vars"`
	// Steps specifies the directives to be executed as part of a Promotion.
	// The order in which the directives are executed is the order in which they
	// are listed in this field.
	//
	// +kubebuilder:validation:MinItems=1
	Steps []PromotionStep `json:"steps,omitempty" protobuf:"bytes,1,rep,name=steps"`
}

PromotionTemplateSpec describes the (partial) specification of a Promotion for a Stage. This is a template that can be used to create a Promotion for a Stage.

func (*PromotionTemplateSpec) DeepCopy added in v0.9.0

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

func (*PromotionTemplateSpec) DeepCopyInto added in v0.9.0

func (in *PromotionTemplateSpec) DeepCopyInto(out *PromotionTemplateSpec)

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

func (*PromotionTemplateSpec) Descriptor added in v0.9.0

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

func (*PromotionTemplateSpec) Marshal added in v0.9.0

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

func (*PromotionTemplateSpec) MarshalTo added in v0.9.0

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

func (*PromotionTemplateSpec) MarshalToSizedBuffer added in v0.9.0

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

func (*PromotionTemplateSpec) ProtoMessage added in v0.9.0

func (*PromotionTemplateSpec) ProtoMessage()

func (*PromotionTemplateSpec) Reset added in v0.9.0

func (m *PromotionTemplateSpec) Reset()

func (*PromotionTemplateSpec) Size added in v0.9.0

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

func (*PromotionTemplateSpec) String added in v0.9.0

func (this *PromotionTemplateSpec) String() string

func (*PromotionTemplateSpec) Unmarshal added in v0.9.0

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

func (*PromotionTemplateSpec) XXX_DiscardUnknown added in v0.9.0

func (m *PromotionTemplateSpec) XXX_DiscardUnknown()

func (*PromotionTemplateSpec) XXX_Marshal added in v0.9.0

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

func (*PromotionTemplateSpec) XXX_Merge added in v0.9.0

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

func (*PromotionTemplateSpec) XXX_Size added in v0.9.0

func (m *PromotionTemplateSpec) XXX_Size() int

func (*PromotionTemplateSpec) XXX_Unmarshal added in v0.9.0

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

type PromotionVariable added in v1.1.0

type PromotionVariable struct {
	// Name is the name of the variable.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-zA-Z_]\w*$
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// Value is the value of the variable. It is allowed to utilize expressions
	// in the value.
	// See https://docs.kargo.io/references/expression-language for details.
	Value string `json:"value" protobuf:"bytes,2,opt,name=value"`
}

PromotionVariable describes a single variable that may be referenced by expressions in promotion steps.

func (*PromotionVariable) DeepCopy added in v1.1.0

func (in *PromotionVariable) DeepCopy() *PromotionVariable

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

func (*PromotionVariable) DeepCopyInto added in v1.1.0

func (in *PromotionVariable) DeepCopyInto(out *PromotionVariable)

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

func (*PromotionVariable) Descriptor added in v1.1.0

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

func (*PromotionVariable) Marshal added in v1.1.0

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

func (*PromotionVariable) MarshalTo added in v1.1.0

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

func (*PromotionVariable) MarshalToSizedBuffer added in v1.1.0

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

func (*PromotionVariable) ProtoMessage added in v1.1.0

func (*PromotionVariable) ProtoMessage()

func (*PromotionVariable) Reset added in v1.1.0

func (m *PromotionVariable) Reset()

func (*PromotionVariable) Size added in v1.1.0

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

func (*PromotionVariable) String added in v1.1.0

func (this *PromotionVariable) String() string

func (*PromotionVariable) Unmarshal added in v1.1.0

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

func (*PromotionVariable) XXX_DiscardUnknown added in v1.1.0

func (m *PromotionVariable) XXX_DiscardUnknown()

func (*PromotionVariable) XXX_Marshal added in v1.1.0

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

func (*PromotionVariable) XXX_Merge added in v1.1.0

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

func (*PromotionVariable) XXX_Size added in v1.1.0

func (m *PromotionVariable) XXX_Size() int

func (*PromotionVariable) XXX_Unmarshal added in v1.1.0

func (m *PromotionVariable) 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) IsControlFlow added in v0.9.0

func (s *Stage) IsControlFlow() bool

IsControlFlow returns true if the Stage is a control flow Stage. A control flow Stage is one that does not incorporate Freight into itself, but rather orchestrates the promotion of Freight from one or more upstream Stages to one or more downstream Stages.

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"
	// StagePhaseFailed denotes a Stage that is in a failed state. For example,
	// the Stage may have failed to promote or verify its Freight.
	StagePhaseFailed StagePhase = "Failed"
)

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"`
	// 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"`
	// PromotionTemplate describes how to incorporate Freight into the Stage
	// using a Promotion.
	PromotionTemplate *PromotionTemplate `json:"promotionTemplate,omitempty" protobuf:"bytes,6,opt,name=promotionTemplate"`
	// 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 {
	// Conditions contains the last observations of the Stage's current
	// state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchMergeKey:"type" patchStrategy:"merge" protobuf:"bytes,13,rep,name=conditions"`
	// 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"`
	// 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) GetConditions added in v1.1.0

func (w *StageStatus) GetConditions() []metav1.Condition

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) SetConditions added in v1.1.0

func (w *StageStatus) SetConditions(conditions []metav1.Condition)

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 StepExecutionMetadata added in v1.1.0

type StepExecutionMetadata struct {
	// Alias is the alias of the step.
	Alias string `json:"alias,omitempty" protobuf:"bytes,1,opt,name=alias"`
	// StartedAt is the time at which the first attempt to execute the step
	// began.
	StartedAt *metav1.Time `json:"startedAt,omitempty" protobuf:"bytes,2,opt,name=startedAt"`
	// FinishedAt is the time at which the final attempt to execute the step
	// completed.
	FinishedAt *metav1.Time `json:"finishedAt,omitempty" protobuf:"bytes,3,opt,name=finishedAt"`
	// ErrorCount tracks consecutive failed attempts to execute the step.
	ErrorCount uint32 `json:"errorCount,omitempty" protobuf:"varint,4,opt,name=errorCount"`
	// Status is the high-level outcome of the step.
	Status PromotionPhase `json:"status,omitempty" protobuf:"bytes,5,opt,name=status"`
	// Message is a display message about the step, including any errors.
	Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
}

StepExecutionMetadata tracks metadata pertaining to the execution of a promotion step.

func (*StepExecutionMetadata) DeepCopy added in v1.1.0

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

func (*StepExecutionMetadata) DeepCopyInto added in v1.1.0

func (in *StepExecutionMetadata) DeepCopyInto(out *StepExecutionMetadata)

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

func (*StepExecutionMetadata) Descriptor added in v1.1.0

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

func (*StepExecutionMetadata) Marshal added in v1.1.0

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

func (*StepExecutionMetadata) MarshalTo added in v1.1.0

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

func (*StepExecutionMetadata) MarshalToSizedBuffer added in v1.1.0

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

func (*StepExecutionMetadata) ProtoMessage added in v1.1.0

func (*StepExecutionMetadata) ProtoMessage()

func (*StepExecutionMetadata) Reset added in v1.1.0

func (m *StepExecutionMetadata) Reset()

func (*StepExecutionMetadata) Size added in v1.1.0

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

func (*StepExecutionMetadata) String added in v1.1.0

func (this *StepExecutionMetadata) String() string

func (*StepExecutionMetadata) Unmarshal added in v1.1.0

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

func (*StepExecutionMetadata) XXX_DiscardUnknown added in v1.1.0

func (m *StepExecutionMetadata) XXX_DiscardUnknown()

func (*StepExecutionMetadata) XXX_Marshal added in v1.1.0

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

func (*StepExecutionMetadata) XXX_Merge added in v1.1.0

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

func (*StepExecutionMetadata) XXX_Size added in v1.1.0

func (m *StepExecutionMetadata) XXX_Size() int

func (*StepExecutionMetadata) XXX_Unmarshal added in v1.1.0

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

type StepExecutionMetadataList added in v1.1.0

type StepExecutionMetadataList []StepExecutionMetadata

StepExecutionMetadataList is a list of StepExecutionMetadata.

func (StepExecutionMetadataList) DeepCopy added in v1.1.0

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

func (StepExecutionMetadataList) DeepCopyInto added in v1.1.0

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

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 AbortVerificationAnnotationValue added in v1.0.0

func AbortVerificationAnnotationValue(annotations map[string]string) (*VerificationRequest, bool)

AbortVerificationAnnotationValue 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".
	// Accepted values: Automatic, Manual
	//
	// +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 {
	// Conditions contains the last observations of the Warehouse's current
	// state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchMergeKey:"type" patchStrategy:"merge" protobuf:"bytes,9,rep,name=conditions"`
	// 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"`
	// 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) GetConditions added in v0.9.0

func (w *WarehouseStatus) GetConditions() []metav1.Condition

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

func (w *WarehouseStatus) SetConditions(conditions []metav1.Condition)

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