-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat(appset): add configurable max reconciliations to appset #13381
Conversation
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
- name: ARGOCD_APPLICATIONSET_CONTROLLER_REPO_SERVER_PLAINTEXT | ||
valueFrom: | ||
configMapKeyRef: | ||
name: argocd-cmd-params-cm | ||
key: controller.repo.server.plaintext | ||
key: applicationsetcontroller.repo.server.plaintext | ||
optional: true | ||
- name: ARGOCD_APPLICATION_CONTROLLER_REPO_SERVER_STRICT_TLS | ||
- name: ARGOCD_APPLICATIONSET_CONTROLLER_REPO_SERVER_STRICT_TLS | ||
valueFrom: | ||
configMapKeyRef: | ||
name: argocd-cmd-params-cm | ||
key: controller.repo.server.strict.tls | ||
key: applicationsetcontroller.repo.server.strict.tls | ||
optional: true | ||
- name: ARGOCD_APPLICATIONSET_CONTROLLER_REPO_SERVER_TIMEOUT_SECONDS | ||
valueFrom: | ||
configMapKeyRef: | ||
name: argocd-cmd-params-cm | ||
key: applicationsetcontroller.repo.server.timeout.seconds | ||
optional: true | ||
- name: ARGOCD_APPLICATIONSET_CONTROLLER_CONCURRENT_RECONCILIATIONS | ||
valueFrom: | ||
configMapKeyRef: | ||
name: argocd-cmd-params-cm | ||
key: applicationsetcontroller.concurrent.reconciliations.max |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated the env var names from app controller to appset controller and also made them point to appset specific config instead of re-using app controller config.
command.Flags().BoolVar(&repoServerPlaintext, "repo-server-plaintext", env.ParseBoolFromEnv("ARGOCD_APPLICATIONSET_CONTROLLER_REPO_SERVER_PLAINTEXT", false), "Disable TLS on connections to repo server") | ||
command.Flags().BoolVar(&repoServerStrictTLS, "repo-server-strict-tls", env.ParseBoolFromEnv("ARGOCD_APPLICATIONSET_CONTROLLER_REPO_SERVER_STRICT_TLS", false), "Whether to use strict validation of the TLS cert presented by the repo server") | ||
command.Flags().IntVar(&repoServerTimeoutSeconds, "repo-server-timeout-seconds", env.ParseNumFromEnv("ARGOCD_APPLICATIONSET_CONTROLLER_REPO_SERVER_TIMEOUT_SECONDS", 60, 0, math.MaxInt64), "Repo server RPC call timeout seconds.") | ||
command.Flags().IntVar(&maxConcurrentReconciliations, "concurrent-reconciliations", env.ParseNumFromEnv("ARGOCD_APPLICATIONSET_CONTROLLER_CONCURRENT_RECONCILIATIONS", 10, 1, 100), "Max concurrent reconciliations limit for the controller") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set the default to 10 and max to 100 for now, let me know if that needs to be changed.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #13381 +/- ##
=======================================
Coverage 49.14% 49.15%
=======================================
Files 248 248
Lines 42891 42900 +9
=======================================
+ Hits 21079 21087 +8
- Misses 19693 19694 +1
Partials 2119 2119
☔ View full report in Codecov by Sentry. |
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
eba9f2a
to
51367b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Chances this could be in 2.8 with the other repo server changes for caching? |
…j#13381) * feat(appset): add configurable max reconciliations to appset Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com> * fix: lint errors Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com> --------- Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
valueFrom: | ||
configMapKeyRef: | ||
name: argocd-cmd-params-cm | ||
key: controller.repo.server.plaintext | ||
key: applicationsetcontroller.repo.server.plaintext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add docs for ppl upgrading from 2.7 to 2.8 running without in-cluster TLS (this seems to have broken applicationset controller with error "transport: authentication handshake failed: tls: first record does not look like a TLS handshake" )
didn't see a notice about this cmd param config change here
https://argo-cd.readthedocs.io/en/stable/operator-manual/upgrading/2.7-2.8/
and missing from the sample in docs
https://github.com/argoproj/argo-cd/blob/v2.8.1/docs/operator-manual/argocd-cmd-params-cm.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR:
Checklist:
Please see Contribution FAQs if you have questions about your pull-request.