Move Artifact conditions to conditions
Also, introduce FetchFailedCondition for generic fetch failures. Signed-off-by: Sunny <darkowlzz@protonmail.com> Co-authored-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
378affcba8
commit
83bea36618
|
@ -18,6 +18,22 @@ package v1beta2
|
|||
|
||||
const SourceFinalizer = "finalizers.fluxcd.io"
|
||||
|
||||
const (
|
||||
// ArtifactUnavailableCondition indicates there is no Artifact available for the Source.
|
||||
// This is a "negative polarity" or "abnormal-true" type, and is only present on the resource if it is True.
|
||||
ArtifactUnavailableCondition string = "ArtifactUnavailable"
|
||||
|
||||
// ArtifactOutdatedCondition indicates the current Artifact of the Source is outdated.
|
||||
// This is a "negative polarity" or "abnormal-true" type, and is only present on the resource if it is True.
|
||||
ArtifactOutdatedCondition string = "ArtifactOutdated"
|
||||
|
||||
// FetchFailedCondition indicates a transient or persistent fetch failure of an upstream Source.
|
||||
// If True, observations on the upstream Source revision may be impossible, and the Artifact available for the
|
||||
// Source may be outdated.
|
||||
// This is a "negative polarity" or "abnormal-true" type, and is only present on the resource if it is True.
|
||||
FetchFailedCondition string = "FetchFailed"
|
||||
)
|
||||
|
||||
const (
|
||||
// URLInvalidReason represents the fact that a given source has an invalid URL.
|
||||
URLInvalidReason string = "URLInvalid"
|
||||
|
|
|
@ -38,10 +38,6 @@ const (
|
|||
)
|
||||
|
||||
const (
|
||||
// ArtifactUnavailableCondition indicates there is no Artifact available for the Source.
|
||||
// This is a "negative polarity" or "abnormal-true" type, and is only present on the resource if it is True.
|
||||
ArtifactUnavailableCondition string = "ArtifactUnavailable"
|
||||
|
||||
// CheckoutFailedCondition indicates a transient or persistent checkout failure. If True, observations on the
|
||||
// upstream Source revision are not possible, and the Artifact available for the Source may be outdated.
|
||||
// This is a "negative polarity" or "abnormal-true" type, and is only present on the resource if it is True.
|
||||
|
@ -55,10 +51,6 @@ const (
|
|||
// exist, or does not have an Artifact.
|
||||
// This is a "negative polarity" or "abnormal-true" type, and is only present on the resource if it is True.
|
||||
IncludeUnavailableCondition string = "IncludeUnavailable"
|
||||
|
||||
// ArtifactOutdatedCondition indicates the current Artifact of the Source is outdated.
|
||||
// This is a "negative polarity" or "abnormal-true" type, and is only present on the resource if it is True.
|
||||
ArtifactOutdatedCondition string = "ArtifactOutdated"
|
||||
)
|
||||
|
||||
// GitRepositorySpec defines the desired state of a Git repository.
|
||||
|
|
Loading…
Reference in New Issue