Skip to content

Commit

Permalink
fluxFaster.yaml - values to speed things up
Browse files Browse the repository at this point in the history
this change was the real motivation for introducing flux-operator

+fixup

Signed-off-by: Kingdon Barrett <kingdon+github@tuesdaystudios.com>
  • Loading branch information
kingdonb committed Jun 16, 2024
1 parent 9fbe16c commit 2154617
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/fluxcd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ show:
helm template -n $(NAMESPACE) $(NAME) . --no-hooks --dry-run=server $(API_VERSIONS_FLAGS)

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

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

update:
Expand Down
18 changes: 18 additions & 0 deletions packages/core/fluxcd/fluxFaster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
fluxInstance:
kustomize:
patches:
- patch: |
- op: add
path: /spec/template/spec/containers/0/args/-
value: --concurrent=20
- op: add
path: /spec/template/spec/containers/0/args/-
value: --requeue-dependency=5s
- op: replace
path: /spec/template/spec/containers/0/resources/limits
value:
cpu: 2000m
memory: 2048Mi
target:
kind: Deployment
name: "(kustomize-controller|helm-controller|source-controller)"
5 changes: 4 additions & 1 deletion packages/core/fluxcd/templates/flux-instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ spec:
{{- if .Values.fluxInstance.components }}
{{- toYaml .Values.fluxInstance.components | nindent 4 }}
{{- end }}

kustomize:
{{- if .Values.fluxInstance.kustomize }}
{{- toYaml .Values.fluxInstance.kustomize | nindent 4 }}
{{- end }}

0 comments on commit 2154617

Please sign in to comment.