Optional: There's still a bit of duplication here. This could be extracted into a shared function; since this piece of code sets the status on a concrete registry/replication/repository type, that function would instead need to operate on a generic interface { SetStatus(registriesv1alpha1.RegistryStatus) } type.
https://github.com/mittwald/harbor-operator/pull/3#discussion_r420631335
Optional: There's still a bit of duplication here. This could be extracted into a shared function; since this piece of code sets the status on a concrete registry/replication/repository type, that function would instead need to operate on a generic
interface { SetStatus(registriesv1alpha1.RegistryStatus) }
type.Originally posted by @martin-helmich in https://github.com/mittwald/harbor-operator/pull/3