Reorder functions
This commit is contained in:
parent
fc250f98d0
commit
cff2dc1379
@ -84,10 +84,6 @@ type symmetricSecretHelper struct {
|
|||||||
updateCacheFunc func(cacheKey string, cacheValue []byte)
|
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 }
|
func (s *symmetricSecretHelper) NamePrefix() string { return s.namePrefix }
|
||||||
|
|
||||||
// Generate implements SecretHelper.Generate().
|
// 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 {
|
func IsFederationDomainSecretOfType(obj metav1.Object, secretType corev1.SecretType) bool {
|
||||||
secret, ok := obj.(*corev1.Secret)
|
secret, ok := obj.(*corev1.Secret)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user