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

Function init

webhook/main.go:58–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56)
57
58func init() {
59 // Figure out if we're running on OpenShift
60 err := infrastructure.Initialize()
61 if err != nil {
62 log.Error(err, "could not determine cluster type")
63 os.Exit(1)
64 }
65
66 utilruntime.Must(clientgoscheme.AddToScheme(scheme))
67 utilruntime.Must(dwv1.AddToScheme(scheme))
68 utilruntime.Must(dwv2.AddToScheme(scheme))
69}
70
71func main() {
72 logf.SetLogger(zap.New(zap.UseDevMode(config.GetDevModeEnabled())))

Callers

nothing calls this directly

Calls 2

InitializeFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected