mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #82121 from Zhuzhenghao/typo/bound
Typo fix: binded -> bound
This commit is contained in:
commit
4b6c32c097
@ -510,7 +510,7 @@ func (t StorageClassTest) TestBindingWaitForFirstConsumerMultiPVC(claims []*v1.P
|
|||||||
node, err := t.Client.CoreV1().Nodes().Get(pod.Spec.NodeName, metav1.GetOptions{})
|
node, err := t.Client.CoreV1().Nodes().Get(pod.Spec.NodeName, metav1.GetOptions{})
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
|
|
||||||
ginkgo.By("re-checking the claims to see they binded")
|
ginkgo.By("re-checking the claims to see they bound")
|
||||||
var pvs []*v1.PersistentVolume
|
var pvs []*v1.PersistentVolume
|
||||||
for _, claim := range createdClaims {
|
for _, claim := range createdClaims {
|
||||||
// Get new copy of the claim
|
// Get new copy of the claim
|
||||||
|
@ -61,7 +61,7 @@ var _ = KubeadmDescribe("proxy addon", func() {
|
|||||||
ExpectServiceAccount(f.ClientSet, kubeSystemNamespace, kubeProxyServiceAccountName)
|
ExpectServiceAccount(f.ClientSet, kubeSystemNamespace, kubeProxyServiceAccountName)
|
||||||
})
|
})
|
||||||
|
|
||||||
ginkgo.It("should be binded to the system:node-proxier cluster role", func() {
|
ginkgo.It("should be bound to the system:node-proxier cluster role", func() {
|
||||||
ExpectClusterRoleBindingWithSubjectAndRole(f.ClientSet,
|
ExpectClusterRoleBindingWithSubjectAndRole(f.ClientSet,
|
||||||
kubeProxyClusterRoleBindingName,
|
kubeProxyClusterRoleBindingName,
|
||||||
rbacv1.ServiceAccountKind, kubeProxyServiceAccountName,
|
rbacv1.ServiceAccountKind, kubeProxyServiceAccountName,
|
||||||
|
@ -1009,14 +1009,14 @@ func TestBindPlugin(t *testing.T) {
|
|||||||
}
|
}
|
||||||
if test.expectBoundByScheduler {
|
if test.expectBoundByScheduler {
|
||||||
if pod.Annotations[bindPluginAnnotation] != "" {
|
if pod.Annotations[bindPluginAnnotation] != "" {
|
||||||
t.Errorf("test #%v: Expected the pod to be binded by scheduler instead of by bindplugin %s", i, pod.Annotations[bindPluginAnnotation])
|
t.Errorf("test #%v: Expected the pod to be bound by scheduler instead of by bindplugin %s", i, pod.Annotations[bindPluginAnnotation])
|
||||||
}
|
}
|
||||||
if bindPlugin1.numBindCalled != 1 || bindPlugin2.numBindCalled != 1 {
|
if bindPlugin1.numBindCalled != 1 || bindPlugin2.numBindCalled != 1 {
|
||||||
t.Errorf("test #%v: Expected each bind plugin to be called once, was called %d and %d times.", i, bindPlugin1.numBindCalled, bindPlugin2.numBindCalled)
|
t.Errorf("test #%v: Expected each bind plugin to be called once, was called %d and %d times.", i, bindPlugin1.numBindCalled, bindPlugin2.numBindCalled)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if pod.Annotations[bindPluginAnnotation] != test.expectBindPluginName {
|
if pod.Annotations[bindPluginAnnotation] != test.expectBindPluginName {
|
||||||
t.Errorf("test #%v: Expected the pod to be binded by bindplugin %s instead of by bindplugin %s", i, test.expectBindPluginName, pod.Annotations[bindPluginAnnotation])
|
t.Errorf("test #%v: Expected the pod to be bound by bindplugin %s instead of by bindplugin %s", i, test.expectBindPluginName, pod.Annotations[bindPluginAnnotation])
|
||||||
}
|
}
|
||||||
if bindPlugin1.numBindCalled != 1 {
|
if bindPlugin1.numBindCalled != 1 {
|
||||||
t.Errorf("test #%v: Expected %s to be called once, was called %d times.", i, bindPlugin1.Name(), bindPlugin1.numBindCalled)
|
t.Errorf("test #%v: Expected %s to be called once, was called %d times.", i, bindPlugin1.Name(), bindPlugin1.numBindCalled)
|
||||||
|
Loading…
Reference in New Issue
Block a user