Created
February 22, 2023 15:05
-
-
Save jkremser/c834be2ff7cbebd56b58adc4da237289 to your computer and use it in GitHub Desktop.
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 | |
echo 'watchFilter: ""' > ./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 "$(HOME)/.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 | |
$(call pause) | |
cd ~/workspace/cluster-api-provider-vsphere-app/helm/cluster-api-provider-vsphere/ && \ | |
yq -i '.version |= 42' ./Chart.yaml && \ | |
helm upgrade -i capv . -f ./credentials.yaml -n giantswarm ; \ | |
git checkout ./Chart.yaml | |
#kubectl delete pods -lapp.kubernetes.io/component=webhook -n kube-system | |
foo: | |
$(call pause) | |
define pause | |
say now is the time | |
@echo hit enter to continue | |
@read | |
endef | |
mytargetfoosdfsdf: | |
do x | |
do y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment