Skip to content

Commit

Permalink
Merge pull request #124 from SovereignCloudStack/kr/use-scs-capd-image
Browse files Browse the repository at this point in the history
🌱 use scs capd image while using docker provider
  • Loading branch information
janiskemper authored Apr 25, 2024
2 parents 2b284c2 + 3b92f88 commit 4e53848
Show file tree
Hide file tree
Showing 3 changed files with 2,269 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ env-vars-for-wl-cluster:
.PHONY: delete-bootstrap-cluster
delete-bootstrap-cluster: $(CTLPTL) ## Deletes Kind-dev Cluster
$(CTLPTL) delete cluster kind-cso
$(CTLPTL) delete registry cso-registry
$(CTLPTL) delete registry kind-registry

.PHONY: cluster
cluster: $(CTLPTL) $(KUBECTL) ## Creates kind-dev Cluster
Expand Down
6 changes: 2 additions & 4 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,10 @@ def deploy_capi():
patch_args_with_extra_args("capi-kubeadm-bootstrap-system", "capi-kubeadm-bootstrap-controller-manager", kb_extra_args)

def deploy_capd():
version = settings.get("capi_version")
capd_uri = "https://github.com/kubernetes-sigs/cluster-api/releases/download/{}/infrastructure-components-development.yaml".format(version)
cmd = "curl -sSL {} | {} | kubectl apply -f -".format(capd_uri, envsubst_cmd)
yaml = './capd.yaml'
cmd = "kubectl apply -f capd.yaml"
local(cmd, quiet = True)


def prepare_environment():
local("kubectl create namespace cluster --dry-run=client -o yaml | kubectl apply -f -")

Expand Down
Loading

0 comments on commit 4e53848

Please sign in to comment.