You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msg:=fmt.Sprintf("%sunable to connect to your cluster in the %s environment (operator endpoint: %s)\n\n", originalErrMsg, envName, operatorURL)
52
-
msg+="if you don't have a cluster running:\n"
53
-
msg+=fmt.Sprintf(" → if you'd like to create a cluster, run `cortex cluster up --env %s`\n", envName)
54
-
msg+=fmt.Sprintf(" → otherwise you can ignore this message, and prevent it in the future with `cortex env delete %s`\n", envName)
55
-
msg+="\nif you have a cluster running:\n"
56
-
msg+=fmt.Sprintf(" → run `cortex cluster info --env %s` to update your environment (include `--config <cluster.yaml>` if you have a cluster configuration file)\n", envName)
57
-
// CORTEX_VERSION_MINOR
58
-
msg+=" → if you set `operator_load_balancer_scheme: internal` in your cluster configuration file, your CLI must run from within a VPC that has access to your cluster's VPC (see https://docs.cortex.dev/v/master/guides/vpc-peering)\n"
51
+
ifenvName=="" {
52
+
msg+=fmt.Sprintf("unable to connect to your cluster (operator endpoint: %s)\n\n", operatorURL)
53
+
msg+="if you don't have a cluster running:\n"
54
+
msg+=" → to create a cluster, run `cortex cluster up`\n"
55
+
msg+="\nif you have a cluster running:\n"
56
+
msg+=" → run `cortex cluster info --configure-env ENV_NAME` to update your environment (replace ENV_NAME with your desired environment name, and include `--config <cluster.yaml>` if you have a cluster configuration file)\n"
57
+
} else {
58
+
msg+=fmt.Sprintf("unable to connect to your cluster in the %s environment (operator endpoint: %s)\n\n", envName, operatorURL)
59
+
msg+="if you don't have a cluster running:\n"
60
+
msg+=fmt.Sprintf(" → if you'd like to create a cluster, run `cortex cluster up --configure-env %s`\n", envName)
61
+
msg+=fmt.Sprintf(" → otherwise you can ignore this message, and prevent it in the future with `cortex env delete %s`\n", envName)
62
+
msg+="\nif you have a cluster running:\n"
63
+
msg+=fmt.Sprintf(" → run `cortex cluster info --configure-env %s` to update your environment (include `--config <cluster.yaml>` if you have a cluster configuration file)\n", envName)
64
+
// CORTEX_VERSION_MINOR
65
+
msg+=" → if you set `operator_load_balancer_scheme: internal` in your cluster configuration file, your CLI must run from within a VPC that has access to your cluster's VPC (see https://docs.cortex.dev/v/master/guides/vpc-peering)\n"
0 commit comments