Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com> Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>
This commit is contained in:
committed by
Kishen Viswanathan
parent
7164c728c0
commit
9d10ddb060
@@ -221,7 +221,7 @@ func assertCleanup(ns string, selectors ...string) {
|
||||
}
|
||||
err := wait.PollImmediate(500*time.Millisecond, 1*time.Minute, verifyCleanupFunc)
|
||||
if err != nil {
|
||||
framework.Failf(e.Error())
|
||||
framework.Fail(e.Error())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -396,7 +396,7 @@ var _ = SIGDescribe("Kubectl client", func() {
|
||||
})
|
||||
ginkgo.By("creating all guestbook components")
|
||||
forEachGBFile(func(contents string) {
|
||||
framework.Logf(contents)
|
||||
framework.Logf("%s", contents)
|
||||
e2ekubectl.RunKubectlOrDieInput(ns, contents, "create", "-f", "-")
|
||||
})
|
||||
|
||||
@@ -1630,7 +1630,7 @@ metadata:
|
||||
ginkgo.By("verifying the pod has the label " + labelName + " with the value " + labelValue)
|
||||
output := e2ekubectl.RunKubectlOrDie(ns, "get", "pod", pausePodName, "-L", labelName)
|
||||
if !strings.Contains(output, labelValue) {
|
||||
framework.Failf("Failed updating label " + labelName + " to the pod " + pausePodName)
|
||||
framework.Fail("Failed updating label " + labelName + " to the pod " + pausePodName)
|
||||
}
|
||||
|
||||
ginkgo.By("removing the label " + labelName + " of a pod")
|
||||
@@ -1638,7 +1638,7 @@ metadata:
|
||||
ginkgo.By("verifying the pod doesn't have the label " + labelName)
|
||||
output = e2ekubectl.RunKubectlOrDie(ns, "get", "pod", pausePodName, "-L", labelName)
|
||||
if strings.Contains(output, labelValue) {
|
||||
framework.Failf("Failed removing label " + labelName + " of the pod " + pausePodName)
|
||||
framework.Fail("Failed removing label " + labelName + " of the pod " + pausePodName)
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -1915,7 +1915,7 @@ metadata:
|
||||
ginkgo.By("verifying the node doesn't have the taint " + testTaint.Key)
|
||||
output = runKubectlRetryOrDie(ns, "describe", "node", nodeName)
|
||||
if strings.Contains(output, testTaint.Key) {
|
||||
framework.Failf("Failed removing taint " + testTaint.Key + " of the node " + nodeName)
|
||||
framework.Fail("Failed removing taint " + testTaint.Key + " of the node " + nodeName)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1983,7 +1983,7 @@ metadata:
|
||||
ginkgo.By("verifying the node doesn't have the taints that have the same key " + testTaint.Key)
|
||||
output = runKubectlRetryOrDie(ns, "describe", "node", nodeName)
|
||||
if strings.Contains(output, testTaint.Key) {
|
||||
framework.Failf("Failed removing taints " + testTaint.Key + " of the node " + nodeName)
|
||||
framework.Fail("Failed removing taints " + testTaint.Key + " of the node " + nodeName)
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -2330,7 +2330,7 @@ const applyTestLabel = "kubectl.kubernetes.io/apply-test"
|
||||
func readReplicationControllerFromString(contents string) *v1.ReplicationController {
|
||||
rc := v1.ReplicationController{}
|
||||
if err := yaml.Unmarshal([]byte(contents), &rc); err != nil {
|
||||
framework.Failf(err.Error())
|
||||
framework.Fail(err.Error())
|
||||
}
|
||||
|
||||
return &rc
|
||||
|
||||
Reference in New Issue
Block a user