MCPcopy Create free account
hub / github.com/Climatik-Project/Climatik-Project / InstallPrometheusOperator

Function InstallPrometheusOperator

test/utils/utils.go:42–47  ·  view source on GitHub ↗

InstallPrometheusOperator installs the prometheus Operator to be used to export the enabled metrics.

()

Source from the content-addressed store, hash-verified

40
41// InstallPrometheusOperator installs the prometheus Operator to be used to export the enabled metrics.
42func InstallPrometheusOperator() error {
43 url := fmt.Sprintf(prometheusOperatorURL, prometheusOperatorVersion)
44 cmd := exec.Command("kubectl", "create", "-f", url)
45 _, err := Run(cmd)
46 return err
47}
48
49// Run executes the provided command within this context
50func Run(cmd *exec.Cmd) ([]byte, error) {

Callers 1

e2e_test.goFile · 0.92

Calls 1

RunFunction · 0.85

Tested by

no test coverage detected