Is it safe to rename Git repository specified in GitRepository? #5145
-
I have a Git repository hosted on GitHub. In theory, I should not need to change the However, to keep things clean, I would like to update the apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
spec:
url: ssh://[email protected]/contoso/abc.git # rename to github.com/contoso/xyz.git
... Is this as trivial and Flux will simply re-fetch from the new URL and continue its business as nothing happened? Or, should I prepare for anything unexpected like deleting deployments, re-fetching from Git, re-creating deployments? The only discussion about renaming anything w.r.t. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes but you need to update the SSH private key to match the new repo deploy key, GitHub does not allow the reuse of deploy keys. |
Beta Was this translation helpful? Give feedback.
Yes but you need to update the SSH private key to match the new repo deploy key, GitHub does not allow the reuse of deploy keys.