Closed aazon closed 4 months ago
Currently, there are a few issues when I want the otc-auth tool to obtain CCE credentials and output them so that I can forward the output into a file:
otc-auth
otc-auth cce get-kube-config \ --cluster "${TF_VAR_context}-${TF_VAR_stage}" \ --days-valid 7 \ --output \ > kubeconfig.yaml
kubeconfig.yaml
kubectl
This pull request solves both of the above issues.
Currently, there are a few issues when I want the
otc-auth
tool to obtain CCE credentials and output them so that I can forward the output into a file:otc-auth
outputs the config file to STDERR, which already may contain log messages. That makes thekubeconfig.yaml
not readable bykubectl
.kubectl
tool.This pull request solves both of the above issues.