Skip to content

Commit 02f0f7c

Browse files
committed
REMOVE extension api from main branch
1 parent 11843c9 commit 02f0f7c

10 files changed

+35
-1463
lines changed

api/v1alpha1/clusterextension_types.go

+18
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ import (
2525
type UpgradeConstraintPolicy string
2626

2727
const (
28+
29+
// TypeProgressing indicates whether operator-controller is
30+
// reconciling, installing, updating or deleting an extension.
31+
TypeProgressing = "Progressing"
32+
33+
ReasonProgressing = "Progressing"
34+
ReasonFailedToReachDesiredIntent = "FailedToReachDesiredIntent"
35+
ReasonReachedDesiredIntent = "ReachedDesiredIntent"
36+
2837
// The extension will only upgrade if the new version satisfies
2938
// the upgrade constraints set by the package author.
3039
UpgradeConstraintPolicyEnforce UpgradeConstraintPolicy = "Enforce"
@@ -106,6 +115,7 @@ func init() {
106115
TypePackageDeprecated,
107116
TypeChannelDeprecated,
108117
TypeBundleDeprecated,
118+
TypeProgressing,
109119
)
110120
// TODO(user): add Reasons from above
111121
conditionsets.ConditionReasons = append(conditionsets.ConditionReasons,
@@ -118,9 +128,17 @@ func init() {
118128
ReasonInvalidSpec,
119129
ReasonSuccess,
120130
ReasonDeprecated,
131+
ReasonProgressing,
132+
ReasonFailedToReachDesiredIntent,
133+
ReasonReachedDesiredIntent,
121134
)
122135
}
123136

137+
type BundleMetadata struct {
138+
Name string `json:"name"`
139+
Version string `json:"version"`
140+
}
141+
124142
// ClusterExtensionStatus defines the observed state of ClusterExtension
125143
type ClusterExtensionStatus struct {
126144
// +optional

api/v1alpha1/extension_types.go

-159
This file was deleted.

api/v1alpha1/zz_generated.deepcopy.go

-142
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/manager/main.go

-8
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,6 @@ func main() {
9898
setupLog.Error(err, "unable to create controller", "controller", "ClusterExtension")
9999
os.Exit(1)
100100
}
101-
102-
if err = (&controllers.ExtensionReconciler{
103-
Client: cl,
104-
BundleProvider: catalogClient,
105-
}).SetupWithManager(mgr); err != nil {
106-
setupLog.Error(err, "unable to create controller", "controller", "Extension")
107-
os.Exit(1)
108-
}
109101
//+kubebuilder:scaffold:builder
110102

111103
if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {

0 commit comments

Comments
 (0)