-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override status and operation processors using kustomize #2720
Comments
@muenchdo we use Kustomize to generate our manifests, but this isn't intended to be used directly. Instead you can use the YAMLs as per the getting started guide, or you might consider using the community maintained Helm charts. |
Any specific reason why it's not intended to use kustomize? It's very convenient to simply declare a remote base and then overlay some things, e.g. apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/argoproj/argo-cd//manifests/ha/cluster-install?ref=v1.3.0
- certificate.yaml
- ingress.yaml
- projects.yaml
namespace: argocd
patchesStrategicMerge:
- config.patch.yaml
- |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-server
spec:
replicas: 3
- |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-repo-server
spec:
replicas: 4 |
@muenchdo you might use
patchesJson6902:
- path: argocd-application-controller-processors.yaml
target:
group: apps
kind: Deployment
name: argocd-application-controller
version: v1
- {op: replace, path: /spec/template/spec/containers/0/command/2, value: "50"}
- {op: replace, path: /spec/template/spec/containers/0/command/4, value: "25"} |
Yes, I am aware, with inlinePatch it could even all go into the |
This is almost possible with the |
I've worked around it with:
the performance skyrocketed after 100/50 processors kicked in. |
Summary
Allow overriding the values of the application controller args
status-processors
andoperation-processors
using kustomize.Motivation
The values of the application controller args
status-processors
andoperation-processors
can currently only be overridden using kustomize by patching the entire list of args of the application controller. This is easy to break as any new args added in the base will be overwritten by the overlay.Proposal
Kustomize can replace variables in container envs, args and command. This can be used to allow overriding the values of
status-processors
andoperation-processors
by simply adding the following to the overlay'skustomization.yaml
:If nothing is added, the default behavior is preserved.
I have already made the required changes to the manifests in a fork and would be happy to create a PR if you think this is useful 🙂
The text was updated successfully, but these errors were encountered: