Created
February 15, 2023 14:35
-
-
Save jkremser/672c558b85d471efd99da2235003f0f3 to your computer and use it in GitHub Desktop.
Makefile.custom-jk.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: clean-vcd | |
clean-vcd: | |
ifndef INSTALLATION | |
$(error INSTALLATION is undefined, e.g. "gs-foo") | |
endif | |
-kind delete cluster --name=kind-mc-initial-$(INSTALLATION) | |
-cd-cli delete vapp $(INSTALLATION) -y | |
-cd-cli delete lbps $(shell cd-cli get lbps | grep $(INSTALLATION)) --cascade -y | |
.PHONY: bootstrap-kind | |
bootstrap-kind: | |
kind create cluster --image kindest/node:v1.24.6 | |
CLUSTER_NAMESPACE=org-giantswarm KUBECONFIG_FOLDER=~/.kube/ AGE_KEY=$(lpass show "${AGE_KEY_LPASS_PATH}" --notes) CURRENT_CLUSTER=kind-kind ./scripts/create-namespaces.sh | |
MC_PROXY_ENABLED=false CERT_MANAGER_BRANCH=master KUBECONFIG_FOLDER=~/.kube/ AGE_KEY=$(lpass show "${AGE_KEY_LPASS_PATH}" --notes) CURRENT_CLUSTER=kind-kind ./scripts/deploy-cert-manager-app.sh | |
kubectl create clusterrolebinding capv-admin --clusterrole=cluster-admin --serviceaccount=giantswarm:capv | |
# todo remove the watch filter | |
touch ./values.yaml | |
./scripts/helpers/deploy_app.sh \ | |
--app-catalog "control-plane" \ | |
--app-name "cluster-api" \ | |
--app-version "v1.9.0" \ | |
--release-name "cluster-api" \ | |
--release-namespace "giantswarm" \ | |
--kubeconfig "/Users/jkremser/.kube/config" \ | |
--values "./values.yaml" \ | |
--wait-for-rollout "deploy/capi-kubeadm-bootstrap-controller-manager" \ | |
--wait-for-rollout "deploy/capi-kubeadm-control-plane-controller-manager" \ | |
--wait-for-rollout "deploy/capi-controller-manager" | |
-rm ./values.yaml | |
helm upgrade -i capv ~/workspace/cluster-api-provider-vsphere-app/helm/cluster-api-provider-vsphere/ -f credentials.yaml -n giantswarm | |
#kubectl delete pods -lapp.kubernetes.io/component=webhook -n kube-system |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment