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

Method InstallOLMVersion

internal/testutils/utils.go:94–98  ·  view source on GitHub ↗

InstallOLMVersion runs 'operator-sdk olm install' for specific version and returns any errors emitted by that command.

(version string)

Source from the content-addressed store, hash-verified

92// InstallOLMVersion runs 'operator-sdk olm install' for specific version
93// and returns any errors emitted by that command.
94func (tc TestContext) InstallOLMVersion(version string) error {
95 cmd := exec.Command(tc.BinaryName, "olm", "install", "--version", version, "--timeout", "4m")
96 _, err := tc.Run(cmd)
97 return err
98}
99
100// UninstallOLM runs 'operator-sdk olm uninstall' and logs any errors emitted by that command.
101func (tc TestContext) UninstallOLM() {

Callers 2

InstallPrerequisitesMethod · 0.95
suite_test.goFile · 0.80

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected