Merge pull request #31060 from rata/secret-configmap-file-mode

Automatic merge from submit-queue

Fix coding style

cc @pmorie

**What this PR does / why we need it**: Fixes case on a variable name, it's simple and adjust the code to the coding style.

**Release note**:
<!--  Steps to write your release note:
1. Use the release-note-* labels to set the release note state (if you have access) 
2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
-->
```NONE
```
pull/6/head
Kubernetes Submit Queue 2016-08-22 06:19:47 -07:00 committed by GitHub
commit cfe7a4391a
2 changed files with 10 additions and 10 deletions

View File

@ -36,7 +36,7 @@ import (
)
func TestMakePayload(t *testing.T) {
case_mapping_mode := int32(0400)
caseMappingMode := int32(0400)
cases := []struct {
name string
mappings []api.KeyToPath
@ -168,12 +168,12 @@ func TestMakePayload(t *testing.T) {
{
Key: "foo",
Path: "foo.txt",
Mode: &case_mapping_mode,
Mode: &caseMappingMode,
},
{
Key: "bar",
Path: "bar.bin",
Mode: &case_mapping_mode,
Mode: &caseMappingMode,
},
},
configMap: &api.ConfigMap{
@ -184,8 +184,8 @@ func TestMakePayload(t *testing.T) {
},
mode: 0644,
payload: map[string]util.FileProjection{
"foo.txt": {Data: []byte("foo"), Mode: case_mapping_mode},
"bar.bin": {Data: []byte("bar"), Mode: case_mapping_mode},
"foo.txt": {Data: []byte("foo"), Mode: caseMappingMode},
"bar.bin": {Data: []byte("bar"), Mode: caseMappingMode},
},
success: true,
},

View File

@ -39,7 +39,7 @@ import (
)
func TestMakePayload(t *testing.T) {
case_mapping_mode := int32(0400)
caseMappingMode := int32(0400)
cases := []struct {
name string
mappings []api.KeyToPath
@ -171,12 +171,12 @@ func TestMakePayload(t *testing.T) {
{
Key: "foo",
Path: "foo.txt",
Mode: &case_mapping_mode,
Mode: &caseMappingMode,
},
{
Key: "bar",
Path: "bar.bin",
Mode: &case_mapping_mode,
Mode: &caseMappingMode,
},
},
secret: &api.Secret{
@ -187,8 +187,8 @@ func TestMakePayload(t *testing.T) {
},
mode: 0644,
payload: map[string]util.FileProjection{
"foo.txt": {Data: []byte("foo"), Mode: case_mapping_mode},
"bar.bin": {Data: []byte("bar"), Mode: case_mapping_mode},
"foo.txt": {Data: []byte("foo"), Mode: caseMappingMode},
"bar.bin": {Data: []byte("bar"), Mode: caseMappingMode},
},
success: true,
},