Skip to content

Commit

Permalink
Fix image registry reconcile loop
Browse files Browse the repository at this point in the history
Signed-off-by: David Vossel <[email protected]>
  • Loading branch information
davidvossel committed Oct 7, 2022
1 parent f427600 commit 17275c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func ReconcileRegistryConfig(cfg *imageregistryv1.Config, platform hyperv1.Platf
if cfg.Spec.HTTPSecret == "" {
cfg.Spec.HTTPSecret = generateImageRegistrySecret()
}
if platform == hyperv1.KubevirtPlatform || platform == hyperv1.NonePlatform {
if platform == hyperv1.KubevirtPlatform || platform == hyperv1.NonePlatform && cfg.Spec.Storage.EmptyDir == nil {
cfg.Spec.Storage = imageregistryv1.ImageRegistryConfigStorage{EmptyDir: &imageregistryv1.ImageRegistryConfigStorageEmptyDir{}}
}
}
Expand Down

0 comments on commit 17275c7

Please sign in to comment.