Skip to content

Conversation

mikeshng
Copy link
Contributor

What does this PR do / why we need it:
Follow what Argo CD does and set the rolebinding namespace to argocd for both principal and agent

See #542 (comment) for more details.

This default ns has been pretty annoying when setting up the argocd-agent env for some time now. Following the setup/installation steps is arguably the hardest part of this project, so we should make it as simple as possible for beginners.

Which issue(s) this PR fixes:

Fixes #403

How to test changes / Special notes to the reviewer:

Checklist

  • Documentation update is required by this PR (and has been updated) OR no documentation update is required.

@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.91%. Comparing base (94295a6) to head (2ddbb2f).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #575      +/-   ##
==========================================
+ Coverage   44.52%   44.91%   +0.39%     
==========================================
  Files          90       90              
  Lines       11909    12016     +107     
==========================================
+ Hits         5302     5397      +95     
- Misses       6174     6176       +2     
- Partials      433      443      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

#### Troubleshooting
___

1. If pod fails to come up with error
Copy link
Collaborator

Choose a reason for hiding this comment

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

I do not think this should go. This will happen at any time when the namespace in the (cluster-)rolebinding does not match the installation namespace.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. Reverted.

…gocd for both principal and agent

Signed-off-by: Mike Ng <[email protected]>
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 77b5835 into argoproj-labs:main Sep 22, 2025
15 checks passed
@mikeshng mikeshng deleted the fix-binding-ns branch September 22, 2025 21:18
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.

Certificate errors while starting to test principal
3 participants