Skip to content

Commit

Permalink
the address needs to change in this case
Browse files Browse the repository at this point in the history
  • Loading branch information
bdw617 committed Nov 1, 2023
1 parent a5d9cf2 commit 6698814
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/internal/cluster/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ func (c *Cluster) InitZarfState(initOptions types.ZarfInitOptions) error {
}
if helpers.IsNotZeroAndNotEqual(initOptions.RegistryInfo, state.RegistryInfo) {

if initOptions.RegistryInfo.Address != "" {
state.RegistryInfo.Address = initOptions.RegistryInfo.Address
}
message.Warn("Detected a change in Image Registry init options on a re-init. Ignoring... To update run:")

message.ZarfCommand("tools update-creds registry")
}
if helpers.IsNotZeroAndNotEqual(initOptions.ArtifactServer, state.ArtifactServer) {
Expand Down

0 comments on commit 6698814

Please sign in to comment.