Skip to content

Conversation

@gersmann
Copy link
Contributor

Using the generated name at least for a PostDelete hook was problematic, created too many jobs. I think in the case of ArgoCD hooks, we want the names to be unique?

Copilot AI review requested due to automatic review settings October 22, 2025 16:29
@gersmann gersmann requested review from a team as code owners October 22, 2025 16:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where ArgoCD hooks were using generated names, causing multiple job instances to be created. The fix ensures hooks use deterministic names and updates the default hook deletion policy to BeforeHookCreation to prevent duplicate jobs.

Key Changes:

  • Removed generateName for ArgoCD hooks in favor of static names
  • Changed default hookDeletePolicy from HookSucceeded to BeforeHookCreation
  • Added proper quoting to hook annotation values

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
parcellab/common/templates/_job.tpl Removed conditional name generation logic; unified to use static name and updated hook delete policy default
parcellab/monolith/values.yaml Updated example documentation to reflect the new default hook delete policy
parcellab/common/Chart.yaml Bumped chart version to 1.0.77

Copy link
Contributor

@andibeuge andibeuge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to populate this change to the charts: please update the versions in the charts monolith, microservice, workers etc as well

@gersmann
Copy link
Contributor Author

In order to populate this change to the charts: please update the versions in the charts monolith, microservice, workers etc as well

Ah yes, forgot about that part.

@gersmann
Copy link
Contributor Author

because why not :D
image

Using the generated name at least for a PostDelete hook was problematic, created too many jobs. I think in the case of ArgoCD hooks, we want the names to be unique?
@gersmann gersmann force-pushed the fix/unique-hook-names/sg branch from f50295b to 6852ee2 Compare October 28, 2025 17:26
@github-actions github-actions bot added the yaml label Oct 28, 2025
@gersmann
Copy link
Contributor Author

In order to populate this change to the charts: please update the versions in the charts monolith, microservice, workers etc as well

done

@gersmann
Copy link
Contributor Author

gersmann commented Nov 4, 2025

@andibeuge can you recheck pls?

@gersmann gersmann merged commit d368651 into main Nov 10, 2025
3 checks passed
@gersmann gersmann deleted the fix/unique-hook-names/sg branch November 10, 2025 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants