Skip to content

Commit

Permalink
added all the documented secret for storageclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
gitirabassi committed Aug 29, 2018
1 parent ce31dac commit 9700bc3
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions pkg/transformers/namereferenceconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,6 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
Path: []string{"spec", "initContainers", "env", "valueFrom", "secretKeyRef", "name"},
CreateIfNotPresent: false,
},
{
GroupVersionKind: &schema.GroupVersionKind{
Kind: "StorageClass",
},
Path: []string{"parameters", "secretName"},
CreateIfNotPresent: false,
},
{
GroupVersionKind: &schema.GroupVersionKind{
Version: "v1",
Expand Down Expand Up @@ -678,6 +671,34 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
Path: []string{"imagePullSecrets", "name"},
CreateIfNotPresent: false,
},
{
GroupVersionKind: &schema.GroupVersionKind{
Kind: "StorageClass",
},
Path: []string{"parameters", "secretName"}, // This is for Glusterfs,
CreateIfNotPresent: false,
},
{
GroupVersionKind: &schema.GroupVersionKind{
Kind: "StorageClass",
},
Path: []string{"parameters", "adminSecretName"}, // This is for Quobyte, CephRBD, StorageOS
CreateIfNotPresent: false,
},
{
GroupVersionKind: &schema.GroupVersionKind{
Kind: "StorageClass",
},
Path: []string{"parameters", "userSecretName"}, // This is for CephRBD
CreateIfNotPresent: false,
},
{
GroupVersionKind: &schema.GroupVersionKind{
Kind: "StorageClass",
},
Path: []string{"parameters", "secretRef"}, // This is for ScaleIO
CreateIfNotPresent: false,
},
},
},
{
Expand Down

0 comments on commit 9700bc3

Please sign in to comment.