From 287a5d225a5c823ff19f84abeaa28506d272ac41 Mon Sep 17 00:00:00 2001 From: Margo Crawford Date: Tue, 27 Jul 2021 10:23:05 -0700 Subject: [PATCH] Change SearchBaseFound condition success reason to be a string constant --- .../active_directory_upstream_watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/supervisorconfig/activedirectoryupstreamwatcher/active_directory_upstream_watcher.go b/internal/controller/supervisorconfig/activedirectoryupstreamwatcher/active_directory_upstream_watcher.go index 60702e5a..d3041180 100644 --- a/internal/controller/supervisorconfig/activedirectoryupstreamwatcher/active_directory_upstream_watcher.go +++ b/internal/controller/supervisorconfig/activedirectoryupstreamwatcher/active_directory_upstream_watcher.go @@ -128,7 +128,7 @@ func (s *activeDirectoryUpstreamGenericLDAPSpec) DetectAndSetSearchBase(ctx cont return &v1alpha1.Condition{ Type: upstreamwatchers.TypeSearchBaseFound, Status: v1alpha1.ConditionTrue, - Reason: "Success", + Reason: upstreamwatchers.ReasonSuccess, Message: "Successfully fetched defaultNamingContext to use as default search base from RootDSE.", } }