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: Add controllerNamespace to .status of an application (#12964) #13081

Conversation

ItsKev
Copy link
Contributor

@ItsKev ItsKev commented Apr 2, 2023

Closes #12964

This pull request introduces the controller namespace to the application's .status. With this feature, users are able to trace back the controller that is responsible for managing the application.

Here are a few examples of how this feature can be useful: (as mentioned in #12964)

  • When building alternative user interfaces and you want to construct a link for the Application to the Argo CD UI
  • When troubleshooting Applications being able to map it back to the controller can be very helpful when operating in clusters with many Argo instances.

Note on DCO:

If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.

Please see Contribution FAQs if you have questions about your pull-request.

@codecov
Copy link

codecov bot commented Apr 2, 2023

Codecov Report

Patch coverage: 44.44% and no project coverage change.

Comparison is base (5662367) 48.98% compared to head (d7a40fa) 48.98%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #13081   +/-   ##
=======================================
  Coverage   48.98%   48.98%           
=======================================
  Files         249      249           
  Lines       43066    43067    +1     
=======================================
+ Hits        21094    21098    +4     
+ Misses      19864    19862    -2     
+ Partials     2108     2107    -1     
Impacted Files Coverage Δ
pkg/apis/application/v1alpha1/types.go 59.58% <ø> (ø)
util/git/client.go 50.00% <37.50%> (ø)
controller/appcontroller.go 53.38% <100.00%> (+0.22%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Kevin Huber <kevin.huber@hotmail.com>
@ItsKev ItsKev force-pushed the add-controller-namespace-to-status-of-application branch from 3535fba to 1eaf3de Compare April 2, 2023 06:16
@34fathombelow
Copy link
Member

@jannfis can you PTAL?

@34fathombelow 34fathombelow added the apps-in-any-namespace Issues related to the "Apps in any namespace" feature introduced in 2.5 label Apr 25, 2023
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Copy link
Collaborator

@crenshaw-dev crenshaw-dev 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 @ItsKev!

@crenshaw-dev crenshaw-dev enabled auto-merge (squash) May 27, 2023 20:13
@crenshaw-dev crenshaw-dev merged commit 032a596 into argoproj:master May 27, 2023
23 checks passed
@ItsKev ItsKev deleted the add-controller-namespace-to-status-of-application branch June 5, 2023 13:06
yyzxw pushed a commit to yyzxw/argo-cd that referenced this pull request Aug 9, 2023
…13081)

Signed-off-by: Kevin Huber <kevin.huber@hotmail.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
tesla59 pushed a commit to tesla59/argo-cd that referenced this pull request Dec 16, 2023
…13081)

Signed-off-by: Kevin Huber <kevin.huber@hotmail.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apps-in-any-namespace Issues related to the "Apps in any namespace" feature introduced in 2.5 ready-for-review
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add controller namespace to .status of Application
5 participants