Skip to content

Commit

Permalink
Xpk default namespace (#28)
Browse files Browse the repository at this point in the history
* namespace argument support

* remove unneccesary ()

* make sure kubectl commands run in the default namespace

* all kubectl commands will run with the default namespace
  • Loading branch information
Obliviour committed Nov 22, 2023
1 parent 751d708 commit dd10f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd10f07

Please sign in to comment.