-
Couldn't load subscription status.
- Fork 6
Open
Description
Running some of the command line examples in the README.md fail. For example:
$ ./linux/run-k8s-job.sh ./example-templates/workloads/rocm-job-template.yaml dev
Deploying the Job in namespace 'dev'...
error: error validating "./example-templates/workloads/rocm-job-template.yaml": error validating data: failed to download openapi: Get "http://localhost:8080/openapi/v2?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused; if you choose to ignore these errors, turn validation off with --validate=false
$
This can be resolved by ensuring the environment variable KUBECONFIG is set in the current shell:
$ KUBECONFIG= ./linux/run-k8s-job.sh ./example-templates/workloads/rocm-job-template.yaml dev
<snip>
job.batch "rocm-test-job-stebates" deleted
Job execution completed successfully in 'dev' namespace.
$
It would be ideal if the README.md explicitly told the user how best to do this and ideally in a way that is persistent across sessions (e.g. in .bashrc).
Metadata
Metadata
Assignees
Labels
No labels