Use own private key with eksctl install flux
Why do you want this feature?
- We want to use own private key with
eksctl install flux- To skip the step of registering the new key created by
eksctl install flux
- To skip the step of registering the new key created by
What feature/behavior/change do you want?
- We want the key specified in
git-private-ssh-key-pathto be secrets.
@cw-sakamoto, do you mean you would like to re-use a pre-existing Kubernetes Secret containing your private SSH key? If so, it should just work w/o providing anything via --git-private-ssh-key-path as we already check for the existence of the Flux Secret here: https://github.com/weaveworks/eksctl/blob/2fe768da7cb91c5cde630c4ea1ef729038672954/pkg/gitops/flux/installer.go#L301-L313
Also, FYI, for various reasons, we've been thinking of removing --git-private-ssh-key-path and having instead the user flow described in #1533. Would this help in any way?
@marccarre Thanks for your comment! When I tried with 0.6.0, I felt that the secrets I created by this document were deleted, but I might have misunderstood. When I checked again with the latest 0.8.0, the secrets were not deleted and remained..😀
This ticket will be closed as we can use own private key in any way.
I think https://github.com/weaveworks/eksctl/issues/1533 is also very good! Operations can be easily understood if unified with the eksctl not kubectl
@cw-sakamoto, glad it is working for you now! 🙂👍 For reference, the behaviour you needed was introduced in https://github.com/weaveworks/eksctl/pull/1225, in particular:
Also note that the Secret for Flux's private SSH key isn't changed, in order to avoid the user having to reconfigure Flux access to their repository.