mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 18:10:59 +00:00
remove patches and imageTags from kustomization.yaml
This commit is contained in:
@@ -162,7 +162,7 @@ configMapGenerator:
|
||||
- name: app-config
|
||||
files:
|
||||
- configmap/app-init.ini
|
||||
imageTags:
|
||||
images:
|
||||
- name: nginx
|
||||
newTag: 1.8.0`)
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ bases:
|
||||
- ../base
|
||||
patchesStrategicMerge:
|
||||
- deployment/deployment.yaml
|
||||
imageTags:
|
||||
images:
|
||||
- name: whatever
|
||||
newTag: 1.8.0
|
||||
`)
|
||||
|
||||
@@ -58,13 +58,12 @@ func NewKustTarget(
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
content = types.DealWithDeprecatedFields(content)
|
||||
var k types.Kustomization
|
||||
err = unmarshal(content, &k)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
k.DealWithDeprecatedFields()
|
||||
msgs, errs := k.EnforceFields()
|
||||
if len(errs) > 0 {
|
||||
return nil, fmt.Errorf(strings.Join(errs, "\n"))
|
||||
|
||||
Reference in New Issue
Block a user