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
Some minor fixes for warnings while running the tests #68481
Conversation
@duglin: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@@ -110,7 +110,7 @@ func CreateCACertAndKeyFiles(certSpec *KubeadmCert, cfg *kubeadmapi.InitConfigur | |||
if certSpec.CAName != "" { | |||
return fmt.Errorf("This function should only be used for CAs, but cert %s has CA %s", certSpec.Name, certSpec.CAName) | |||
} | |||
glog.V(1).Infoln("creating a new certificate authority for %s", certSpec.Name) | |||
glog.V(1).Infof("creating a new certificate authority for %s", certSpec.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one complained about having %s
but not using Infof
@@ -485,7 +485,7 @@ func validateProtocol(protocol string) bool { | |||
if protocol == ProtocolTCP || protocol == ProtocolUDP || protocol == ProtocolSCTP { | |||
return true | |||
} | |||
glog.Errorf("Invalid entry's protocol: %s, supported protocols are [%s, %s]", protocol, ProtocolTCP, ProtocolUDP, ProtocolSCTP) | |||
glog.Errorf("Invalid entry's protocol: %s, supported protocols are [%s, %s, %s]", protocol, ProtocolTCP, ProtocolUDP, ProtocolSCTP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too few %s's
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#68263 fixes this but it's ok.
pkg/volume/azure_dd/azure_dd.go
Outdated
@@ -188,7 +188,7 @@ func getMaxDataDiskCount(instanceType string, sizeList *[]compute.VirtualMachine | |||
continue | |||
} | |||
if strings.ToUpper(*size.Name) == vmsize { | |||
glog.V(2).Infof("got a matching size in getMaxDataDiskCount, Name: %s, MaxDataDiskCount: %s", *size.Name, *size.MaxDataDiskCount) | |||
glog.V(2).Infof("got a matching size in getMaxDataDiskCount, Name: %v, MaxDataDiskCount: %v", *size.Name, *size.MaxDataDiskCount) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong datatype on the %'s - they're numeric not string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep the first %s
, *size.Name
is string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@duglin is this a linter error?
the rest LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%v
works just fine for strings, but I'll switch it back to %s
.
I don't think it was a linter error, is linter run as part of "make test" ?
The console showed this:
# k8s.io/kubernetes/cmd/kubeadm/app/phases/certs
cmd/kubeadm/app/phases/certs/certs.go:113: Verbose.Infoln call has possible formatting directive %s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is linter run as part of "make test"
i don't think so.
/release-note-none |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/kind cleanup
pkg/volume/azure_dd/azure_dd.go
Outdated
@@ -188,7 +188,7 @@ func getMaxDataDiskCount(instanceType string, sizeList *[]compute.VirtualMachine | |||
continue | |||
} | |||
if strings.ToUpper(*size.Name) == vmsize { | |||
glog.V(2).Infof("got a matching size in getMaxDataDiskCount, Name: %s, MaxDataDiskCount: %s", *size.Name, *size.MaxDataDiskCount) | |||
glog.V(2).Infof("got a matching size in getMaxDataDiskCount, Name: %v, MaxDataDiskCount: %v", *size.Name, *size.MaxDataDiskCount) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@duglin is this a linter error?
the rest LGTM.
/lgtm |
Signed-off-by: Doug Davis <dug@us.ibm.com>
addressed comment |
thanks |
/test pull-kubernetes-e2e-gce-device-plugin-gpu |
ping @neolit123 |
@duglin thanks for the ping. /assign @fabriziopandini |
sounds fair, definitely not critical for 1.12 |
ok to merge now that there's a thaw? |
/lgtm |
/assign @fabriziopandini @timothysc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
any chance of getting this one in? |
needs approve from @kubernetes/sig-azure too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
@brendanburns any chance you can review this? This minor PR has been there for a while now and I'd like to get it into 1.13 |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: andyzhangx, duglin, timothysc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-kubernetes-e2e-kops-aws |
/test pull-kubernetes-e2e-gce |
all tests are passing - who can push this over the finish line? |
Just some minor things I noticed while running the tests today - nothing big.
Signed-off-by: Doug Davis dug@us.ibm.com