Fixed a log issue for join.
We should use `%v` not `%s` to log bool value.
Before fix: limited-scope: %!s(bool=true)
After fix: limited-scope: true
@@ -138,7 +138,7 @@ func (j *joinFederation) Complete(args []string) error {
j.clusterContext = j.ClusterName
}
- glog.V(2).Infof("Args and flags: name %s, host: %s, host-system-namespace: %s, registry-namespace: %s, kubeconfig: %s, cluster-context: %s, secret-name: %s, limited-scope: %s, dry-run: %v",
+ glog.V(2).Infof("Args and flags: name %s, host: %s, host-system-namespace: %s, registry-namespace: %s, kubeconfig: %s, cluster-context: %s, secret-name: %s, limited-scope: %v, dry-run: %v",
j.ClusterName, j.HostClusterContext, j.FederationNamespace, j.ClusterNamespace, j.Kubeconfig, j.clusterContext,
j.secretName, j.limitedScope, j.DryRun)
