Skip to content

Commit

Permalink
use --cluster-config and --job-config-stub pt-2
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Jun 16, 2023
1 parent 2faf43c commit 9edbbf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clientmanager/clientmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def main() -> None:
else:
# connect to remote host
if args.cluster_config:
kubernetes.config.load_kube_config(args.cluster_config)
kubernetes.config.load_kube_config(
config_file=args.cluster_config,
client_configuration=k8s_client_config,
)
k8s_client_config.host = args.host
k8s_client_config.api_key["authorization"] = ENV.WORKER_K8S_TOKEN
# connect & go
Expand Down

0 comments on commit 9edbbf2

Please sign in to comment.