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

Create directory automatically #680

Merged

Conversation

jnovick
Copy link
Contributor

@jnovick jnovick commented Feb 29, 2024

  • When writing to a new file, create the directory for the file if it does not already exist
  • This is useful if writing helmvalues to a new directory that is solely used for updating the image version. The ArgoCD Application can add a second source and reference the file with the ignoreMissingValueFiles flag turned on as an additional values file
  • If the directory already exists, this command does nothing.

This will be most beneficial once #663 is also merged.

@jnovick jnovick force-pushed the create-directories-automatically branch from 4a7cbe0 to 854270f Compare February 29, 2024 10:24
@codecov-commenter
Copy link

codecov-commenter commented Feb 29, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 56.15%. Comparing base (c9ed948) to head (f91491a).

Files Patch % Lines
pkg/argocd/git.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #680      +/-   ##
==========================================
- Coverage   56.16%   56.15%   -0.01%     
==========================================
  Files          31       31              
  Lines        3105     3109       +4     
==========================================
+ Hits         1744     1746       +2     
- Misses       1222     1223       +1     
- Partials      139      140       +1     

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

@jnovick
Copy link
Contributor Author

jnovick commented Apr 10, 2024

@jannfis Any hints on how to resolve the CI failures? They do not appear to be related to my actual PR. Thanks for any guidance that you can provide.

* When writing to a new file, create the directory for the file if it
  does not already exist
* This is useful if writing `helmvalues` to a new directory that is
  solely used for updating the image version. The ArgoCD Application can
  add a second source and reference the file with the
  `ignoreMissingValueFiles` flag turned on as an additional values file
* If the directory already exists, this command does nothing.

Signed-off-by: Joshua Novick <joshua.novick@hunters.ai>
@chengfang chengfang merged commit bb6280d into argoproj-labs:master Jul 1, 2024
9 checks passed
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.

None yet

3 participants