From c1e0a2834d547beecb363380ae9863c2ad3834cc Mon Sep 17 00:00:00 2001 From: "Kwiatosz, Krzysztof" Date: Mon, 29 Apr 2024 17:34:11 +0200 Subject: [PATCH] Emit warning event when internal docker registry is configured --- components/operator/internal/state/registry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/operator/internal/state/registry.go b/components/operator/internal/state/registry.go index 9e546d03e..befc2d5f4 100644 --- a/components/operator/internal/state/registry.go +++ b/components/operator/internal/state/registry.go @@ -17,8 +17,8 @@ const ( extRegSecNotInSpecFormat = "actual registry configuration comes from %s/%s and it is different from spec.dockerRegistry.secretName. Reflect %s secret in the secretName field" internalEnabledAndSecretNameUsedMessage = "spec.dockerRegistry.enableInternal is true and spec.dockerRegistry.secretName is used. Delete the secretName field or set the enableInternal value to false" internalRegistryEventType = "Warning" - internalRegistryEventReason = "Internal Docker Registry option configured" - internalRegistryEventMessage = "Be advised: Internal Docker Registry is not Highly Available registry and should be used for development purpose only" + internalRegistryEventReason = "InternalDockerRegistryEnabled" + internalRegistryEventMessage = "Internal Docker Registry is not Highly Available registry and should be used for development purpose only" ) func sFnRegistryConfiguration(ctx context.Context, r *reconciler, s *systemState) (stateFn, *ctrl.Result, error) {