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

Add resources health checks to the argocd repo #1181

Open
f41gh7 opened this issue Dec 5, 2024 · 2 comments
Open

Add resources health checks to the argocd repo #1181

f41gh7 opened this issue Dec 5, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@f41gh7
Copy link
Collaborator

f41gh7 commented Dec 5, 2024

argocd allows to bundle health checks for custom resources in order to track it's health status.

https://argo-cd.readthedocs.io/en/latest/operator-manual/health/#way-2-contribute-a-custom-health-check
https://github.com/argoproj/argo-cd/tree/master/resource_customizations

It'd be great to have track for our status resource field, that exposes actual state of the applications.

An example of lua script:

local hs = {}
if obj.status ~= nil then
	if obj.status.updateStatus ~= "operational" then
		hs.status = "Progressing"
		hs.message = obj.status.reason
		return hs
	end
	hs.status = "Healthy"
	hs.message = ""
	return hs
end
hs.status = "Progressing"
hs.message = "actual status is unknown"
return hs
@f41gh7 f41gh7 added the enhancement New feature or request label Dec 5, 2024
@f41gh7
Copy link
Collaborator Author

f41gh7 commented Dec 5, 2024

FYI @Haleygo @AndrewChubatiuk

@AndrewChubatiuk
Copy link
Contributor

depends on #1155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants