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

fix: Application controller can run out of disk space on '/dev/shm' (#19201) #19202

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jgwest
Copy link
Member

@jgwest jgwest commented Jul 24, 2024

Closes #19201

This PR allow the user to customize which path with the application controller container is used to store temporary kubernetes manifests.

See parent issue, and gitops-engine issue/PR, for details.

This PR:

  • Application controller now reads manifest generation path from ARGOCD_APPLICATION_CONTROLLER_MANIFEST_GENERATION_PATH
    • application controller startup command updated
    • Application controller Deployment/StatefulSet updated to optionally read the value from argocd-cmd-params-cm
  • One can customize this path via controller.manifest.generation.path in argocd-cmd-params-cm
    • I've likewise updated the argocd-cmd-params-cm docs
  • Integrates with changes made in gitops-engine PR, to allow the customization of manifest gen path: Enable consumers of gitops-engine API to specify an alternative temp directory for generated manifests, as an alternative '/dev/shm' gitops-engine#613
    • Any location in the code that was using the old behaviour (use '/dev/shm') will continue to use the old behaviour.
    • This includes unit test and git repo https creds in util/git/creds.go

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

Copy link

bunnyshell bot commented Jul 24, 2024

❗ Preview Environment deployment failed on Bunnyshell

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to remove the environment

Copy link

bunnyshell bot commented Jul 24, 2024

✅ Preview Environment created on Bunnyshell but will not be auto-deployed

See: Environment Details

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

go.mod Outdated
@@ -292,6 +292,7 @@ require (
)

replace (
github.com/argoproj/gitops-engine => github.com/jgwest/gitops-engine v0.1.3-0.20240717115355-a88f58020142
Copy link
Member Author

@jgwest jgwest Jul 24, 2024

Choose a reason for hiding this comment

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

Note to self/reviewer: Ensure this is removed after gitops-engine PR is merged.

@jgwest jgwest force-pushed the custom-manifest-gen-path-june-2024 branch 2 times, most recently from 1192e52 to bcc5c2d Compare July 26, 2024 20:50
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

Attention: Patch coverage is 85.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 55.87%. Comparing base (9af0ff5) to head (cbbf2bb).

Files Patch % Lines
util/git/creds.go 60.00% 2 Missing ⚠️
cmd/argocd/commands/admin/app.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19202   +/-   ##
=======================================
  Coverage   55.87%   55.87%           
=======================================
  Files         316      316           
  Lines       43794    43798    +4     
=======================================
+ Hits        24471    24474    +3     
  Misses      16775    16775           
- Partials     2548     2549    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jgwest jgwest force-pushed the custom-manifest-gen-path-june-2024 branch from bcc5c2d to 66222f1 Compare August 27, 2024 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant