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

chore: add configurable ttl to post install hook #6766

Closed

Conversation

danielloader
Copy link

@danielloader danielloader commented Aug 15, 2024

Fixes #6765

Description

Added configuration option for the ttlSecondsAfterFinished field on the post install job so that Argo CD based installs can complete (as Argo CD needs to reap the job rather than the internal controller).

How was this change tested?

Forked the chart, installed it with Argo CD with a value of 30 for .Values.postInstallHook.ttlSecondsAfterFinished.

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@danielloader danielloader requested a review from a team as a code owner August 15, 2024 07:28
@danielloader danielloader requested a review from ellistarn August 15, 2024 07:28
Copy link

netlify bot commented Aug 15, 2024

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit f50ffb6
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/66c481e4678c420008eab373
😎 Deploy Preview https://deploy-preview-6766--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10400404075

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.327%

Totals Coverage Status
Change from base Build 10396139252: 0.0%
Covered Lines: 5921
Relevant Lines: 7464

💛 - Coveralls

@inclemenstv
Copy link

I had the same issues, please fix it

@@ -12,7 +12,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: {{ .Values.postInstallHook.ttlSecondsAfterFinished }}
Copy link
Contributor

Choose a reason for hiding this comment

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

This mainly looks good, but I think we need to drop the annotation for hook-succeeded and hook-failed for the helm.sh/hook-delete-policy: https://helm.sh/docs/topics/charts_hooks/#hook-deletion-policies This will ensure that we are drive the clean-up process as part of the ttlSecondsAfterFinished

Copy link
Author

Choose a reason for hiding this comment

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

Makes sense to move these annotations out to a .Values.postInstallHook.annotations map then?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, if user want that level of configuration that would make sense

@danielloader
Copy link
Author

Closing as the job has been removed.

@danielloader danielloader deleted the configurable-ttl-post-install branch August 22, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Post Install Hook doesn't ever sync via ArgoCD
4 participants