DetectSecurityContextConstraints connects to the discovery API and find out if we're running under a system that implements OpenShift Security Context Constraints
(client discovery.DiscoveryInterface)
| 137 | // DetectSecurityContextConstraints connects to the discovery API and find out if |
| 138 | // we're running under a system that implements OpenShift Security Context Constraints |
| 139 | func DetectSecurityContextConstraints(client discovery.DiscoveryInterface) (err error) { |
| 140 | haveSCC, err = resourceExist(client, "security.openshift.io/v1", "securitycontextconstraints") |
| 141 | if err != nil { |
| 142 | return err |
| 143 | } |
| 144 | |
| 145 | return nil |
| 146 | } |
| 147 | |
| 148 | // HaveSecurityContextConstraints returns true if we're running under a system that implements |
| 149 | // OpenShift Security Context Constraints |
no test coverage detected