diff --git a/internal/controller/supervisorconfig/activedirectoryupstreamwatcher/active_directory_upstream_watcher.go b/internal/controller/supervisorconfig/activedirectoryupstreamwatcher/active_directory_upstream_watcher.go index 1a4865eed..cba7d0bd0 100644 --- a/internal/controller/supervisorconfig/activedirectoryupstreamwatcher/active_directory_upstream_watcher.go +++ b/internal/controller/supervisorconfig/activedirectoryupstreamwatcher/active_directory_upstream_watcher.go @@ -94,10 +94,6 @@ func (g *activeDirectoryUpstreamGenericLDAPImpl) Generation() int64 { return g.activeDirectoryIdentityProvider.Generation } -func (g *activeDirectoryUpstreamGenericLDAPImpl) Status() upstreamwatchers.UpstreamGenericLDAPStatus { - return &activeDirectoryUpstreamGenericLDAPStatus{g.activeDirectoryIdentityProvider} -} - type activeDirectoryUpstreamGenericLDAPSpec struct { activeDirectoryIdentityProvider idpv1alpha1.ActiveDirectoryIdentityProvider } diff --git a/internal/controller/supervisorconfig/ldapupstreamwatcher/ldap_upstream_watcher.go b/internal/controller/supervisorconfig/ldapupstreamwatcher/ldap_upstream_watcher.go index a34b6992b..c56f1f76f 100644 --- a/internal/controller/supervisorconfig/ldapupstreamwatcher/ldap_upstream_watcher.go +++ b/internal/controller/supervisorconfig/ldapupstreamwatcher/ldap_upstream_watcher.go @@ -50,10 +50,6 @@ func (g *ldapUpstreamGenericLDAPImpl) Generation() int64 { return g.ldapIdentityProvider.Generation } -func (g *ldapUpstreamGenericLDAPImpl) Status() upstreamwatchers.UpstreamGenericLDAPStatus { - return &ldapUpstreamGenericLDAPStatus{g.ldapIdentityProvider} -} - type ldapUpstreamGenericLDAPSpec struct { ldapIdentityProvider idpv1alpha1.LDAPIdentityProvider } @@ -128,10 +124,6 @@ type ldapUpstreamGenericLDAPStatus struct { ldapIdentityProvider idpv1alpha1.LDAPIdentityProvider } -func (s *ldapUpstreamGenericLDAPStatus) Conditions() []metav1.Condition { - return s.ldapIdentityProvider.Status.Conditions -} - // UpstreamLDAPIdentityProviderICache is a thread safe cache that holds a list of validated upstream LDAP IDP configurations. type UpstreamLDAPIdentityProviderICache interface { SetLDAPIdentityProviders([]upstreamprovider.UpstreamLDAPIdentityProviderI) diff --git a/internal/controller/supervisorconfig/upstreamwatchers/upstream_watchers.go b/internal/controller/supervisorconfig/upstreamwatchers/upstream_watchers.go index ac1ed370e..32c42dfa6 100644 --- a/internal/controller/supervisorconfig/upstreamwatchers/upstream_watchers.go +++ b/internal/controller/supervisorconfig/upstreamwatchers/upstream_watchers.go @@ -99,7 +99,6 @@ type UpstreamGenericLDAPIDP interface { Name() string Namespace() string Generation() int64 - Status() UpstreamGenericLDAPStatus } type UpstreamGenericLDAPSpec interface {