diff --git a/internal/controller/supervisorconfig/generator/secret_helper.go b/internal/controller/supervisorconfig/generator/secret_helper.go index 672083d8..3c217387 100644 --- a/internal/controller/supervisorconfig/generator/secret_helper.go +++ b/internal/controller/supervisorconfig/generator/secret_helper.go @@ -84,10 +84,6 @@ type symmetricSecretHelper struct { updateCacheFunc func(cacheKey string, cacheValue []byte) } -func (s *symmetricSecretHelper) Handles(obj metav1.Object) bool { - return IsFederationDomainSecretOfType(obj, s.secretType()) -} - func (s *symmetricSecretHelper) NamePrefix() string { return s.namePrefix } // Generate implements SecretHelper.Generate(). @@ -172,6 +168,10 @@ func (s *symmetricSecretHelper) secretType() corev1.SecretType { } } +func (s *symmetricSecretHelper) Handles(obj metav1.Object) bool { + return IsFederationDomainSecretOfType(obj, s.secretType()) +} + func IsFederationDomainSecretOfType(obj metav1.Object, secretType corev1.SecretType) bool { secret, ok := obj.(*corev1.Secret) if !ok {