Skip to content

Commit 9700bc3

Browse files
author
gitirabassi
committed
added all the documented secret for storageclasses
1 parent ce31dac commit 9700bc3

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

pkg/transformers/namereferenceconfig.go

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,13 +367,6 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
367367
Path: []string{"spec", "initContainers", "env", "valueFrom", "secretKeyRef", "name"},
368368
CreateIfNotPresent: false,
369369
},
370-
{
371-
GroupVersionKind: &schema.GroupVersionKind{
372-
Kind: "StorageClass",
373-
},
374-
Path: []string{"parameters", "secretName"},
375-
CreateIfNotPresent: false,
376-
},
377370
{
378371
GroupVersionKind: &schema.GroupVersionKind{
379372
Version: "v1",
@@ -678,6 +671,34 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
678671
Path: []string{"imagePullSecrets", "name"},
679672
CreateIfNotPresent: false,
680673
},
674+
{
675+
GroupVersionKind: &schema.GroupVersionKind{
676+
Kind: "StorageClass",
677+
},
678+
Path: []string{"parameters", "secretName"}, // This is for Glusterfs,
679+
CreateIfNotPresent: false,
680+
},
681+
{
682+
GroupVersionKind: &schema.GroupVersionKind{
683+
Kind: "StorageClass",
684+
},
685+
Path: []string{"parameters", "adminSecretName"}, // This is for Quobyte, CephRBD, StorageOS
686+
CreateIfNotPresent: false,
687+
},
688+
{
689+
GroupVersionKind: &schema.GroupVersionKind{
690+
Kind: "StorageClass",
691+
},
692+
Path: []string{"parameters", "userSecretName"}, // This is for CephRBD
693+
CreateIfNotPresent: false,
694+
},
695+
{
696+
GroupVersionKind: &schema.GroupVersionKind{
697+
Kind: "StorageClass",
698+
},
699+
Path: []string{"parameters", "secretRef"}, // This is for ScaleIO
700+
CreateIfNotPresent: false,
701+
},
681702
},
682703
},
683704
{

0 commit comments

Comments
 (0)