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

add generate images-sync-config command #472

Merged
merged 6 commits into from
Aug 28, 2024

Conversation

tashima42
Copy link
Contributor

@tashima42 tashima42 commented Aug 27, 2024

Adds the release generate rancher images-sync-config command, which generates a regsync config file, used to sync images from one registry to another.

Example usage:

export DOCKERIO_REGISTRY_USERNAME=username
export DOCKERIO_REGISTRY_PASSWORD=password
export PRIME_REGISTRY_USERNAME=username
export PRIME_REGISTRY_PASSWORD=password

release generate rancher images-sync-config -k "tashima42/rancher:v2.9.0,tashima42/rancher-agent:v2.9.0" -s docker.io -t registry.rancher.com -o ./config.yaml

regsync check --config ./config.yaml
regsync once --config ./config.yaml

briandowns
briandowns previously approved these changes Aug 28, 2024
release/rancher/rancher.go Outdated Show resolved Hide resolved
release/rancher/rancher.go Show resolved Hide resolved
@briandowns
Copy link
Contributor

Didn't mean to approve. Meant to request changes.

@tashima42 tashima42 dismissed briandowns’s stale review August 28, 2024 13:01

approved on accident

@tashima42 tashima42 self-assigned this Aug 28, 2024
@tashima42 tashima42 merged commit 1e75437 into rancher:master Aug 28, 2024
2 checks passed
@tashima42 tashima42 deleted the images-sync-config branch August 28, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants