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

Method IsRunningOnKind

internal/testutils/utils.go:175–181  ·  view source on GitHub ↗

IsRunningOnKind returns true when the tests are executed in a Kind Cluster

()

Source from the content-addressed store, hash-verified

173
174// IsRunningOnKind returns true when the tests are executed in a Kind Cluster
175func (tc TestContext) IsRunningOnKind() (bool, error) {
176 kubectx, err := tc.Kubectl.Command("config", "current-context")
177 if err != nil {
178 return false, err
179 }
180 return strings.Contains(kubectx, "kind"), nil
181}
182
183// UninstallPrerequisites will uninstall all prerequisites installed via InstallPrerequisites()
184func (tc TestContext) UninstallPrerequisites() {

Callers 3

suite_test.goFile · 0.80
suite_test.goFile · 0.80
suite_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected