I have bash commands that copies files and folders to a target directory. After all files/folders are copied, I need to check if I need to delete a specific folder. If false, delete the directory. In helm, how do I negate the boolean true or false
Something like:
{{- if not .Values.copyExamples }}
--delete the files
{{- end }}
You can negate a test on a single value using the simple syntax:
{{- if not .Values.ssl.upstream }}
If you need to negate the result of a comparison then you can also do that:
{{- if not (contains "test" $env) }}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With