-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Closed
Labels
bugSomething isn't workingSomething isn't workingversion:2.14Latest confirmed affected version is 2.14Latest confirmed affected version is 2.14
Description
Checklist:
- I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
- I've included steps to reproduce the bug.
- I've pasted the output of
argocd version.
Describe the bug
When a Policy (from policy.open-cluster-management.io) has a status that is empty and non-nil (i.e. {}), the check for the status.placement field is throwing an error because it's doing a length check on a nil field:
<string>:10: __len undefined stack traceback: <string>:10: in main chunk [G]: ?
To Reproduce
Deploy a policy unattached to any placement.
Expected behavior
Health check does not throw an error.
Screenshots
--
Version
(Version is the version tied to the PR where the code was updated in #21297 )
2.14.0Logs
--
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingversion:2.14Latest confirmed affected version is 2.14Latest confirmed affected version is 2.14