Skip to content

Commit

Permalink
CE API updates
Browse files Browse the repository at this point in the history
  - Regenerate CRD
  - Fixup import in conditionsets package

Signed-off-by: Joe Lanford <[email protected]>
  • Loading branch information
joelanford committed Nov 12, 2024
1 parent 1792d2d commit b6b087e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
name: v1
schema:
openAPIV3Schema:
description: ClusterExtension is the Schema for the clusterextensions API
Expand Down
26 changes: 15 additions & 11 deletions internal/conditionsets/conditionsets.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,27 @@ limitations under the License.

package conditionsets

import (
ocv1 "github.com/operator-framework/operator-controller/api/v1"
)

// ConditionTypes is the full set of ClusterExtension condition Types.
// ConditionReasons is the full set of ClusterExtension condition Reasons.
//
// NOTE: unit tests in clusterextension_types_test will enforce completeness.
var ConditionTypes = []string{
v1alpha1.TypeInstalled,
v1alpha1.TypeDeprecated,
v1alpha1.TypePackageDeprecated,
v1alpha1.TypeChannelDeprecated,
v1alpha1.TypeBundleDeprecated,
v1alpha1.TypeProgressing,
ocv1.TypeInstalled,
ocv1.TypeDeprecated,
ocv1.TypePackageDeprecated,
ocv1.TypeChannelDeprecated,
ocv1.TypeBundleDeprecated,
ocv1.TypeProgressing,
}

var ConditionReasons = []string{
v1alpha1.ReasonSucceeded,
v1alpha1.ReasonDeprecated,
v1alpha1.ReasonFailed,
v1alpha1.ReasonBlocked,
v1alpha1.ReasonRetrying,
ocv1.ReasonSucceeded,
ocv1.ReasonDeprecated,
ocv1.ReasonFailed,
ocv1.ReasonBlocked,
ocv1.ReasonRetrying,
}

0 comments on commit b6b087e

Please sign in to comment.