The script currently assumes the downstream cluster up and healthy when running the namespace checks and creation. This is a problem as the error handling around the "Checking if namespace exists..." takes the timeout error as the namespace doesn't exist and tries to create it. And of course, the script can't because the cluster is offline.
I need to add a check that makes sure the cluster up and active in Rancher early on in the process.
Verifying project SupportTools...
Successfully found project SupportTools
Getting project info...
Project id: c-m-xrlzhb9p:p-6pdz9
Checking if namespace mmattox-testing exists...
parse error: Invalid numeric literal at line 1, column 5
Namespace mmattox-testing already exists
Assigning namespace mmattox-testing to project SupportTools...
Collecting namespace details...
Project long: c-m-xrlzhb9p:p-6pdz9
Project short: p-6pdz9
parse error: Invalid numeric literal at line 1, column 5
Updating namespace...
The script currently assumes the downstream cluster up and healthy when running the namespace checks and creation. This is a problem as the error handling around the "Checking if namespace exists..." takes the timeout error as the namespace doesn't exist and tries to create it. And of course, the script can't because the cluster is offline.
I need to add a check that makes sure the cluster up and active in Rancher early on in the process.