mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-03-03 16:22:18 +08:00
Sending a warning instead of throwing error when KUBECONFIG is missing. (#144)
This commit is contained in:
parent
acd12a4705
commit
33608d18f7
@ -42,7 +42,7 @@ async function installKubectl(version: string) {
|
||||
|
||||
function checkClusterContext() {
|
||||
if (!process.env["KUBECONFIG"]) {
|
||||
throw new Error('Cluster context not set. Use k8ssetcontext action to set cluster context');
|
||||
core.warning('KUBECONFIG env is not explicitly set. Ensure cluster context is set by using k8s-set-context / aks-set-context action.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user