mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 18:10:59 +00:00
change "bases:" to "resources:"
per https://github.com/monopole/kustomize/blob/master/docs/fields.md#bases no big deal
This commit is contained in:
@@ -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
|
||||||
`)
|
`)
|
||||||
|
|||||||
Reference in New Issue
Block a user