Add projected secret path to transformer config

Projected volumes can include values sourced from secrets that might be
managed by kustomize. To support this use case this patch updates the
name reference transformer configuration to include a field spec for
projected secrets.
This commit is contained in:
Richard Marshall
2018-12-10 12:41:58 -08:00
parent 63e4e5ccaa
commit 506c4a330d
2 changed files with 16 additions and 0 deletions

View File

@@ -148,6 +148,9 @@ func TestNameReferenceHappyRun(t *testing.T) {
"configMap": map[string]interface{}{
"name": "cm2",
},
"secret": map[string]interface{}{
"name": "secret1",
},
},
},
"secret": map[string]interface{}{
@@ -184,6 +187,9 @@ func TestNameReferenceHappyRun(t *testing.T) {
"configMap": map[string]interface{}{
"name": "cm2",
},
"secret": map[string]interface{}{
"name": "secret1",
},
},
},
},
@@ -307,6 +313,9 @@ func TestNameReferenceHappyRun(t *testing.T) {
"configMap": map[string]interface{}{
"name": "someprefix-cm2-somehash",
},
"secret": map[string]interface{}{
"name": "someprefix-secret1-somehash",
},
},
},
"secret": map[string]interface{}{
@@ -343,6 +352,9 @@ func TestNameReferenceHappyRun(t *testing.T) {
"configMap": map[string]interface{}{
"name": "someprefix-cm2-somehash",
},
"secret": map[string]interface{}{
"name": "someprefix-secret1-somehash",
},
},
},
},