Skip to content

Commit

Permalink
chore(api): remove ClusterCryostat CRD (#737)
Browse files Browse the repository at this point in the history
* chore(api): remove ClusterCryostat CRD

* Update config.md

* Delete docs/multi-namespace.md

* Add RoleBinding finalizer tests
  • Loading branch information
ebaron committed Feb 20, 2024
1 parent 972d6a3 commit a8ae2c6
Show file tree
Hide file tree
Showing 36 changed files with 246 additions and 21,911 deletions.
14 changes: 1 addition & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ endif
.PHONY: undeploy
undeploy: ## Undeploy controller from the configured cluster in ~/.kube/config.
- $(CLUSTER_CLIENT) delete --ignore-not-found=$(ignore-not-found) -f config/samples/operator_v1beta1_cryostat.yaml
- $(CLUSTER_CLIENT) delete --ignore-not-found=$(ignore-not-found) -f config/samples/operator_v1beta1_clustercryostat.yaml
- $(KUSTOMIZE) build $(KUSTOMIZE_DIR) | $(CLUSTER_CLIENT) delete --ignore-not-found=$(ignore-not-found) -f -

.PHONY: deploy_bundle
Expand All @@ -495,19 +494,8 @@ undeploy_bundle: operator-sdk ## Undeploy the controller in the bundle format wi

.PHONY: create_cryostat_cr
create_cryostat_cr: destroy_cryostat_cr ## Create a namespaced Cryostat instance.
$(CLUSTER_CLIENT) create -f config/samples/operator_v1beta1_cryostat.yaml

.PHONY: create_clustercryostat_cr
create_clustercryostat_cr: destroy_clustercryostat_cr ## Create a cluster-wide Cryostat instance.
target_ns_json=$$(jq -nc '$$ARGS.positional' --args -- $(TARGET_NAMESPACES)) && \
$(CLUSTER_CLIENT) patch -f config/samples/operator_v1beta1_clustercryostat.yaml --local=true --type=merge \
-p "{\"spec\": {\"installNamespace\": \"$(DEPLOY_NAMESPACE)\", \"targetNamespaces\": $$target_ns_json}}" -o yaml | \
$(CLUSTER_CLIENT) apply -f -
$(CLUSTER_CLIENT) create -f config/samples/operator_v1beta2_cryostat.yaml

.PHONY: destroy_cryostat_cr
destroy_cryostat_cr: ## Delete a namespaced Cryostat instance.
- $(CLUSTER_CLIENT) delete --ignore-not-found=$(ignore-not-found) -f config/samples/operator_v1beta1_cryostat.yaml

.PHONY: destroy_clustercryostat_cr
destroy_clustercryostat_cr: ## Delete a cluster-wide Cryostat instance.
- $(CLUSTER_CLIENT) delete --ignore-not-found=$(ignore-not-found) -f config/samples/operator_v1beta1_clustercryostat.yaml
20 changes: 0 additions & 20 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ resources:
kind: Cryostat
path: github.com/cryostatio/cryostat-operator/api/v1beta1
version: v1beta1
- api:
crdVersion: v1
namespaced: false
domain: cryostat.io
group: operator
kind: ClusterCryostat
path: github.com/cryostatio/cryostat-operator/api/v1beta1
version: v1beta1
- api:
crdVersion: v1
namespaced: true
Expand All @@ -41,16 +33,4 @@ resources:
defaulting: true
validation: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: false
controller: true
domain: cryostat.io
group: operator
kind: ClusterCryostat
path: github.com/cryostatio/cryostat-operator/api/v1beta2
version: v1beta2
webhooks:
conversion: true
webhookVersion: v1
version: "3"
62 changes: 0 additions & 62 deletions api/v1beta1/clustercryostat_conversion.go

This file was deleted.

81 changes: 0 additions & 81 deletions api/v1beta1/clustercryostat_types.go

This file was deleted.

101 changes: 0 additions & 101 deletions api/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions api/v1beta2/clustercryostat_conversion.go

This file was deleted.

Loading

0 comments on commit a8ae2c6

Please sign in to comment.