Skip to content

Commit a458282

Browse files
authored
REMOVE extension api from main branch (#820)
1 parent e9acbd3 commit a458282

17 files changed

+25
-2245
lines changed

Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ IMG := $(IMAGE_REPO):$(IMAGE_TAG)
2222
# Define dependency versions (use go.mod if we also use Go code from dependency)
2323
export CERT_MGR_VERSION := v1.9.0
2424
export CATALOGD_VERSION := $(shell go list -mod=mod -m -f "{{.Version}}" github.com/operator-framework/catalogd)
25-
export KAPP_VERSION := $(shell go list -mod=mod -m -f "{{.Version}}" github.com/vmware-tanzu/carvel-kapp-controller)
2625
export RUKPAK_VERSION := $(shell go list -mod=mod -m -f "{{.Version}}" github.com/operator-framework/rukpak)
2726
export WAIT_TIMEOUT := 60s
2827

@@ -166,7 +165,7 @@ kind-load: $(KIND) #EXHELP Loads the currently constructed image onto the cluste
166165
kind-deploy: export MANIFEST := ./operator-controller.yaml
167166
kind-deploy: manifests $(KUSTOMIZE) #EXHELP Install controller and dependencies onto the kind cluster.
168167
$(KUSTOMIZE) build $(KUSTOMIZE_BUILD_DIR) > operator-controller.yaml
169-
envsubst '$$CATALOGD_VERSION,$$CERT_MGR_VERSION,$$KAPP_VERSION,$$RUKPAK_VERSION,$$MANIFEST' < scripts/install.tpl.sh | bash -s
168+
envsubst '$$CATALOGD_VERSION,$$CERT_MGR_VERSION,$$RUKPAK_VERSION,$$MANIFEST' < scripts/install.tpl.sh | bash -s
170169

171170
.PHONY: kind-cluster
172171
kind-cluster: $(KIND) #EXHELP Standup a kind cluster.
@@ -256,7 +255,7 @@ release: $(GORELEASER) #EXHELP Runs goreleaser for the operator-controller. By d
256255
quickstart: export MANIFEST := https://github.com/operator-framework/operator-controller/releases/download/$(VERSION)/operator-controller.yaml
257256
quickstart: $(KUSTOMIZE) manifests #EXHELP Generate the installation release manifests and scripts.
258257
$(KUSTOMIZE) build $(KUSTOMIZE_BUILD_DIR) | sed "s/:devel/:$(VERSION)/g" > operator-controller.yaml
259-
envsubst '$$CATALOGD_VERSION,$$CERT_MGR_VERSION,$$KAPP_VERSION,$$RUKPAK_VERSION,$$MANIFEST' < scripts/install.tpl.sh > install.sh
258+
envsubst '$$CATALOGD_VERSION,$$CERT_MGR_VERSION,$$RUKPAK_VERSION,$$MANIFEST' < scripts/install.tpl.sh > install.sh
260259

261260
##@ Docs
262261

api/v1alpha1/clusterextension_types.go

+5
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ func init() {
121121
)
122122
}
123123

124+
type BundleMetadata struct {
125+
Name string `json:"name"`
126+
Version string `json:"version"`
127+
}
128+
124129
// ClusterExtensionStatus defines the observed state of ClusterExtension
125130
type ClusterExtensionStatus struct {
126131
// +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
@@ -108,14 +108,6 @@ func main() {
108108
setupLog.Error(err, "unable to create controller", "controller", "ClusterExtension")
109109
os.Exit(1)
110110
}
111-
112-
if err = (&controllers.ExtensionReconciler{
113-
Client: cl,
114-
BundleProvider: catalogClient,
115-
}).SetupWithManager(mgr); err != nil {
116-
setupLog.Error(err, "unable to create controller", "controller", "Extension")
117-
os.Exit(1)
118-
}
119111
//+kubebuilder:scaffold:builder
120112

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

0 commit comments

Comments
 (0)