Skip to content

Commit

Permalink
Set kubectl context namespace to default
Browse files Browse the repository at this point in the history
  • Loading branch information
Jont828 committed Jan 14, 2025
1 parent 91295d8 commit cdbfad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ create-workload-cluster: $(ENVSUBST) $(KUBECTL) ## Create a workload cluster.
$(KUBECTL) get secret/$(CLUSTER_NAME)-kubeconfig -n default -o json | jq -r .data.value | base64 --decode > ./kubeconfig
$(KUBECTL) -n default wait --for=condition=Ready --timeout=60m cluster "$(CLUSTER_NAME)"

$(KUBECTL) --kubeconfig=./kubeconfig create namespace test-pods
$(KUBECTL) --kubeconfig=./kubeconfig config set-context --current --namespace="default"

@echo 'run "$(KUBECTL) --kubeconfig=./kubeconfig ..." to work with the new target cluster'

Expand Down

0 comments on commit cdbfad7

Please # to comment.