Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(greenhousectl): setup greenhouse dashboard #845

Merged
merged 27 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ec6171b
(chore): dev cli simplification
abhijith-darshan Jan 14, 2025
1c5deb5
(chore): greenhouse dashboard setup
abhijith-darshan Jan 14, 2025
894610b
(chore): allow dev setup config overrides
abhijith-darshan Jan 14, 2025
57fe1a2
(chore): dashboard configuration
abhijith-darshan Jan 14, 2025
be77cac
(chore): enhance dev setup commands in make
abhijith-darshan Jan 14, 2025
c807cc8
(chore): clean up unused vars
abhijith-darshan Jan 14, 2025
3a2bfbc
(chore): generate dev cli docs
abhijith-darshan Jan 14, 2025
3e3886e
Merge branch 'main' into localenv/dashboard
abhijith-darshan Jan 14, 2025
0c62032
(chore): go fmt
abhijith-darshan Jan 14, 2025
1bae0fa
(chore): lint recommendation
abhijith-darshan Jan 14, 2025
02df10c
Automatic application of license header
Jan 14, 2025
d7867db
(chore): remote pull of plugin definitions
abhijith-darshan Jan 16, 2025
1fca6f2
(chore): juno doc ref to README
abhijith-darshan Jan 17, 2025
52c0d0a
(chore): dev cli README review recommendations
abhijith-darshan Jan 17, 2025
5d4b858
(chore): hint to use generated kubeconfigs from tmp folder
abhijith-darshan Jan 17, 2025
bbe4d03
(chore): hint to use generated kubeconfigs from tmp folder
abhijith-darshan Jan 17, 2025
61f0fad
(chore): remove remote plugin definition link in samples kustomize
abhijith-darshan Jan 17, 2025
8155670
(chore): fix spacing in notes
abhijith-darshan Jan 17, 2025
2c2e57a
(chore): fix quotes
abhijith-darshan Jan 17, 2025
c07fc4d
(docs): develop controller and webhook together
abhijith-darshan Jan 17, 2025
ee48ebd
Merge branch 'main' into localenv/dashboard
abhijith-darshan Jan 17, 2025
a6978ca
Merge branch 'main' into localenv/dashboard
abhijith-darshan Jan 23, 2025
32e917f
(chore): regenerate docs from template
abhijith-darshan Jan 23, 2025
36a421b
Apply suggestions from code review
abhijith-darshan Jan 24, 2025
39312fe
Merge branch 'main' into localenv/dashboard
abhijith-darshan Jan 24, 2025
6649c37
(docs): regenerate docs
abhijith-darshan Jan 27, 2025
5130d92
Merge branch 'main' into localenv/dashboard
abhijith-darshan Jan 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 25 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,36 @@ EXECUTION_ENV ?= LOCAL
ADMIN_NAMESPACE ?= greenhouse
ADMIN_RELEASE ?= greenhouse
ADMIN_CHART_PATH ?= charts/manager
WEBHOOK_DEV ?= false
E2E_REPORT_PATH="$(shell pwd)/bin/$(SCENARIO)-e2e-report.json"
PLUGIN_DIR ?=
GREENHOUSE_ORG ?= demo
WEBHOOK_ONLY ?= false
DEV_MODE ?= false
INTERNAL ?= -int

.PHONY: setup
setup: cli setup-manager setup-dashboard setup-demo

.PHONY: setup-webhook-dev
setup-webhook-dev:
DEV_MODE=true make setup-manager

.PHONY: setup-controller-dev
setup-controller-dev:
WEBHOOK_ONLY=true make setup-manager && INTERNAL= make setup-demo

.PHONY: setup-manager
setup-manager: cli
PLUGIN_PATH=$(PLUGIN_DIR) $(CLI) dev setup -f dev-env/localenv/dev.config.yaml d=$(DEV_MODE) e=WEBHOOK_ONLY=$(WEBHOOK_ONLY)

.PHONY: setup-dashboard
setup-dashboard: cli
$(CLI) dev setup dashboard -f dev-env/localenv/ui.config.yaml

.PHONY: setup-demo
setup-demo: prepare-e2e samples
kubectl create secret generic kind-$(REMOTE_CLUSTER) \
--from-literal=kubeconfig="$$(cat ${PWD}/bin/$(REMOTE_CLUSTER)-int.kubeconfig)" \
--from-literal=kubeconfig="$$(cat ${PWD}/bin/$(REMOTE_CLUSTER)$(INTERNAL).kubeconfig)" \
--namespace=$(GREENHOUSE_ORG) \
--type="greenhouse.sap/kubeconfig" \
--dry-run=client -o yaml | kubectl apply -f -
Expand All @@ -261,28 +282,15 @@ samples: kustomize
sleep 5; \
done

.PHONY: setup-plugin-dev
setup-plugin-dev: cli
PLUGIN_PATH=$(PLUGIN_DIR) $(CLI) dev setup -f dev-env/localenv/plugin.config.yaml && make setup-demo

.PHONY: setup-dev
setup-dev: cli
$(CLI) dev setup -f dev-env/localenv/dev.config.yaml

.PHONY: setup-webhook
setup-webhook: cli
$(CLI) dev setup webhook --name $(ADMIN_CLUSTER) --namespace $(ADMIN_NAMESPACE) --release $(ADMIN_RELEASE) --chart-path $(ADMIN_CHART_PATH) --dockerfile ./ --dev-mode=$(WEBHOOK_DEV)

.PHONY: setup-e2e
setup-e2e: cli
$(CLI) dev setup -f e2e/config.yaml
make prepare-e2e

.PHONY: clean-e2e
clean-e2e:
$(CLI) dev cluster delete --name $(REMOTE_CLUSTER)
$(CLI) dev cluster delete --name $(ADMIN_CLUSTER)
rm -v $(CLI)
kind delete cluster --name $(REMOTE_CLUSTER)
kind delete cluster --name $(ADMIN_CLUSTER)
rm -v $(LOCALBIN)/*.kubeconfig

.PHONY: e2e
Expand Down
Loading
Loading