allenporter / flux-local

flux-local is a set of tools and libraries for managing a local flux gitops repository focused on validation steps to help improve quality of commits, PRs, and general local testing.
https://allenporter.github.io/flux-local/
Apache License 2.0
155 stars 22 forks source link

Update flux build to have parity with other flux commands #798

Closed allenporter closed 1 month ago

allenporter commented 1 month ago

This is a breaking change that updates the format of the flux build command to have parity with get and diff commands.

Example to build a single kustomziation:

$ flux-local build ks apps --path tests/testdata/cluster/

Example to inflate a single helm release:

$ flux-local build hr podinfo -n podinfo --path tests/testdata/cluster

The old behavior flux-local build tests/testdata/cluster/ can still be achieved with build all:

$ flux-local build all tests/testdata/cluster/

Fixes #795

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.40%. Comparing base (e59d232) to head (c08e376).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #798 +/- ## ========================================== + Coverage 93.22% 93.40% +0.17% ========================================== Files 20 20 Lines 2229 2288 +59 ========================================== + Hits 2078 2137 +59 Misses 151 151 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.