Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Rachel-Shao <34911960+Rachel-Shao@users.noreply.github.com>
  • Loading branch information
Rachel-Shao committed Dec 14, 2021
1 parent 2f4fae6 commit 6877002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ require (
k8s.io/client-go v0.19.2
k8s.io/cluster-bootstrap v0.0.0
k8s.io/component-base v0.18.8
k8s.io/klog v1.0.0 // indirect
k8s.io/klog/v2 v2.9.0
k8s.io/kube-controller-manager v0.0.0
k8s.io/kubectl v0.0.0
Expand Down
3 changes: 1 addition & 2 deletions pkg/util/kubeadmapi/kubeadmapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package kubeadmapi

import (
"context"
"fmt"
"sort"
"strings"
"time"
Expand Down Expand Up @@ -349,7 +348,7 @@ func CreateOrUpdateRoleBinding(client clientset.Interface, roleBinding *rbacv1.R
// CreateBootstrapConfigMapIfNotExists creates the kube-public ConfigMap if it doesn't exist already
func CreateBootstrapConfigMapIfNotExists(client clientset.Interface, file string) error {

fmt.Printf("[bootstrap-token] Creating the %q ConfigMap in the %q namespace\n", bootstrapapi.ConfigMapClusterInfo, metav1.NamespacePublic)
klog.V(1).Infoln("[bootstrap-token] Creating the %q ConfigMap in the %q namespace", bootstrapapi.ConfigMapClusterInfo, metav1.NamespacePublic)

klog.V(1).Infoln("[bootstrap-token] loading admin kubeconfig")
adminConfig, err := clientcmd.LoadFromFile(file)
Expand Down

0 comments on commit 6877002

Please sign in to comment.