Merge pull request #112603 from humblec/var-3
fix typos in pkg/validation and test/cmd
This commit is contained in:
@@ -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",
|
||||
|
@@ -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
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user