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

zarf init --registry flag gets cached #2723

Open
supcom234 opened this issue Jul 12, 2024 · 2 comments
Open

zarf init --registry flag gets cached #2723

supcom234 opened this issue Jul 12, 2024 · 2 comments

Comments

@supcom234
Copy link

WARNING Retrying (1/3): Get "https://10.254.2.170:31999/v2/": dial tcp 10.254.2.170:31999: connect: connection refused; Get "http://10.254.2.170:31999/v2/": dial tcp 10.254.2.170:31999: connect: connection refused ^C ERROR: execution cancelled due to an interrupt ubuntu@server1:~/zarf$ zarf init --components git-server --confirm --registry-url 127.0.0.1:31999 --registry-push-username zarf-push --registry-push-password password --registry-pull-username zarf-pull --registry-pull-password password

--registry-url gets cached as the error has 10.254.2.170 when I explicitly set it to 127.0.0.1
I tried
zarf tools clear-cache
and
zarf tools update-creds

The only thing that clears it was
zarf destroy --confirm
This was not intuitive as command line flags should override whatever was cached.

@lucasrod16
Copy link
Contributor

@supcom234 if you intend on using the internal Zarf registry at 127.0.0.1:31999, you do not need to use any of the --registry-* flags with zarf init. The --registry-* flags allow you to use Zarf with an already existing registry and tells Zarf to not deploy a registry for you: https://docs.zarf.dev/ref/init-package/#using-external-registries

@supcom234
Copy link
Author

@lucasrod16 I had to use an external docker registry because if I use the internal registry that gets deployed within Kubernetes you cant reboot, power down / power on the VM. The internal registry does not recover due to a cyclic dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants