MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / GetConfig

Function GetConfig

internal/controller/runtime/runtime.go:48–48  ·  view source on GitHub ↗

GetConfig returns a Kubernetes client configuration from KUBECONFIG or the service account Kubernetes gives to pods.

()

Source from the content-addressed store, hash-verified

46// GetConfig returns a Kubernetes client configuration from KUBECONFIG or the
47// service account Kubernetes gives to pods.
48func GetConfig() (*rest.Config, error) { return config.GetConfig() }
49
50// NewManager returns a Manager that interacts with the Kubernetes API of config.
51// When config is nil, it reads from KUBECONFIG or the local service account.

Callers 2

initClientFunction · 0.92
NewManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected