Merge pull request #112603 from humblec/var-3

fix typos in pkg/validation and test/cmd
This commit is contained in:
Kubernetes Prow Robot
2022-09-21 19:11:02 -07:00
committed by GitHub
6 changed files with 8 additions and 8 deletions

View File

@@ -550,7 +550,7 @@ func TestNodeSelectorRequirementKeyExistsInNodeSelectorTerms(t *testing.T) {
exists: true,
},
{
name: "key existence in terms with one of the keys specfied",
name: "key existence in terms with one of the keys specified",
reqs: []v1.NodeSelectorRequirement{
{
Key: "key1",

View File

@@ -6417,7 +6417,7 @@ func validateWindowsHostProcessPod(podSpec *core.PodSpec, fieldPath *field.Path,
switch {
case containerHostProcess != nil && *containerHostProcess:
// Container explitly sets hostProcess=true
// Container explicitly sets hostProcess=true
hostProcessContainerCount++
case containerHostProcess == nil && podHostProcess != nil && *podHostProcess:
// Container inherits hostProcess=true from pod settings

View File

@@ -13384,7 +13384,7 @@ func TestValidateServiceCreate(t *testing.T) {
numErrs: 0,
},
{
name: "nagative healthCheckNodePort field",
name: "negative healthCheckNodePort field",
tweakSvc: func(s *core.Service) {
s.Spec.Type = core.ServiceTypeLoadBalancer
s.Spec.AllocateLoadBalancerNodePorts = utilpointer.BoolPtr(true)
@@ -13394,7 +13394,7 @@ func TestValidateServiceCreate(t *testing.T) {
numErrs: 1,
},
{
name: "nagative healthCheckNodePort field",
name: "negative healthCheckNodePort field",
tweakSvc: func(s *core.Service) {
s.Spec.Type = core.ServiceTypeLoadBalancer
s.Spec.AllocateLoadBalancerNodePorts = utilpointer.BoolPtr(true)
@@ -13528,7 +13528,7 @@ func TestValidateServiceCreate(t *testing.T) {
},
numErrs: 0,
},
/* cluster IPs. some tests are reduntant */
/* cluster IPs. some tests are redundant */
{
name: "invalid, garbage single ip",
tweakSvc: func(s *core.Service) {