Skip to content

Commit 94ed0fe

Browse files
committed
Add namereference of PersistentVolume in PersistentVolumeClain
1 parent bb8233c commit 94ed0fe

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pkg/transformers/namereferenceconfig.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,21 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
874874
},
875875
},
876876
},
877+
{
878+
referencedGVK: schema.GroupVersionKind{
879+
Version: "v1",
880+
Kind: "PersistentVolume",
881+
},
882+
pathConfigs: []PathConfig{
883+
{
884+
GroupVersionKind: &schema.GroupVersionKind{
885+
Kind: "PersistentVolumeClaim",
886+
},
887+
Path: []string{"spec", "volumeName"},
888+
CreateIfNotPresent: false,
889+
},
890+
},
891+
},
877892
}
878893

879894
// AddNameReferencePathConfigs adds extra reference path configs to the default one

0 commit comments

Comments
 (0)