Replies: 2 comments 9 replies
-
Credentials are stored in a secret that can be shared between multiple GitRepositories, changing the secret once will make it apply to all repos.
A GitRepository can be created with You have valid point about duplicating the repos per version but I think it's a good tradeoff compared to the alternative of adding a 2nd type to all the source kinds. |
Beta Was this translation helpful? Give feedback.
-
Looking at #107 (comment), it may be a better option to introduce an optional field to the |
Beta Was this translation helpful? Give feedback.
-
The
GitRepository
type gives both access to a git repository and a policy for using it. This scheme has the benefit of having few kinds of object to think about, but does have some downsides:GitRepository
objects, either in anticipation, or at the point the versions diverge;GitRepository
a square peg in a triangular hole.This suggests it might be useful to separate the means of access to a git repository from the policy for using it. The policy would be the source, used by kustomizations and so on.
It introduces an extra kind of object to deal with, and thus an extra step when setting things up (though it can probably be smoothed over in the user interface). In mitigation of that, git access mostly doesn't need to be altered once set up, with policies getting most of the attention.
Beta Was this translation helpful? Give feedback.
All reactions