()
| 74 | } |
| 75 | |
| 76 | func GetWorkspaceControllerSA() (string, error) { |
| 77 | saName := os.Getenv(constants.ControllerServiceAccountNameEnvVar) |
| 78 | if saName == "" { |
| 79 | return "", fmt.Errorf("environment variable %s is unset", constants.ControllerServiceAccountNameEnvVar) |
| 80 | } |
| 81 | return saName, nil |
| 82 | } |