Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use kubectl to check the kubernetes version #34

Merged
merged 1 commit into from
Aug 11, 2017
Merged

Conversation

lizrice
Copy link
Contributor

@lizrice lizrice commented Aug 11, 2017

Fixes #15

@lizrice lizrice merged commit 45cf25e into master Aug 11, 2017
@lizrice lizrice deleted the kubectl-version branch August 11, 2017 17:05
if err != nil {
continueWithError(err, sprintlnWarn("Kubernetes version check skipped"))
return
}

cmd := exec.Command(b, "--version")
cmd := exec.Command("kubectl", "version")
out, err := cmd.Output()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lizrice Can we make kubectl version command's output only be printed when log level is set to 1? I think it clutters the output of kube-bench.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants