mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Add namereference of PersistentVolume in PersistentVolumeClain
This commit is contained in:
@@ -874,6 +874,21 @@ var defaultNameReferencePathConfigs = []ReferencePathConfig{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
referencedGVK: schema.GroupVersionKind{
|
||||||
|
Version: "v1",
|
||||||
|
Kind: "PersistentVolume",
|
||||||
|
},
|
||||||
|
pathConfigs: []PathConfig{
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "PersistentVolumeClaim",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "volumeName"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddNameReferencePathConfigs adds extra reference path configs to the default one
|
// AddNameReferencePathConfigs adds extra reference path configs to the default one
|
||||||
|
|||||||
Reference in New Issue
Block a user