-
Notifications
You must be signed in to change notification settings - Fork 763
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
doc: add controller env variable examples #790
doc: add controller env variable examples #790
Conversation
Signed-off-by: saumeya <saumeyakatyal@gmail.com>
docs/reference/argocd.md
Outdated
configMapKeyRef: | ||
key: controller.repo.server.timeout.seconds | ||
name: argocd-cmd-params-cm |
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.
Tiny nit: I think this should be intended one level deeper.
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.
You are correct, I will update it
Signed-off-by: saumeya <saumeyakatyal@gmail.com>
docs/reference/argocd.md
Outdated
If you want to use the config map (as mentioned in the link above) to set the cmd variables, you can add the following to the CR to refer to the environment variable value | ||
|
||
``` yaml | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ArgoCD | ||
metadata: | ||
name: example-argocd | ||
labels: | ||
example: controller | ||
spec: | ||
controller: | ||
env: | ||
- name: ARGOCD_APPLICATION_CONTROLLER_REPO_SERVER_TIMEOUT_SECONDS | ||
valueFrom: | ||
configMapKeyRef: | ||
key: controller.repo.server.timeout.seconds | ||
name: argocd-cmd-params-cm | ||
``` |
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 this method does not make sense in the context of the Operator. We should not advocate for it. Can you please remove it?
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.
Sure
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
Signed-off-by: saumeya saumeyakatyal@gmail.com
What type of PR is this?
/kind documentation
What does this PR do / why we need it:
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
Fixes #?
How to test changes / Special notes to the reviewer: