From f528fdd2189e877dfb8a2de21b6989853e8e8d26 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Thu, 28 Dec 2023 01:20:00 +0100 Subject: [PATCH] fix: kustomize build error for examples/analysis. (#42) Signed-off-by: Hannah Troisi Co-authored-by: Hannah Troisi --- examples/analysis/kustomization.yaml | 5 +---- examples/{ => base}/canary/canary-ingress.yaml | 0 examples/{ => base}/canary/canary-preview-ingress.yaml | 0 examples/{ => base}/canary/canary-preview-service.yaml | 0 examples/{ => base}/canary/canary-service.yaml | 0 examples/base/kustomization.yaml | 8 ++++++++ examples/canary/kustomization.yaml | 5 +---- 7 files changed, 10 insertions(+), 8 deletions(-) rename examples/{ => base}/canary/canary-ingress.yaml (100%) rename examples/{ => base}/canary/canary-preview-ingress.yaml (100%) rename examples/{ => base}/canary/canary-preview-service.yaml (100%) rename examples/{ => base}/canary/canary-service.yaml (100%) create mode 100644 examples/base/kustomization.yaml diff --git a/examples/analysis/kustomization.yaml b/examples/analysis/kustomization.yaml index 13e9fac5e..f43f8758a 100644 --- a/examples/analysis/kustomization.yaml +++ b/examples/analysis/kustomization.yaml @@ -2,9 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: +- ../base - rollout-with-analysis.yaml - analysis-success-rate.yaml -- ../canary/canary-service.yaml -- ../canary/canary-ingress.yaml -- ../canary/canary-preview-service.yaml -- ../canary/canary-preview-ingress.yaml diff --git a/examples/canary/canary-ingress.yaml b/examples/base/canary/canary-ingress.yaml similarity index 100% rename from examples/canary/canary-ingress.yaml rename to examples/base/canary/canary-ingress.yaml diff --git a/examples/canary/canary-preview-ingress.yaml b/examples/base/canary/canary-preview-ingress.yaml similarity index 100% rename from examples/canary/canary-preview-ingress.yaml rename to examples/base/canary/canary-preview-ingress.yaml diff --git a/examples/canary/canary-preview-service.yaml b/examples/base/canary/canary-preview-service.yaml similarity index 100% rename from examples/canary/canary-preview-service.yaml rename to examples/base/canary/canary-preview-service.yaml diff --git a/examples/canary/canary-service.yaml b/examples/base/canary/canary-service.yaml similarity index 100% rename from examples/canary/canary-service.yaml rename to examples/base/canary/canary-service.yaml diff --git a/examples/base/kustomization.yaml b/examples/base/kustomization.yaml new file mode 100644 index 000000000..ce38c76f0 --- /dev/null +++ b/examples/base/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- canary/canary-service.yaml +- canary/canary-ingress.yaml +- canary/canary-preview-service.yaml +- canary/canary-preview-ingress.yaml diff --git a/examples/canary/kustomization.yaml b/examples/canary/kustomization.yaml index a5f2e5e02..485e99516 100644 --- a/examples/canary/kustomization.yaml +++ b/examples/canary/kustomization.yaml @@ -2,8 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: +- ../base - canary-rollout.yaml -- canary-service.yaml -- canary-ingress.yaml -- canary-preview-service.yaml -- canary-preview-ingress.yaml