mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fix spelling errors
More spelling fixes
This commit is contained in:
parent
d82c3023a8
commit
cd1450b3ec
@ -26,9 +26,10 @@ import (
|
|||||||
cache "k8s.io/kubernetes/pkg/client/cache"
|
cache "k8s.io/kubernetes/pkg/client/cache"
|
||||||
"k8s.io/kubernetes/pkg/controller"
|
"k8s.io/kubernetes/pkg/controller"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
|
"github.com/golang/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// worker runs a worker thread that just dequeues items, processes them, and marks them done.
|
// worker runs a worker thread that just dequeues items, processes them, and marks them done.
|
||||||
|
@ -1799,7 +1799,7 @@ func Cleanup(filePath, ns string, selectors ...string) {
|
|||||||
AssertCleanup(ns, selectors...)
|
AssertCleanup(ns, selectors...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Asserts that cleanup of a namespace wrt selectors occured.
|
// Asserts that cleanup of a namespace wrt selectors occurred.
|
||||||
func AssertCleanup(ns string, selectors ...string) {
|
func AssertCleanup(ns string, selectors ...string) {
|
||||||
var nsArg string
|
var nsArg string
|
||||||
if ns != "" {
|
if ns != "" {
|
||||||
@ -3734,7 +3734,7 @@ func RestartApiserver(c *client.Client) error {
|
|||||||
if ProviderIs("gce", "aws") {
|
if ProviderIs("gce", "aws") {
|
||||||
return sshRestartMaster()
|
return sshRestartMaster()
|
||||||
}
|
}
|
||||||
// GKE doesn't allow ssh accesss, so use a same-version master
|
// GKE doesn't allow ssh access, so use a same-version master
|
||||||
// upgrade to teardown/recreate master.
|
// upgrade to teardown/recreate master.
|
||||||
v, err := c.ServerVersion()
|
v, err := c.ServerVersion()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -449,7 +449,7 @@ func (p *petSetTester) execInPets(ps *apps.PetSet, cmd string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *petSetTester) saturate(ps *apps.PetSet) {
|
func (p *petSetTester) saturate(ps *apps.PetSet) {
|
||||||
// TOOD: Watch events and check that creation timestamps don't overlap
|
// TODO: Watch events and check that creation timestamps don't overlap
|
||||||
for i := 0; i < ps.Spec.Replicas; i++ {
|
for i := 0; i < ps.Spec.Replicas; i++ {
|
||||||
framework.Logf("Waiting for pet at index " + fmt.Sprintf("%v", i+1) + " to enter Running")
|
framework.Logf("Waiting for pet at index " + fmt.Sprintf("%v", i+1) + " to enter Running")
|
||||||
p.waitForRunning(i+1, ps)
|
p.waitForRunning(i+1, ps)
|
||||||
|
@ -180,7 +180,7 @@ func TestCascadingDeletion(t *testing.T) {
|
|||||||
t.Fatalf("Failed to create Pod: %v", err)
|
t.Fatalf("Failed to create Pod: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// this pod shouldn't be cascadingly deleted, because it has a valid referenece.
|
// this pod shouldn't be cascadingly deleted, because it has a valid reference.
|
||||||
pod = newPod(oneValidOwnerPodName, []v1.OwnerReference{
|
pod = newPod(oneValidOwnerPodName, []v1.OwnerReference{
|
||||||
{UID: toBeDeletedRC.ObjectMeta.UID, Name: toBeDeletedRCName},
|
{UID: toBeDeletedRC.ObjectMeta.UID, Name: toBeDeletedRCName},
|
||||||
{UID: remainingRC.ObjectMeta.UID, Name: remainingRCName},
|
{UID: remainingRC.ObjectMeta.UID, Name: remainingRCName},
|
||||||
|
@ -37,7 +37,7 @@ func TestKubectlValidation(t *testing.T) {
|
|||||||
{`{"apiVersion": "v1", "kind": "Pod"}`, false},
|
{`{"apiVersion": "v1", "kind": "Pod"}`, false},
|
||||||
|
|
||||||
// The following test the experimental api.
|
// The following test the experimental api.
|
||||||
// TOOD: Replace with something more robust. These may move.
|
// TODO: Replace with something more robust. These may move.
|
||||||
{`{"apiVersion": "extensions/v1beta1", "kind": "Ingress"}`, false},
|
{`{"apiVersion": "extensions/v1beta1", "kind": "Ingress"}`, false},
|
||||||
{`{"apiVersion": "extensions/v1beta1", "kind": "Job"}`, false},
|
{`{"apiVersion": "extensions/v1beta1", "kind": "Job"}`, false},
|
||||||
{`{"apiVersion": "vNotAVersion", "kind": "Job"}`, true},
|
{`{"apiVersion": "vNotAVersion", "kind": "Job"}`, true},
|
||||||
|
@ -48,7 +48,7 @@ func init() {
|
|||||||
requireEtcd()
|
requireEtcd()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Several tests in this file are configurable by enviroment variables:
|
// Several tests in this file are configurable by environment variables:
|
||||||
// KUBE_INTEGRATION_PV_OBJECTS - nr. of PVs/PVCs to be created
|
// KUBE_INTEGRATION_PV_OBJECTS - nr. of PVs/PVCs to be created
|
||||||
// (100 by default)
|
// (100 by default)
|
||||||
// KUBE_INTEGRATION_PV_SYNC_PERIOD - volume controller sync period
|
// KUBE_INTEGRATION_PV_SYNC_PERIOD - volume controller sync period
|
||||||
|
Loading…
Reference in New Issue
Block a user