Skip to content

Conversation

@jortkoopmans
Copy link
Contributor

Sync namespace for Event to the Application namespace (#847)

Note that this does assume that the kubernetes client has permissions to create Events on the particular namespace (this typically depends on cluster RBAC)

@codecov-commenter
Copy link

codecov-commenter commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.43%. Comparing base (40f260a) to head (d0c3300).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #848   +/-   ##
=======================================
  Coverage   73.43%   73.43%           
=======================================
  Files          31       31           
  Lines        3136     3136           
=======================================
  Hits         2303     2303           
  Misses        695      695           
  Partials      138      138           

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

Copy link
Contributor

@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.

Will we need RBAC changes for that to allow the image updater the creation of events in those namespaces?

@jortkoopmans
Copy link
Contributor Author

Will we need RBAC changes for that to allow the image updater the creation of events in those namespaces?

Thank you for the quick feedback.
Yes, some additional permissions are required, I've added a commit proposing to move the Event create permission to a ClusterRole.
Theoretically a cluster operator might prefer creating separate roles for specific namespaces where Applications will be residing, but managing those roles can become tedious.

@jortkoopmans jortkoopmans requested a review from jannfis September 4, 2024 07:50
@jannfis jannfis changed the title Sync namespace for Event to the Application namespace (#847) feat: Sync namespace for Event to the Application namespace (#847) Sep 6, 2024
Copy link
Contributor

@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! Thanks for your contribution!

@chengfang
Copy link
Collaborator

@jortkoopmans can you please take a look at the regression reported in issue #859? Thanks.

Tchoupinax pushed a commit to Tchoupinax/argocd-image-updater that referenced this pull request Oct 23, 2024
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.

4 participants