Merge pull request #614 from richardmarshall/projected_volume_secrets

Add projected secret path to transformer config
This commit is contained in:
Kubernetes Prow Robot
2018-12-10 14:35:01 -08:00
committed by GitHub
2 changed files with 16 additions and 0 deletions

View File

@@ -150,6 +150,8 @@ nameReference:
kind: Deployment
- path: spec/template/spec/imagePullSecrets/name
kind: Deployment
- path: spec/template/spec/volumes/projected/sources/secret/name
kind: Deployment
- path: spec/template/spec/volumes/secret/secretName
kind: ReplicaSet
- path: spec/template/spec/containers/env/valueFrom/secretKeyRef/name
@@ -186,6 +188,8 @@ nameReference:
kind: StatefulSet
- path: spec/template/spec/imagePullSecrets/name
kind: StatefulSet
- path: spec/template/spec/volumes/projected/sources/secret/name
kind: StatefulSet
- path: spec/template/spec/volumes/secret/secretName
kind: Job
- path: spec/template/spec/containers/env/valueFrom/secretKeyRef/name

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",
},
},
},
},