Skip to content
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

Merged
merged 4 commits into from
Oct 7, 2022

Conversation

saumeya
Copy link
Collaborator

@saumeya saumeya commented Sep 30, 2022

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?

  • Documentation update is required by this PR.
  • Documentation has been updated.

Which issue(s) this PR fixes:

Fixes #?

How to test changes / Special notes to the reviewer:

Signed-off-by: saumeya <saumeyakatyal@gmail.com>
Comment on lines 191 to 193
configMapKeyRef:
key: controller.repo.server.timeout.seconds
name: argocd-cmd-params-cm
Copy link
Collaborator

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.

Copy link
Collaborator Author

@saumeya saumeya Sep 30, 2022

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>
@saumeya saumeya requested a review from jannfis October 3, 2022 11:33
Comment on lines 177 to 194
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
```
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

Copy link
Collaborator

@jannfis jannfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jannfis jannfis merged commit 651586f into argoproj-labs:master Oct 7, 2022
@iam-veeramalla iam-veeramalla added this to the 0.5.0 milestone Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants