mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
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 ```
This commit is contained in:
commit
cfe7a4391a
@ -36,7 +36,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestMakePayload(t *testing.T) {
|
func TestMakePayload(t *testing.T) {
|
||||||
case_mapping_mode := int32(0400)
|
caseMappingMode := int32(0400)
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
name string
|
name string
|
||||||
mappings []api.KeyToPath
|
mappings []api.KeyToPath
|
||||||
@ -168,12 +168,12 @@ func TestMakePayload(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Key: "foo",
|
Key: "foo",
|
||||||
Path: "foo.txt",
|
Path: "foo.txt",
|
||||||
Mode: &case_mapping_mode,
|
Mode: &caseMappingMode,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Key: "bar",
|
Key: "bar",
|
||||||
Path: "bar.bin",
|
Path: "bar.bin",
|
||||||
Mode: &case_mapping_mode,
|
Mode: &caseMappingMode,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
configMap: &api.ConfigMap{
|
configMap: &api.ConfigMap{
|
||||||
@ -184,8 +184,8 @@ func TestMakePayload(t *testing.T) {
|
|||||||
},
|
},
|
||||||
mode: 0644,
|
mode: 0644,
|
||||||
payload: map[string]util.FileProjection{
|
payload: map[string]util.FileProjection{
|
||||||
"foo.txt": {Data: []byte("foo"), Mode: case_mapping_mode},
|
"foo.txt": {Data: []byte("foo"), Mode: caseMappingMode},
|
||||||
"bar.bin": {Data: []byte("bar"), Mode: case_mapping_mode},
|
"bar.bin": {Data: []byte("bar"), Mode: caseMappingMode},
|
||||||
},
|
},
|
||||||
success: true,
|
success: true,
|
||||||
},
|
},
|
||||||
|
@ -39,7 +39,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestMakePayload(t *testing.T) {
|
func TestMakePayload(t *testing.T) {
|
||||||
case_mapping_mode := int32(0400)
|
caseMappingMode := int32(0400)
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
name string
|
name string
|
||||||
mappings []api.KeyToPath
|
mappings []api.KeyToPath
|
||||||
@ -171,12 +171,12 @@ func TestMakePayload(t *testing.T) {
|
|||||||
{
|
{
|
||||||
Key: "foo",
|
Key: "foo",
|
||||||
Path: "foo.txt",
|
Path: "foo.txt",
|
||||||
Mode: &case_mapping_mode,
|
Mode: &caseMappingMode,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Key: "bar",
|
Key: "bar",
|
||||||
Path: "bar.bin",
|
Path: "bar.bin",
|
||||||
Mode: &case_mapping_mode,
|
Mode: &caseMappingMode,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
secret: &api.Secret{
|
secret: &api.Secret{
|
||||||
@ -187,8 +187,8 @@ func TestMakePayload(t *testing.T) {
|
|||||||
},
|
},
|
||||||
mode: 0644,
|
mode: 0644,
|
||||||
payload: map[string]util.FileProjection{
|
payload: map[string]util.FileProjection{
|
||||||
"foo.txt": {Data: []byte("foo"), Mode: case_mapping_mode},
|
"foo.txt": {Data: []byte("foo"), Mode: caseMappingMode},
|
||||||
"bar.bin": {Data: []byte("bar"), Mode: case_mapping_mode},
|
"bar.bin": {Data: []byte("bar"), Mode: caseMappingMode},
|
||||||
},
|
},
|
||||||
success: true,
|
success: true,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user