From dd10f07382993c3e2cd542d2def9e75b347e6274 Mon Sep 17 00:00:00 2001 From: Victor Barr Date: Wed, 22 Nov 2023 14:35:49 -0800 Subject: [PATCH] Xpk default namespace (#28) * namespace argument support * remove unneccesary () * make sure kubectl commands run in the default namespace * all kubectl commands will run with the default namespace --- xpk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpk.py b/xpk.py index ebefe16b..ed078228 100644 --- a/xpk.py +++ b/xpk.py @@ -1005,7 +1005,7 @@ def set_cluster_command(args) -> int: command = ( 'gcloud container clusters get-credentials' f' {args.cluster} --region={zone_to_region(args.zone)} --project={args.project} &&' - ' kubectl config view' + ' kubectl config view && kubectl config set-context --current --namespace=default' ) return_code = run_command_with_updates( command, 'Set Cluster', args, verbose=False