Skip to content

Cronjob fails but doesn't cause argo app to show as unhealthy #11571

@nparfait

Description

@nparfait

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

I have an application (helm) which has a cronjob.
I upgrade my helm chart and the new chart has an issue.
The cronjob is failing with "couldn't find key keyName in Secret service/xxx-dev". I was unaware of this as the app health is showing as healthy

To Reproduce

Create an helm applicaton which has a cron job which requires a secret which is not present

Expected behavior

The application should be unhealthy as the cronjob is failing to run

Screenshots

Version

{
"Version": "v2.5.0+b895da4",
"BuildDate": "2022-10-25T14:40:01Z",
"GitCommit": "b895da457791d56f01522796a8c3cd0f583d5d91",
"GitTreeState": "clean",
"GoVersion": "go1.18.7",
"Compiler": "gc",
"Platform": "linux/amd64",
"KustomizeVersion": "v4.5.7 2022-08-02T16:35:54Z",
"HelmVersion": "v3.10.1+g9f88ccb",
"KubectlVersion": "v0.24.2",
"JsonnetVersion": "v0.18.0"
}

Logs

Paste any relevant application logs here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions