Skip to content

Commit

Permalink
feat(k8s/samples): rename sample deployments consistently
Browse files Browse the repository at this point in the history
Also renamed ingress resources, so they now match fluxtomization and namespace
names.
  • Loading branch information
qlonik committed Apr 28, 2024
1 parent 4649cef commit fabb85b
Show file tree
Hide file tree
Showing 16 changed files with 75 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./plain
- ./with-envoy
- ./with-filter
- ./with-filter-passthrough
- ./with-filter-traces-opa-singleton
- ./with-istio
- ./with-passthrough-filter
- ./with-prose-filter
- ./with-tooling-filter
6 changes: 3 additions & 3 deletions evaluation/kubernetes/apps/samples/bookinfo/plain/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-plain
name: &name bookinfo-plain
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-istio-system-istiod
path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/app
targetNamespace: bookinfo-plain
targetNamespace: *name
postBuild:
substitute:
ingress_name: bookinfo-plain
ingress_name: *name
prune: true
sourceRef:
kind: GitRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-with-envoy
name: &name bookinfo-with-istio
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-istio-system-istiod
path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/app
targetNamespace: bookinfo-with-envoy
targetNamespace: *name
postBuild:
substitute:
ingress_name: bookinfo-envoy
ingress_name: *name
prune: true
sourceRef:
kind: GitRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: bookinfo-with-envoy
name: bookinfo-with-istio
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
istio-injection: enabled
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-passthrough-details
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-filter-passthrough
targetNamespace: bookinfo-with-passthrough-filter
postBuild:
substitute:
filter_name: passthrough
Expand All @@ -25,13 +25,13 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-passthrough-ratings
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-filter-passthrough
targetNamespace: bookinfo-with-passthrough-filter
postBuild:
substitute:
filter_name: passthrough
Expand All @@ -48,13 +48,13 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-passthrough-reviews
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-filter-passthrough
targetNamespace: bookinfo-with-passthrough-filter
postBuild:
substitute:
filter_name: passthrough
Expand All @@ -71,13 +71,13 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-passthrough-productpage
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-filter-passthrough
targetNamespace: bookinfo-with-passthrough-filter
postBuild:
substitute:
filter_name: passthrough
Expand All @@ -94,19 +94,19 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-with-filter-passthrough
name: &name bookinfo-with-passthrough-filter
namespace: flux-system
spec:
dependsOn:
- name: bookinfo-envoy-filter-passthrough-details
- name: bookinfo-envoy-filter-passthrough-ratings
- name: bookinfo-envoy-filter-passthrough-reviews
- name: bookinfo-envoy-filter-passthrough-productpage
- 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: bookinfo-with-filter-passthrough
targetNamespace: *name
postBuild:
substitute:
ingress_name: bookinfo-filter-passthrough
ingress_name: *name
prune: true
sourceRef:
kind: GitRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: bookinfo-with-filter-passthrough
name: bookinfo-with-passthrough-filter
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
istio-injection: enabled
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-details
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-filter
targetNamespace: bookinfo-with-prose-filter
postBuild:
substitute:
filter_name: simple
Expand All @@ -25,13 +25,13 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-ratings
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-filter
targetNamespace: bookinfo-with-prose-filter
postBuild:
substitute:
filter_name: simple
Expand All @@ -48,13 +48,13 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-reviews
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-filter
targetNamespace: bookinfo-with-prose-filter
postBuild:
substitute:
filter_name: simple
Expand All @@ -71,13 +71,13 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-productpage
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-filter
targetNamespace: bookinfo-with-prose-filter
postBuild:
substitute:
filter_name: simple
Expand All @@ -94,19 +94,19 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-with-filter
name: bookinfo-with-prose-filter
namespace: flux-system
spec:
dependsOn:
- name: bookinfo-envoy-filter-details
- name: bookinfo-envoy-filter-ratings
- name: bookinfo-envoy-filter-reviews
- name: bookinfo-envoy-filter-productpage
- 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-filter
targetNamespace: bookinfo-with-prose-filter
postBuild:
substitute:
ingress_name: bookinfo-filter
ingress_name: bookinfo-with-prose-filter
prune: true
sourceRef:
kind: GitRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: bookinfo-with-filter
name: bookinfo-with-prose-filter
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
istio-injection: enabled
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-traces-opa-singleton-details
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-filter-traces-opa-singleton
targetNamespace: bookinfo-with-tooling-filter
postBuild:
substitute:
filter_name: traces-opa-singleton
Expand All @@ -25,13 +25,13 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-traces-opa-singleton-ratings
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-filter-traces-opa-singleton
targetNamespace: bookinfo-with-tooling-filter
postBuild:
substitute:
filter_name: traces-opa-singleton
Expand All @@ -48,13 +48,13 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-traces-opa-singleton-reviews
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-filter-traces-opa-singleton
targetNamespace: bookinfo-with-tooling-filter
postBuild:
substitute:
filter_name: traces-opa-singleton
Expand All @@ -71,13 +71,13 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-envoy-filter-traces-opa-singleton-productpage
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-filter-traces-opa-singleton
targetNamespace: bookinfo-with-tooling-filter
postBuild:
substitute:
filter_name: traces-opa-singleton
Expand All @@ -94,19 +94,19 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: bookinfo-with-filter-traces-opa-singleton
name: bookinfo-with-tooling-filter
namespace: flux-system
spec:
dependsOn:
- name: bookinfo-envoy-filter-traces-opa-singleton-details
- name: bookinfo-envoy-filter-traces-opa-singleton-ratings
- name: bookinfo-envoy-filter-traces-opa-singleton-reviews
- name: bookinfo-envoy-filter-traces-opa-singleton-productpage
- 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-filter-traces-opa-singleton
targetNamespace: bookinfo-with-tooling-filter
postBuild:
substitute:
ingress_name: bookinfo-filter-traces-opa-singleton
ingress_name: bookinfo-with-tooling-filter
prune: true
sourceRef:
kind: GitRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: bookinfo-with-filter-traces-opa-singleton
name: bookinfo-with-tooling-filter
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
istio-injection: enabled
Loading

0 comments on commit fabb85b

Please sign in to comment.