Skip to content

Commit 474658a

Browse files
committed
api: remove obsolete constants
Remove the constants which are no longer in use from the API. Signed-off-by: Hidde Beydals <[email protected]>
1 parent ceb61a3 commit 474658a

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

api/v1beta2/condition_types.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ package v1beta2
1919
const SourceFinalizer = "finalizers.fluxcd.io"
2020

2121
const (
22-
// ArtifactUnavailableCondition indicates there is no Artifact available for the Source.
23-
// This is a "negative polarity" or "abnormal-true" type, and is only present on the resource if it is True.
24-
ArtifactUnavailableCondition string = "ArtifactUnavailable"
25-
2622
// ArtifactOutdatedCondition indicates the current Artifact of the Source is outdated.
2723
// This is a "negative polarity" or "abnormal-true" type, and is only present on the resource if it is True.
2824
ArtifactOutdatedCondition string = "ArtifactOutdated"
2925

26+
// SourceVerifiedCondition indicates the integrity of the Source has been verified. If True, the integrity check
27+
// succeeded. If False, it failed. The Condition is only present on the resource if the integrity has been verified.
28+
SourceVerifiedCondition string = "SourceVerified"
29+
3030
// FetchFailedCondition indicates a transient or persistent fetch failure of an upstream Source.
3131
// If True, observations on the upstream Source revision may be impossible, and the Artifact available for the
3232
// Source may be outdated.
@@ -48,8 +48,4 @@ const (
4848
// AuthenticationFailedReason represents the fact that a given secret does not
4949
// have the required fields or the provided credentials do not match.
5050
AuthenticationFailedReason string = "AuthenticationFailed"
51-
52-
// VerificationFailedReason represents the fact that the cryptographic
53-
// provenance verification for the source failed.
54-
VerificationFailedReason string = "VerificationFailed"
5551
)

api/v1beta2/gitrepository_types.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ const (
3636
)
3737

3838
const (
39-
// SourceVerifiedCondition indicates the integrity of the Source has been verified. If True, the integrity check
40-
// succeeded. If False, it failed. The Condition is only present on the resource if the integrity has been verified.
41-
SourceVerifiedCondition string = "SourceVerified"
42-
4339
// IncludeUnavailableCondition indicates one of the includes is not available. For example, because it does not
4440
// exist, or does not have an Artifact.
4541
// This is a "negative polarity" or "abnormal-true" type, and is only present on the resource if it is True.

0 commit comments

Comments
 (0)