upbound / up

The @upbound CLI
Apache License 2.0
50 stars 42 forks source link

feat: move export to dedicated module #439

Closed phisco closed 4 months ago

phisco commented 4 months ago

Description of your changes

This PR:

I have:

How has this code been tested

The output of an export using the code from main:

image

The output of an export using the code from this PR:

image

The diff between the two generated archives using pkgdiff foo.tar.gz main.tar.gz, returned only timestamps differences.

Import:

$ kubectl create secret generic super-secret-secret --from-literal=password=supersecret
$ go run github.com/upbound/up/cmd/up alpha migration export --output foo.tar.gz
$ go run github.com/upbound/up/cmd/up alpha migration import -i foo.tar.gz
$ k get secret super-secret-password -o yaml