Open FranziskusWild opened 7 months ago
You can create the flux-system
secret before running bootstrap, and source-controller will use the know_hosts you've set in cluster. The SSH secret format is documented here: https://fluxcd.io/flux/components/source/gitrepositories/#ssh-authentication
Describe the bug
After bootstraping flux (using gitlab with ssh deploy key) the git repo
flux-system
couldn't sync. I found that the known_hosts in the flux-system secret are not set according to the used ssh-key-algorithm, but to the default ecdsa.The bootstrap command gives the following result:
Git repo fails with error
Ready: Unknown Status: building artifact
Steps to reproduce
flux bootstrap git \ --url=ssh://git@gitlab.com/... \ --branch=main \ --private-key-file=... \ --password=... \ --path=clusters/... \ --ssh-key-algorithm ed25519 \
Expected behavior
I would expect the bootstarpping process to go forth, especially the git_repo to be able to sync
Screenshots and recordings
No response
OS / Distro
Fedora 39
Flux version
v2.1.0
Flux check
► checking prerequisites ✗ flux 2.1.0 <2.2.2 (new version is available, please upgrade) ✗ Kubernetes version v1.22.9 does not match >=1.25.0-0 ► checking controllers ✔ helm-controller: deployment ready ► ghcr.io/fluxcd/helm-controller:v0.36.0 ✔ image-automation-controller: deployment ready ► ghcr.io/fluxcd/image-automation-controller:v0.36.0 ✔ image-reflector-controller: deployment ready ► ghcr.io/fluxcd/image-reflector-controller:v0.30.0 ✔ kustomize-controller: deployment ready ► ghcr.io/fluxcd/kustomize-controller:v1.1.0 ✔ notification-controller: deployment ready ► ghcr.io/fluxcd/notification-controller:v1.1.0 ✔ source-controller: deployment ready ► ghcr.io/fluxcd/source-controller:v1.1.0 ► checking crds ✔ alerts.notification.toolkit.fluxcd.io/v1beta2 ✔ buckets.source.toolkit.fluxcd.io/v1beta2 ✔ gitrepositories.source.toolkit.fluxcd.io/v1 ✔ helmcharts.source.toolkit.fluxcd.io/v1beta2 ✔ helmreleases.helm.toolkit.fluxcd.io/v2beta1 ✔ helmrepositories.source.toolkit.fluxcd.io/v1beta2 ✔ imagepolicies.image.toolkit.fluxcd.io/v1beta2 ✔ imagerepositories.image.toolkit.fluxcd.io/v1beta2 ✔ imageupdateautomations.image.toolkit.fluxcd.io/v1beta1 ✔ kustomizations.kustomize.toolkit.fluxcd.io/v1 ✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2 ✔ providers.notification.toolkit.fluxcd.io/v1beta2 ✔ receivers.notification.toolkit.fluxcd.io/v1 ✗ check failed
Git provider
GitLab
Container Registry provider
No response
Additional context
No response
Code of Conduct