diff --git a/evaluation/kubernetes/apps/samples/bookinfo/with-passthrough-filter/ks.yaml b/evaluation/kubernetes/apps/samples/bookinfo/with-passthrough-filter/ks.yaml index 9dd7bc5d..7fd4326c 100644 --- a/evaluation/kubernetes/apps/samples/bookinfo/with-passthrough-filter/ks.yaml +++ b/evaluation/kubernetes/apps/samples/bookinfo/with-passthrough-filter/ks.yaml @@ -1,117 +1,85 @@ --- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-passthrough-filter-details - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-passthrough-filter - postBuild: - substitute: - filter_name: passthrough - app: details - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-passthrough-filter-ratings - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-passthrough-filter - postBuild: - substitute: - filter_name: passthrough - app: ratings - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-passthrough-filter-reviews - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-passthrough-filter - postBuild: - substitute: - filter_name: passthrough - app: reviews - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-passthrough-filter-productpage - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-passthrough-filter - postBuild: - substitute: - filter_name: passthrough - app: productpage - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: +apiVersion: v1 +kind: List +extra: + filterName: &filterName passthrough name: &name bookinfo-with-passthrough-filter - namespace: flux-system -spec: - dependsOn: - - name: bookinfo-envoy-passthrough-filter-details - - name: bookinfo-envoy-passthrough-filter-ratings - - name: bookinfo-envoy-passthrough-filter-reviews - - name: bookinfo-envoy-passthrough-filter-productpage - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/app - targetNamespace: *name - postBuild: - substitute: - ingress_name: *name - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m + + baseSpec: &baseSpec + targetNamespace: *name + prune: true + sourceRef: + kind: GitRepository + name: prose-k8s-home-ops + wait: true + interval: 30m + retryInterval: 1m + timeout: 3m + + filterSpec: &filterSpec + <<: *baseSpec + dependsOn: + - name: cluster-apps-istio-system-istiod + path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter + +items: + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: *name + namespace: flux-system + spec: + <<: *baseSpec + dependsOn: + - name: bookinfo-envoy-passthrough-filter-details + - name: bookinfo-envoy-passthrough-filter-ratings + - name: bookinfo-envoy-passthrough-filter-reviews + - name: bookinfo-envoy-passthrough-filter-productpage + path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/app + postBuild: + substitute: + ingress_name: *name + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-passthrough-filter-details + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: details + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-passthrough-filter-ratings + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: ratings + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-passthrough-filter-reviews + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: reviews + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-passthrough-filter-productpage + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: productpage diff --git a/evaluation/kubernetes/apps/samples/bookinfo/with-prose-filter/ks.yaml b/evaluation/kubernetes/apps/samples/bookinfo/with-prose-filter/ks.yaml index 358ada4a..dc3d1878 100644 --- a/evaluation/kubernetes/apps/samples/bookinfo/with-prose-filter/ks.yaml +++ b/evaluation/kubernetes/apps/samples/bookinfo/with-prose-filter/ks.yaml @@ -1,117 +1,85 @@ --- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-prose-filter-details - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-prose-filter - postBuild: - substitute: - filter_name: simple - app: details - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-prose-filter-ratings - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-prose-filter - postBuild: - substitute: - filter_name: simple - app: ratings - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-prose-filter-reviews - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-prose-filter - postBuild: - substitute: - filter_name: simple - app: reviews - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-prose-filter-productpage - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-prose-filter - postBuild: - substitute: - filter_name: simple - app: productpage - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-with-prose-filter - namespace: flux-system -spec: - dependsOn: - - name: bookinfo-envoy-prose-filter-details - - name: bookinfo-envoy-prose-filter-ratings - - name: bookinfo-envoy-prose-filter-reviews - - name: bookinfo-envoy-prose-filter-productpage - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/app - targetNamespace: bookinfo-with-prose-filter - postBuild: - substitute: - ingress_name: bookinfo-with-prose-filter - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m +apiVersion: v1 +kind: List +extra: + filterName: &filterName simple + name: &name bookinfo-with-prose-filter + + baseSpec: &baseSpec + targetNamespace: *name + prune: true + sourceRef: + kind: GitRepository + name: prose-k8s-home-ops + wait: true + interval: 30m + retryInterval: 1m + timeout: 3m + + filterSpec: &filterSpec + <<: *baseSpec + dependsOn: + - name: cluster-apps-istio-system-istiod + path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter + +items: + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: *name + namespace: flux-system + spec: + <<: *baseSpec + dependsOn: + - name: bookinfo-envoy-prose-filter-details + - name: bookinfo-envoy-prose-filter-ratings + - name: bookinfo-envoy-prose-filter-reviews + - name: bookinfo-envoy-prose-filter-productpage + path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/app + postBuild: + substitute: + ingress_name: *name + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-prose-filter-details + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: details + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-prose-filter-ratings + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: ratings + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-prose-filter-reviews + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: reviews + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-prose-filter-productpage + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: productpage diff --git a/evaluation/kubernetes/apps/samples/bookinfo/with-tooling-filter/ks.yaml b/evaluation/kubernetes/apps/samples/bookinfo/with-tooling-filter/ks.yaml index f3e53921..f61e7ab1 100644 --- a/evaluation/kubernetes/apps/samples/bookinfo/with-tooling-filter/ks.yaml +++ b/evaluation/kubernetes/apps/samples/bookinfo/with-tooling-filter/ks.yaml @@ -1,117 +1,85 @@ --- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-tooling-filter-details - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-tooling-filter - postBuild: - substitute: - filter_name: traces-opa-singleton - app: details - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-tooling-filter-ratings - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-tooling-filter - postBuild: - substitute: - filter_name: traces-opa-singleton - app: ratings - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-tooling-filter-reviews - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-tooling-filter - postBuild: - substitute: - filter_name: traces-opa-singleton - app: reviews - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-envoy-tooling-filter-productpage - namespace: flux-system -spec: - dependsOn: - - name: cluster-apps-istio-system-istiod - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter - targetNamespace: bookinfo-with-tooling-filter - postBuild: - substitute: - filter_name: traces-opa-singleton - app: productpage - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: bookinfo-with-tooling-filter - namespace: flux-system -spec: - dependsOn: - - name: bookinfo-envoy-tooling-filter-details - - name: bookinfo-envoy-tooling-filter-ratings - - name: bookinfo-envoy-tooling-filter-reviews - - name: bookinfo-envoy-tooling-filter-productpage - path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/app - targetNamespace: bookinfo-with-tooling-filter - postBuild: - substitute: - ingress_name: bookinfo-with-tooling-filter - prune: true - sourceRef: - kind: GitRepository - name: prose-k8s-home-ops - wait: true - interval: 30m - retryInterval: 1m - timeout: 3m +apiVersion: v1 +kind: List +extra: + filterName: &filterName traces-opa-singleton + name: &name bookinfo-with-tooling-filter + + baseSpec: &baseSpec + targetNamespace: *name + prune: true + sourceRef: + kind: GitRepository + name: prose-k8s-home-ops + wait: true + interval: 30m + retryInterval: 1m + timeout: 3m + + filterSpec: &filterSpec + <<: *baseSpec + dependsOn: + - name: cluster-apps-istio-system-istiod + path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter + +items: + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: *name + namespace: flux-system + spec: + <<: *baseSpec + dependsOn: + - name: bookinfo-envoy-tooling-filter-details + - name: bookinfo-envoy-tooling-filter-ratings + - name: bookinfo-envoy-tooling-filter-reviews + - name: bookinfo-envoy-tooling-filter-productpage + path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/app + postBuild: + substitute: + ingress_name: *name + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-tooling-filter-details + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: details + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-tooling-filter-ratings + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: ratings + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-tooling-filter-reviews + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: reviews + - apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: bookinfo-envoy-tooling-filter-productpage + namespace: flux-system + spec: + <<: *filterSpec + postBuild: + substitute: + filter_name: *filterName + app: productpage