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

Function GetWebhooksSecretName

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

Source from the content-addressed store, hash-verified

38)
39
40func GetWebhooksSecretName() (string, error) {
41 env := os.Getenv(webhooksSecretNameEnvVar)
42 if env == "" {
43 return "", fmt.Errorf("environment variable %s is unset", webhooksSecretNameEnvVar)
44 }
45 return env, nil
46}
47
48func GetDevModeEnabled() bool {
49 return os.Getenv(developmentModeEnvVar) == "true"

Callers 1

SetupWebhooksFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected