helm-secrets icon indicating copy to clipboard operation
helm-secrets copied to clipboard

helm_wrapper does a verbose rm for cleanup interfering with templating

Open ilionblaze opened this issue 5 years ago • 1 comments

Due to the verbose flag in the cleanup code for helm_wrapper, decrypted filenames are output:

    # cleanup on-the-fly decrypted files
    [[ ${#decfiles[@]} -gt 0 ]] && rm -v "${decfiles[@]}"

This means you can't run helm secrets template -f values.yaml -f secrets.yaml ./ > template.yaml without having to edit the file.

Removing the -v would fix this, or adding a new flag to run a silent cleanup. I suspect the goal is to avoid new flags which may interfere with helm compatibility?

ilionblaze avatar Jul 05 '19 19:07 ilionblaze

+1

really block from using tools like Tilt (tilt.dev). Where we generate k8 specs via helm-template.

kavirajk avatar Aug 06 '19 16:08 kavirajk