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

Add template function isFile #2045

Merged
merged 2 commits into from
Mar 31, 2022
Merged

Add template function isFile #2045

merged 2 commits into from
Mar 31, 2022

Conversation

itscaro
Copy link
Contributor

@itscaro itscaro commented Jan 12, 2022

My use case is to check for file existence before using it with readFile, or we might implement must functions instead.

For now as a workaround, I'm using something like if eq "ok" (exec test -f <file> && echo "ok" || echo "ko") to do the job :-)

@mumoshu
Copy link
Collaborator

mumoshu commented Jan 23, 2022

Linking #766

@agorgl
Copy link

agorgl commented Mar 21, 2022

Would love to see this!

Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks as always for your contribution ☺️

@mumoshu mumoshu merged commit ed436ba into roboll:master Mar 31, 2022
@mhienle
Copy link

mhienle commented Jul 21, 2022

Can you please give an example of how the funtion should be used inside a helmfile.yaml?

@jamie-sweeney
Copy link

jamie-sweeney commented Aug 23, 2022

I also am interested in seeing a simple example for this use-case, as I am encountering hurdles in usage;
if I succeed I will post my simple example.

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.

5 participants