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

Function IsOpenShift

pkg/infrastructure/cluster.go:68–73  ·  view source on GitHub ↗

IsOpenShift returns true if the current cluster is an OpenShift (v4.x) cluster.

()

Source from the content-addressed store, hash-verified

66
67// IsOpenShift returns true if the current cluster is an OpenShift (v4.x) cluster.
68func IsOpenShift() bool {
69 if !initialized {
70 panic("Attempting to determine information about the cluster without initializing first")
71 }
72 return current == OpenShiftv4
73}
74
75func detect() (Type, error) {
76 kubeCfg, err := config.GetConfig()

Callers 15

initFunction · 0.92
ReconcileMethod · 0.92
SetupWithManagerMethod · 0.92
GetSpecObjectsMethod · 0.92
GetSolverMethod · 0.92
ensureJobRunnerRBACMethod · 0.92
GetCacheFuncFunction · 0.92
CheckPodEventsFunction · 0.92
PullSecretsFunction · 0.92
syncRolebindingsFunction · 0.92
FinalizeRBACFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected