mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 17:52:12 +00:00
Update complexcomposition_test.go
This commit is contained in:
@@ -72,7 +72,7 @@ spec:
|
|||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
|
|
||||||
func writeConfigOverlay(th *kusttest_test.KustTestHarness) {
|
func writeConfigFromEnvOverlay(th *kusttest_test.KustTestHarness) {
|
||||||
th.WriteK("/app/config", `
|
th.WriteK("/app/config", `
|
||||||
resources:
|
resources:
|
||||||
- ../base
|
- ../base
|
||||||
@@ -140,9 +140,9 @@ patchesJson6902:
|
|||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
|
|
||||||
func writePatchConfig(th *kusttest_test.KustTestHarness) {
|
func writePatchingOverlays(th *kusttest_test.KustTestHarness) {
|
||||||
writeStorageOverlay(th)
|
writeStorageOverlay(th)
|
||||||
writeConfigOverlay(th)
|
writeConfigFromEnvOverlay(th)
|
||||||
writeTolerationsOverlay(th)
|
writeTolerationsOverlay(th)
|
||||||
writeHTTPSOverlay(th)
|
writeHTTPSOverlay(th)
|
||||||
}
|
}
|
||||||
@@ -185,7 +185,7 @@ func writePatchConfig(th *kusttest_test.KustTestHarness) {
|
|||||||
func TestComplexComposition_Dev_Failure(t *testing.T) {
|
func TestComplexComposition_Dev_Failure(t *testing.T) {
|
||||||
th := kusttest_test.NewKustTestHarness(t, "/app/dev")
|
th := kusttest_test.NewKustTestHarness(t, "/app/dev")
|
||||||
writeStatefulSetBase(th)
|
writeStatefulSetBase(th)
|
||||||
writePatchConfig(th)
|
writePatchingOverlays(th)
|
||||||
th.WriteK("/app/dev", `
|
th.WriteK("/app/dev", `
|
||||||
resources:
|
resources:
|
||||||
- ../storage
|
- ../storage
|
||||||
@@ -239,7 +239,7 @@ spec:
|
|||||||
func TestComplexComposition_Prod_Failure(t *testing.T) {
|
func TestComplexComposition_Prod_Failure(t *testing.T) {
|
||||||
th := kusttest_test.NewKustTestHarness(t, "/app/prod")
|
th := kusttest_test.NewKustTestHarness(t, "/app/prod")
|
||||||
writeStatefulSetBase(th)
|
writeStatefulSetBase(th)
|
||||||
writePatchConfig(th)
|
writePatchingOverlays(th)
|
||||||
|
|
||||||
th.WriteK("/app/prod", `
|
th.WriteK("/app/prod", `
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
Reference in New Issue
Block a user