Skip to content

Commit

Permalink
feat(eval/k8s): extract common filter conf in fluxtomizations
Browse files Browse the repository at this point in the history
  • Loading branch information
qlonik committed Jan 7, 2025
1 parent 2d6c5cf commit 43d7d45
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ extra:
- name: cluster-apps-istio-system-istiod
path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter

baseFilterVars: &baseFilterVars
filter_name: *filterName

items:
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -48,7 +51,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: details
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -59,7 +62,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: ratings
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -70,7 +73,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: reviews
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -81,5 +84,5 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: productpage
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ extra:
- name: cluster-apps-istio-system-istiod
path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter

baseFilterVars: &baseFilterVars
filter_name: *filterName

items:
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -48,7 +51,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: details
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -59,7 +62,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: ratings
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -70,7 +73,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: reviews
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -81,5 +84,5 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: productpage
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ extra:
- name: cluster-apps-istio-system-istiod
path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter

baseFilterVars: &baseFilterVars
filter_name: *filterName

items:
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -48,7 +51,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: details
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -59,7 +62,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: ratings
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -70,7 +73,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: reviews
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -81,5 +84,5 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: productpage
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ extra:
- name: cluster-apps-istio-system-istiod
path: ./evaluation/kubernetes/apps/samples/bookinfo/_template/filter

baseFilterVars: &baseFilterVars
filter_name: *filterName

items:
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -48,7 +51,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: details
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -59,7 +62,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: ratings
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -70,7 +73,7 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: reviews
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand All @@ -81,5 +84,5 @@ items:
<<: *filterSpec
postBuild:
substitute:
filter_name: *filterName
<<: *baseFilterVars
app: productpage

0 comments on commit 43d7d45

Please sign in to comment.