def main()

in radlab-launcher/cloudsdk_kubectl_installer.py [0:0]


def main():
  # CURL & Bash should already be installed on the Local OS
  # Not requied for Cloud Shell

  system = platform.system().lower()
  node = platform.node().lower()

  if('linux' in system and 'cs-' in node):
    print("Detected Cloud Shell, skipping cloud sdk & kubectl installation...")
  else:
    os.system("curl https://sdk.cloud.google.com > install.sh")
    os.system("bash install.sh --disable-prompts")
    os.system("sudo gcloud components install kubectl")