implemented oc_login() function to provide some error handling and prevent undesirable run issues, such as login issues. For example, a failed login may cause both meshes be deployed to the currently logged cluster vs. two cluster deployment. Additionally, I've added a condition that addresses a known issue with latest oc clients for Mac, i.e. ingress TLS certificate trust handling - forcing to use --insecure-skip-tls-verify option to login.
implemented oc_login() function to provide some error handling and prevent undesirable run issues, such as login issues. For example, a failed login may cause both meshes be deployed to the currently logged cluster vs. two cluster deployment. Additionally, I've added a condition that addresses a known issue with latest oc clients for Mac, i.e. ingress TLS certificate trust handling - forcing to use --insecure-skip-tls-verify option to login.