Skip to content

Commit

Permalink
Merge pull request #68455 from Klaven/kubeadm_883
Browse files Browse the repository at this point in the history
kubeadm 883 Updated logging to be consistent.
  • Loading branch information
k8s-ci-robot committed Sep 26, 2018
2 parents a641e1c + a5356e5 commit 8c1fe2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/kubeadm/app/cmd/join.go
Expand Up @@ -331,7 +331,7 @@ func (j *Join) Run(out io.Writer) error {
}

// run kubeadm init preflight checks for checking all the prequisites
glog.Infoln("[join] running pre-flight checks before initializing the new control plane instance")
fmt.Printf("[join] running pre-flight checks before initializing the new control plane instance\n")
preflight.RunInitMasterChecks(utilsexec.New(), initConfiguration, j.ignorePreflightErrors)

// Prepares the node for hosting a new control plane instance by writing necessary
Expand Down
2 changes: 0 additions & 2 deletions cmd/kubeadm/app/util/system/kernel_validator.go
Expand Up @@ -78,7 +78,6 @@ func (k *KernelValidator) Validate(spec SysSpec) (error, error) {

// validateKernelVersion validates the kernel version.
func (k *KernelValidator) validateKernelVersion(kSpec KernelSpec) error {
glog.V(1).Info("Validating kernel version")
versionRegexps := kSpec.Versions
for _, versionRegexp := range versionRegexps {
r := regexp.MustCompile(versionRegexp)
Expand All @@ -93,7 +92,6 @@ func (k *KernelValidator) validateKernelVersion(kSpec KernelSpec) error {

// validateKernelConfig validates the kernel configurations.
func (k *KernelValidator) validateKernelConfig(kSpec KernelSpec) error {
glog.V(1).Info("Validating kernel config")
allConfig, err := k.getKernelConfig()
if err != nil {
return fmt.Errorf("failed to parse kernel config: %v", err)
Expand Down
4 changes: 2 additions & 2 deletions cmd/kubeadm/app/util/system/validators.go
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package system

import (
"github.com/golang/glog"
"fmt"
"k8s.io/apimachinery/pkg/util/errors"
)

Expand All @@ -41,7 +41,7 @@ func Validate(spec SysSpec, validators []Validator) (error, error) {
var warns []error

for _, v := range validators {
glog.Infof("Validating %s...", v.Name())
fmt.Printf("Validating %s...\n", v.Name())
warn, err := v.Validate(spec)
errs = append(errs, err)
warns = append(warns, warn)
Expand Down

0 comments on commit 8c1fe2e

Please sign in to comment.