const success … const failed … const notConfigured … const skipped … var checkFlag … func init() { … } // TODO: Should we write an e2e test for this? func main() { … } // check returns errors found while checking the provided components. Will prevent errors to stdout. func check(options ...string) []error { … } const kubeletClusterDNSRegexStr … const kubeletClusterDomainRegexStr … // dns checks that cluster dns has been properly configured and can resolve the kubernetes.default service func dns() error { … } const cmdlineCGroupMemory … // kernel checks that the kernel has been configured correctly to support the required cgroup features func kernel() error { … } const iptablesInputRegexStr … const iptablesForwardRegexStr … // firewall checks that iptables does not have common firewall rules setup that would disrupt traffic func firewall() error { … } // daemons checks that the required node programs are running: kubelet and kube-proxy func daemons() error { … } // printError provides its arguments to print a format string to the console (newline terminated) and returns an // error with the same string func printError(s string, args ...interface{ … } // printSuccess provides its arguments to print a format string to the console (newline terminated) and returns nil func printSuccess(s string, args ...interface{ … } // appendNotNil appends err to errs iff err is not nil func appendNotNil(errs []error, err error) []error { … }