Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: allow relocating images with relok8s lib #115

Merged
merged 2 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 58 additions & 46 deletions api/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ message Config {
SourceRepo source = 1;
TargetRepo target = 2;
repeated string charts = 3;
bool relocate_container_images = 4;
}

// SourceRepo contains the required information of the source chart repository
Expand Down
1 change: 1 addition & 0 deletions cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func newSyncCmd() *cobra.Command {
syncer.WithFromDate(syncFromDate),
syncer.WithWorkdir(syncWorkdir),
syncer.WithInsecure(rootInsecure),
syncer.WithContainerImageRelocation(c.RelocateContainerImages),
)
if err != nil {
return errors.Trace(err)
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ module github.com/bitnami-labs/charts-syncer

go 1.16

// Needed so we can require asset-relocation-tool-for-kubernetes packages
// https://github.com/vmware-tanzu/asset-relocation-tool-for-kubernetes/issues/89
replace gopkg.in/yaml.v3 => github.com/atomatt/yaml v0.0.0-20200403124456-7b932d16ab90

require (
github.com/bitnami-labs/pbjson v1.1.0
github.com/containerd/containerd v1.5.8
Expand All @@ -18,6 +22,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.2.1
github.com/spf13/viper v1.8.1
github.com/vmware-tanzu/asset-relocation-tool-for-kubernetes v0.3.45
google.golang.org/protobuf v1.27.1
gopkg.in/yaml.v2 v2.4.0
helm.sh/helm/v3 v3.7.0
Expand Down
Loading