Skip to content

Commit e51f17b

Browse files
committed
fluxFaster.yaml - values to speed things up
this change was the real motivation for introducing flux-operator +fixup Signed-off-by: Kingdon Barrett <[email protected]>
1 parent 1da1942 commit e51f17b

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

‎packages/core/fluxcd/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ show:
77
helm template -n $(NAMESPACE) $(NAME) . --no-hooks --dry-run=server $(API_VERSIONS_FLAGS)
88

99
apply:
10-
helm template -n $(NAMESPACE) $(NAME) . --no-hooks -f valuesFile.yaml \
10+
helm template -n $(NAMESPACE) $(NAME) . --no-hooks -f valuesFile.yaml -f fluxFaster.yaml \
1111
--dry-run=server $(API_VERSIONS_FLAGS) | kubectl apply -n $(NAMESPACE) -f-
1212

1313
diff:
14-
helm template -n $(NAMESPACE) $(NAME) . --no-hooks -f valuesFile.yaml \
14+
helm template -n $(NAMESPACE) $(NAME) . --no-hooks -f valuesFile.yaml -f fluxFaster.yaml \
1515
--dry-run=server $(API_VERSIONS_FLAGS) | kubectl diff -n $(NAMESPACE) -f-
1616

1717
update:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
fluxInstance:
2+
kustomize:
3+
patches:
4+
- patch: |
5+
- op: add
6+
path: /spec/template/spec/containers/0/args/-
7+
value: --concurrent=20
8+
- op: add
9+
path: /spec/template/spec/containers/0/args/-
10+
value: --requeue-dependency=5s
11+
- op: replace
12+
path: /spec/template/spec/containers/0/resources/limits
13+
value:
14+
cpu: 2000m
15+
memory: 2048Mi
16+
target:
17+
kind: Deployment
18+
name: "(kustomize-controller|helm-controller|source-controller)"

‎packages/core/fluxcd/templates/flux-instance.yaml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ spec:
1212
{{- if .Values.fluxInstance.components }}
1313
{{- toYaml .Values.fluxInstance.components | nindent 4 }}
1414
{{- end }}
15-
15+
kustomize:
16+
{{- if .Values.fluxInstance.kustomize }}
17+
{{- toYaml .Values.fluxInstance.kustomize | nindent 4 }}
18+
{{- end }}

0 commit comments

Comments
 (0)