Beispiel #1
0
// IsInstalled checks whether DM has been installed.
func IsInstalled(runner kubectl.Runner) bool {
	// Basically, we test "all-or-nothing" here: if this returns without error
	// we know that we have both the namespace and the manager API server.
	_, err := runner.GetByKind("rc", "manager-rc", "helm")
	if err != nil {
		return false
	}
	return true
}