carvel-dev / carvel-dev/kbld

Add a flag to create file from output

Open
#49 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
329
Forks
52
PR merge metrics
No merged PRs in 30d

Description

Imagine following use case:

```sh
helm template my-app ./umbrella-chart | kbld -f - -f umbrella-chart/kbld-sources.yaml --lock-output .umbrella-state/kbld.lock.yml --registry-verify-certs=false > ./.umbrella-state/state.yaml
```

An error by `kbld` will clear the file `./.umbrella-state/state.yaml`. It's not possible to handle this case in an OS-independent construct. Providing a flag to create a file would be handy.

```sh
kbld -f - -f umbrella-chart/kbld-sources.yaml -o .umbrella-state/state.yaml
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.