DetectOLM looks for the operators.coreos.com operators resource in the current Kubernetes cluster
(client discovery.DiscoveryInterface)
| 234 | // DetectOLM looks for the operators.coreos.com operators resource in the current |
| 235 | // Kubernetes cluster |
| 236 | func DetectOLM(client discovery.DiscoveryInterface) (err error) { |
| 237 | olmPlatform = false |
| 238 | olmPlatform, err = resourceExist(client, "operators.coreos.com/v1", "operators") |
| 239 | return err |
| 240 | } |
| 241 | |
| 242 | // RunningOnOLM returns if we're running over a Kubernetes cluster with OLM support |
| 243 | func RunningOnOLM() bool { |
no test coverage detected