MCPcopy
hub / github.com/operator-framework/operator-sdk / UninstallOLM

Method UninstallOLM

internal/testutils/utils.go:101–106  ·  view source on GitHub ↗

UninstallOLM runs 'operator-sdk olm uninstall' and logs any errors emitted by that command.

()

Source from the content-addressed store, hash-verified

99
100// UninstallOLM runs 'operator-sdk olm uninstall' and logs any errors emitted by that command.
101func (tc TestContext) UninstallOLM() {
102 cmd := exec.Command(tc.BinaryName, "olm", "uninstall")
103 if _, err := tc.Run(cmd); err != nil {
104 fmt.Fprintln(GinkgoWriter, "warning: error when uninstalling OLM:", err)
105 }
106}
107
108// ReplaceInFile replaces all instances of old with new in the file at path.
109// todo(camilamacedo86): this func can be pushed to upstream/kb

Callers 2

suite_test.goFile · 0.80

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected