argo-cd/util/lua
Blake Pettersson 5ba2405fa9
fix(health): only consider non-empty health checks (#20232)
* fix(health): only consider non-empty health checks

For wildcard health checks, only consider wildcards with a non-empty
health check. Fixes #16905 (at least partially).

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

* test: renaming test case for clarity

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

* refactor: add clarity as to what the function is supposed to do

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

* Update docs/operator-manual/health.md

Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

* test: add test case for `*/*` override with empty healthcheck

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

---------

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
2024-10-04 15:34:58 -04:00
..
testdata Add custom resource health through lua 2019-01-31 11:46:09 -08:00
custom_actions_test.go feat: Add custom resource actions for flux resources (#18922) 2024-07-15 13:44:32 -04:00
health_test.go chore: enable error-nil rule from testifylint linter (#18544) 2024-06-10 10:38:55 -04:00
impacted_resource.go feat: Create job action (#12174 and #4116) (#12925) 2023-06-23 14:45:53 -04:00
lua.go fix(health): only consider non-empty health checks (#20232) 2024-10-04 15:34:58 -04:00
lua_test.go fix(health): only consider non-empty health checks (#20232) 2024-10-04 15:34:58 -04:00
oslib_safe.go chore: enable gocritic linter (#18633) 2024-06-13 15:10:00 -04:00