...

Source file src/github.com/fluxcd/source-controller/api/v1beta2/condition_types.go

Documentation: github.com/fluxcd/source-controller/api/v1beta2

     1  /*
     2  Copyright 2022 The Flux authors
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package v1beta2
    18  
    19  const SourceFinalizer = "finalizers.fluxcd.io"
    20  
    21  const (
    22  	// ArtifactInStorageCondition indicates the availability of the Artifact in
    23  	// the storage.
    24  	// If True, the Artifact is stored successfully.
    25  	// This Condition is only present on the resource if the Artifact is
    26  	// successfully stored.
    27  	ArtifactInStorageCondition string = "ArtifactInStorage"
    28  
    29  	// ArtifactOutdatedCondition indicates the current Artifact of the Source
    30  	// is outdated.
    31  	// This is a "negative polarity" or "abnormal-true" type, and is only
    32  	// present on the resource if it is True.
    33  	ArtifactOutdatedCondition string = "ArtifactOutdated"
    34  
    35  	// SourceVerifiedCondition indicates the integrity verification of the
    36  	// Source.
    37  	// If True, the integrity check succeeded. If False, it failed.
    38  	// This Condition is only present on the resource if the integrity check
    39  	// is enabled.
    40  	SourceVerifiedCondition string = "SourceVerified"
    41  
    42  	// FetchFailedCondition indicates a transient or persistent fetch failure
    43  	// of an upstream Source.
    44  	// If True, observations on the upstream Source revision may be impossible,
    45  	// and the Artifact available for the Source may be outdated.
    46  	// This is a "negative polarity" or "abnormal-true" type, and is only
    47  	// present on the resource if it is True.
    48  	FetchFailedCondition string = "FetchFailed"
    49  
    50  	// BuildFailedCondition indicates a transient or persistent build failure
    51  	// of a Source's Artifact.
    52  	// If True, the Source can be in an ArtifactOutdatedCondition.
    53  	// This is a "negative polarity" or "abnormal-true" type, and is only
    54  	// present on the resource if it is True.
    55  	BuildFailedCondition string = "BuildFailed"
    56  
    57  	// StorageOperationFailedCondition indicates a transient or persistent
    58  	// failure related to storage. If True, the reconciliation failed while
    59  	// performing some filesystem operation.
    60  	// This is a "negative polarity" or "abnormal-true" type, and is only
    61  	// present on the resource if it is True.
    62  	StorageOperationFailedCondition string = "StorageOperationFailed"
    63  )
    64  
    65  // Reasons are provided as utility, and not part of the declarative API.
    66  const (
    67  	// URLInvalidReason signals that a given Source has an invalid URL.
    68  	URLInvalidReason string = "URLInvalid"
    69  
    70  	// AuthenticationFailedReason signals that a Secret does not have the
    71  	// required fields, or the provided credentials do not match.
    72  	AuthenticationFailedReason string = "AuthenticationFailed"
    73  
    74  	// VerificationError signals that the Source's verification
    75  	// check failed.
    76  	VerificationError string = "VerificationError"
    77  
    78  	// DirCreationFailedReason signals a failure caused by a directory creation
    79  	// operation.
    80  	DirCreationFailedReason string = "DirectoryCreationFailed"
    81  
    82  	// StatOperationFailedReason signals a failure caused by a stat operation on
    83  	// a path.
    84  	StatOperationFailedReason string = "StatOperationFailed"
    85  
    86  	// ReadOperationFailedReason signals a failure caused by a read operation.
    87  	ReadOperationFailedReason string = "ReadOperationFailed"
    88  
    89  	// AcquireLockFailedReason signals a failure in acquiring lock.
    90  	AcquireLockFailedReason string = "AcquireLockFailed"
    91  
    92  	// InvalidPathReason signals a failure caused by an invalid path.
    93  	InvalidPathReason string = "InvalidPath"
    94  
    95  	// ArchiveOperationFailedReason signals a failure in archive operation.
    96  	ArchiveOperationFailedReason string = "ArchiveOperationFailed"
    97  
    98  	// SymlinkUpdateFailedReason signals a failure in updating a symlink.
    99  	SymlinkUpdateFailedReason string = "SymlinkUpdateFailed"
   100  
   101  	// ArtifactUpToDateReason signals that an existing Artifact is up-to-date
   102  	// with the Source.
   103  	ArtifactUpToDateReason string = "ArtifactUpToDate"
   104  
   105  	// CacheOperationFailedReason signals a failure in cache operation.
   106  	CacheOperationFailedReason string = "CacheOperationFailed"
   107  )
   108  

View as plain text