mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Remove an empty line being output when exposing annotations and
labels via downward api volume
This commit is contained in:
@@ -65,7 +65,7 @@ func TestExtractFieldPathAsString(t *testing.T) {
|
||||
Labels: map[string]string{"key": "value"},
|
||||
},
|
||||
},
|
||||
expectedValue: "key=\"value\"\n",
|
||||
expectedValue: "key=\"value\"",
|
||||
},
|
||||
{
|
||||
name: "ok - labels bslash n",
|
||||
@@ -75,7 +75,7 @@ func TestExtractFieldPathAsString(t *testing.T) {
|
||||
Labels: map[string]string{"key": "value\n"},
|
||||
},
|
||||
},
|
||||
expectedValue: "key=\"value\\n\"\n",
|
||||
expectedValue: "key=\"value\\n\"",
|
||||
},
|
||||
{
|
||||
name: "ok - annotations",
|
||||
@@ -85,7 +85,7 @@ func TestExtractFieldPathAsString(t *testing.T) {
|
||||
Annotations: map[string]string{"builder": "john-doe"},
|
||||
},
|
||||
},
|
||||
expectedValue: "builder=\"john-doe\"\n",
|
||||
expectedValue: "builder=\"john-doe\"",
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user