IsRunningOnKind returns true when the tests are executed in a Kind Cluster
()
| 173 | |
| 174 | // IsRunningOnKind returns true when the tests are executed in a Kind Cluster |
| 175 | func (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() |
| 184 | func (tc TestContext) UninstallPrerequisites() { |
no outgoing calls
no test coverage detected