Skip to content

Commit cdbfad7

Browse files
committed
Set kubectl context namespace to default
1 parent 91295d8 commit cdbfad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ create-workload-cluster: $(ENVSUBST) $(KUBECTL) ## Create a workload cluster.
379379
$(KUBECTL) get secret/$(CLUSTER_NAME)-kubeconfig -n default -o json | jq -r .data.value | base64 --decode > ./kubeconfig
380380
$(KUBECTL) -n default wait --for=condition=Ready --timeout=60m cluster "$(CLUSTER_NAME)"
381381

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

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

0 commit comments

Comments
 (0)