Skip to content

Commit

Permalink
Remove legacy CLI and dependencies
Browse files Browse the repository at this point in the history
This is the final step in removing the old CLI in favor of
the unified CLI. This removes the legacy code and the documentation.

Change-Id: Iad61b3239e131b3b8fd00eb87113f1bf44d8c2ab
  • Loading branch information
mhuin authored and morucci committed Feb 8, 2024
1 parent dc2c0c6 commit 53f2401
Show file tree
Hide file tree
Showing 40 changed files with 459 additions and 3,112 deletions.
18 changes: 0 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,24 +136,6 @@ install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~
install-cmctl: ## Install the cert-manager cmctl CLI
@bash -c "mkdir -p bin; test -f bin/cmctl || { curl -sSL -o cmctl.tar.gz https://github.com/cert-manager/cert-manager/releases/download/${CERT_MANAGER_VERSION}/cmctl-linux-amd64.tar.gz && tar xzf cmctl.tar.gz && mv cmctl ./bin; rm cmctl.tar.gz; }"

.PHONY: install-cert-manager
install-cert-manager: install-cmctl ## Install the cert-manager operator from a OLM sub and wait for API availability
kubectl apply -f ./olm-deps/cert-manager.yaml
./bin/cmctl check api --wait=2m

OPERATOR_NAMESPACE ?= operators

.PHONY: setup-prometheus-operator-serviceaccount
# This "hack" is required on MicroShift so that the operator can be deployed
setup-prometheus-operator-serviceaccount:
kubectl get -n $(OPERATOR_NAMESPACE) sa prometheus-operator || kubectl -n $(OPERATOR_NAMESPACE) create serviceaccount prometheus-operator
oc adm policy add-scc-to-user privileged system:serviceaccount:$(OPERATOR_NAMESPACE):prometheus-operator

.PHONY: install-prometheus-operator
install-prometheus-operator: setup-prometheus-operator-serviceaccount
kubectl apply -f ./olm-deps/prometheus/prometheus-subscription.yaml
until kubectl wait --for=condition=Ready --timeout 5s pods -l app.kubernetes.io/name=prometheus-operator -n operators | grep "prometheus-operator"; do sleep 5; done

.PHONY: uninstall
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
$(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func MkInitCmd() *cobra.Command {
full bool
connections []string
initCmd = &cobra.Command{
Use: "init",
Use: "init {config,manifest}",
Short: "CLI/project initialization subcommands",
Long: "These subcommands can be used to generate a sample CLI context, or a sample Software Factory manifest.",
ValidArgs: initAllowedArgs,
Expand Down
186 changes: 0 additions & 186 deletions cli/sfconfig/cmd/dev/run.go

This file was deleted.

66 changes: 0 additions & 66 deletions cli/sfconfig/cmd/gerrit/gerrit.go

This file was deleted.

98 changes: 0 additions & 98 deletions cli/sfconfig/cmd/microshift.go

This file was deleted.

Loading

0 comments on commit 53f2401

Please sign in to comment.