Commit cfe7a439 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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 ```
parents 029f9b5b 3366821d
......@@ -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,
},
......
......@@ -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,
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment