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

feat: Sync namespace for Event to the Application namespace (#847) #848

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 jortkoopmans force-pushed the bugfix/847_CreateApplicationEvent_namespace_failure branch from 732840c to fd60c85 Compare September 1, 2024 22:00
)

Signed-off-by: Jort Koopmans <jort.koopmans@entrnce.com>
@jortkoopmans jortkoopmans force-pushed the bugfix/847_CreateApplicationEvent_namespace_failure branch from fd60c85 to 234773c Compare September 2, 2024 06:20
…pace)

Signed-off-by: Jort Koopmans <jort.koopmans@entrnce.com>
@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.

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

@jannfis jannfis merged commit 5990a9b into argoproj-labs:master Sep 6, 2024
10 checks passed
@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
…-labs#847) (argoproj-labs#848)

Signed-off-by: Jort Koopmans <jort.koopmans@entrnce.com>
Signed-off-by: Tchoupinax <corentinfiloche@hotmail.fr>
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