Repository navigation
feat: allow annotations on CronJob objects via cronjob.cronjobAnnotations - #457
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The review has no active issues blocking approval of the CronJob-level annotation support change.
No open issues 🎉
What changed in this PR
Adds CronJob-level annotation support to the shared Helm template, allowing applications to configure Argo CD health-check exclusions without annotating pods.
Changes:
- Renders
metadata.annotationsfromcronjob.cronjobAnnotations, with support for per-CronJob overrides. - Documents the new setting with an Argo CD annotation example in the three consuming charts.
- Bumps the common library and affected chart versions.
| File | Description |
|---|---|
parcellab/monolith/values.yaml |
Documents CronJob-level annotations and example usage. |
parcellab/monolith/Chart.yaml |
Bumps chart version to 0.6.4. |
parcellab/microservice/values.yaml |
Documents CronJob-level annotations and example usage. |
parcellab/microservice/Chart.yaml |
Bumps chart version to 0.6.4. |
parcellab/cronjob/values.yaml |
Documents CronJob-level annotations and example usage. |
parcellab/cronjob/Chart.yaml |
Bumps chart version to 0.6.2. |
parcellab/common/templates/_cronjob.tpl |
Conditionally renders annotations on CronJob metadata. |
parcellab/common/Chart.yaml |
Bumps shared library version to 1.3.14. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why: Argo CD marks an app
Degradedwhen one of its CronJobs has a failed last run. The fix that Infra suggests is theargocd.argoproj.io/ignore-healthcheck: "true"annotation on the CronJob. Thecommon.cronjobtemplate has no field for annotations on the CronJob object, so apps cannot set it from their values.Example: product-api stays
Degradedin Argo CD until the next release, because of old failed cron runs. Its cron failures already alert through Sentry cron monitors, so Argo health does not need to show them.Change
cronjob.cronjobAnnotationssetsmetadata.annotationson the CronJob (not on its pods).cronjob.annotationsalready goes to the pod template throughcommon.pod.cronjob:default, with a per-CronJob value as override. Inmonolith, eachcronjobs[]item merges with the defaults, so per-item annotations add to the default ones.worker-groupdoes not render CronJobs.Checked locally
helm lintpasses for all charts.helm templatefor monolith with a default and a per-item override renders both annotations. With no value set, the output does not change. The pods do not get the annotation.Usage: