mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
add namerefs for hpa
This commit is contained in:
@@ -23,6 +23,48 @@ import (
|
|||||||
// defaultNameReferencePathConfigs is the default configuration for updating
|
// defaultNameReferencePathConfigs is the default configuration for updating
|
||||||
// the fields reference the name of other resources.
|
// the fields reference the name of other resources.
|
||||||
var defaultNameReferencePathConfigs = []referencePathConfig{
|
var defaultNameReferencePathConfigs = []referencePathConfig{
|
||||||
|
{
|
||||||
|
referencedGVK: schema.GroupVersionKind{
|
||||||
|
Kind: "Deployment",
|
||||||
|
},
|
||||||
|
pathConfigs: []PathConfig{
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "HorizontalPodAutoscaler",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "scaleTargetRef", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
referencedGVK: schema.GroupVersionKind{
|
||||||
|
Kind: "ReplicationController",
|
||||||
|
},
|
||||||
|
pathConfigs: []PathConfig{
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "HorizontalPodAutoscaler",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "scaleTargetRef", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
referencedGVK: schema.GroupVersionKind{
|
||||||
|
Kind: "ReplicaSet",
|
||||||
|
},
|
||||||
|
pathConfigs: []PathConfig{
|
||||||
|
{
|
||||||
|
GroupVersionKind: &schema.GroupVersionKind{
|
||||||
|
Kind: "HorizontalPodAutoscaler",
|
||||||
|
},
|
||||||
|
Path: []string{"spec", "scaleTargetRef", "name"},
|
||||||
|
CreateIfNotPresent: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
referencedGVK: schema.GroupVersionKind{
|
referencedGVK: schema.GroupVersionKind{
|
||||||
Version: "v1",
|
Version: "v1",
|
||||||
|
|||||||
Reference in New Issue
Block a user