Skip to content

Commit

Permalink
Emit warning event when internal docker registry is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiatekus committed Apr 30, 2024
1 parent c1e0a28 commit c367548
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/operator/internal/state/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ func addRegistryConfigurationWarnings(s *systemState) {
}

func setInternalRegistryConfig(ctx context.Context, r *reconciler, s *systemState) error {
r.Event(&s.instance, internalRegistryEventType, internalRegistryEventReason, internalRegistryEventMessage)
if s.statusSnapshot.DockerRegistry != "internal" {
r.Event(&s.instance, internalRegistryEventType, internalRegistryEventReason, internalRegistryEventMessage)
}
s.instance.Status.DockerRegistry = "internal"
s.flagsBuilder.WithRegistryEnableInternal(
*s.instance.Spec.DockerRegistry.EnableInternal,
Expand Down

0 comments on commit c367548

Please sign in to comment.