MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / GetWorkspaceControllerSA

Function GetWorkspaceControllerSA

pkg/config/env.go:76–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76func 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}

Callers 1

getSpecDeploymentFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected