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: Shared custom health check for multiple resources (#4212) #10885

Merged
merged 19 commits into from Nov 8, 2022

Conversation

reggie-k
Copy link
Member

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.
  • [V] 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.
  • [V] Does this PR require documentation updates?
  • [V] I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • [V] I have signed off all my commits as required by DCO
  • [V] 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).

Signed-off-by: reggie <reginakagan@gmail.com>
Signed-off-by: reggie <reginakagan@gmail.com>
Signed-off-by: reggie <reginakagan@gmail.com>
Signed-off-by: reggie <reginakagan@gmail.com>
@reggie-k
Copy link
Member Author

#4212

@codecov
Copy link

codecov bot commented Oct 10, 2022

Codecov Report

Base: 45.60% // Head: 45.61% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (7cc4c2e) compared to base (3d3e947).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10885      +/-   ##
==========================================
+ Coverage   45.60%   45.61%   +0.01%     
==========================================
  Files         237      237              
  Lines       28914    28922       +8     
==========================================
+ Hits        13185    13193       +8     
  Misses      13913    13913              
  Partials     1816     1816              
Impacted Files Coverage Δ
util/lua/lua.go 77.02% <100.00%> (+0.85%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@reggie-k reggie-k marked this pull request as draft October 11, 2022 04:23
@reggie-k reggie-k marked this pull request as ready for review October 13, 2022 09:30
@reggie-k
Copy link
Member Author

@crenshaw-dev WDYT?

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.

Just a couple tweaks to simplify!

I merged master, so you'll need to pull this branch before making changes.

util/lua/lua.go Outdated Show resolved Hide resolved
util/lua/lua.go Outdated Show resolved Hide resolved
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.

Thanks @reggie-k!

@crenshaw-dev crenshaw-dev merged commit d5a961c into argoproj:master Nov 8, 2022
ashutosh16 pushed a commit to ashutosh16/argo-cd that referenced this pull request Nov 23, 2022
… (argoproj#10885)

* Kind wildcard support in health customizations

Signed-off-by: reggie <reginakagan@gmail.com>

* Updated health customizations docs to using the correct field with a /

Signed-off-by: reggie <reginakagan@gmail.com>

* Updated health customizations docs to using the correct field with a /

Signed-off-by: reggie <reginakagan@gmail.com>

* Document resource kind wildcard for custom health check

Signed-off-by: reggie <reginakagan@gmail.com>

* Implemented wildcard * support in API Group and Resource Kind and updated docs

Signed-off-by: reggie <reginakagan@gmail.com>

* Implemented wildcard * support in API Group and Resource Kind and updated docs

Signed-off-by: reggie <reginakagan@gmail.com>

* Implemented wildcard * support in API Group and Resource Kind and updated docs

Signed-off-by: reggie <reginakagan@gmail.com>

* Removed code duplication and returned an empty string instead of an error

Signed-off-by: reggie <reginakagan@gmail.com>

Signed-off-by: reggie <reginakagan@gmail.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@Kerwood
Copy link
Contributor

Kerwood commented Dec 21, 2022

Did this feature get support for wildcards in the group also? Like,

      *.aws.crossplane.io/*:
        health.lua: |
           ...

@reggie-k
Copy link
Member Author

reggie-k commented Dec 21, 2022 via email

@Kerwood
Copy link
Contributor

Kerwood commented Dec 21, 2022

Yeah, I will update the docs to state it clearly

Awesome.. Thank you developing this feature :)

emirot pushed a commit to emirot/argo-cd that referenced this pull request Jan 27, 2023
… (argoproj#10885)

* Kind wildcard support in health customizations

Signed-off-by: reggie <reginakagan@gmail.com>

* Updated health customizations docs to using the correct field with a /

Signed-off-by: reggie <reginakagan@gmail.com>

* Updated health customizations docs to using the correct field with a /

Signed-off-by: reggie <reginakagan@gmail.com>

* Document resource kind wildcard for custom health check

Signed-off-by: reggie <reginakagan@gmail.com>

* Implemented wildcard * support in API Group and Resource Kind and updated docs

Signed-off-by: reggie <reginakagan@gmail.com>

* Implemented wildcard * support in API Group and Resource Kind and updated docs

Signed-off-by: reggie <reginakagan@gmail.com>

* Implemented wildcard * support in API Group and Resource Kind and updated docs

Signed-off-by: reggie <reginakagan@gmail.com>

* Removed code duplication and returned an empty string instead of an error

Signed-off-by: reggie <reginakagan@gmail.com>

Signed-off-by: reggie <reginakagan@gmail.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: emirot <emirot.nolan@gmail.com>
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.

None yet

3 participants