change "bases:" to "resources:"

per https://github.com/monopole/kustomize/blob/master/docs/fields.md#bases

no big deal
This commit is contained in:
Jeff Regan
2019-09-13 10:47:35 -07:00
committed by GitHub
parent e898c5221b
commit e011f3be4f

View File

@@ -42,26 +42,26 @@ import (
func TestBaseReuseNameConflict(t *testing.T) { func TestBaseReuseNameConflict(t *testing.T) {
th := kusttest_test.NewKustTestHarness(t, "/app") th := kusttest_test.NewKustTestHarness(t, "/app")
th.WriteK("/app/component1/base", ` th.WriteK("/app/component1/base", `
bases: resources:
- ../../shared - ../../shared
namePrefix: component1- namePrefix: component1-
`) `)
th.WriteK("/app/component1/overlay", ` th.WriteK("/app/component1/overlay", `
bases: resources:
- ../base - ../base
namePrefix: overlay- namePrefix: overlay-
`) `)
th.WriteK("/app/component2/base", ` th.WriteK("/app/component2/base", `
bases: resources:
- ../../shared - ../../shared
namePrefix: component2- namePrefix: component2-
`) `)
th.WriteK("/app/component2/overlay", ` th.WriteK("/app/component2/overlay", `
bases: resources:
- ../base - ../base
namePrefix: overlay- namePrefix: overlay-
@@ -112,7 +112,7 @@ spec:
`) `)
th.WriteK("/app", ` th.WriteK("/app", `
bases: resources:
- component1/overlay - component1/overlay
- component2/overlay - component2/overlay
`) `)