MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / HaveSecurityContextConstraints

Function HaveSecurityContextConstraints

pkg/utils/discovery.go:151–153  ·  view source on GitHub ↗

HaveSecurityContextConstraints returns true if we're running under a system that implements OpenShift Security Context Constraints It panics if called before DetectSecurityContextConstraints

()

Source from the content-addressed store, hash-verified

149// OpenShift Security Context Constraints
150// It panics if called before DetectSecurityContextConstraints
151func HaveSecurityContextConstraints() bool {
152 return haveSCC
153}
154
155// DetectVolumeSnapshotExist connects to the discovery API and find out if
156// the VolumeSnapshot CRD exist in the cluster

Callers 6

GetPodSecurityContextFunction · 0.92
createPodSecurityContextFunction · 0.92
getSecurityContextFunction · 0.92
getPodSecurityContextFunction · 0.92
RunControllerFunction · 0.92
discovery_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected