jlewi / hydros

hydros automates hydrating and committing configuration
Apache License 2.0
4 stars 0 forks source link

Apply RepoConfig should exclude itself #96

Closed jlewi closed 4 months ago

jlewi commented 4 months ago

Right now when we apply RepoConfig it will check out a source repository and then apply all resources it finds. This can cause a loop. Because applying a RepoConfig will end up trying to apply that RepoConfg again.

jlewi commented 4 months ago

Actually this shouldn't happen because RepoConfig has an allow list https://github.com/jlewi/hydros/blob/48988a89c2dbabe5fb7f4e6970fb8c403d8c8c83/pkg/gitops/repocontroller.go#L209