Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageUpdateAutomation not working bacause of git clone error #228

Closed
Tracked by #2593
AshuDubey91 opened this issue Sep 30, 2021 · 3 comments
Closed
Tracked by #2593

ImageUpdateAutomation not working bacause of git clone error #228

AshuDubey91 opened this issue Sep 30, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@AshuDubey91
Copy link

AshuDubey91 commented Sep 30, 2021

I am using github enterprise as gitRepositorySource in ImageUpdateAutomation.
image-automation-controller image : ghcr.io/fluxcd/image-automation-controller:v0.14.0
git source configuration:

apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
  name: k8source-demo
  namespace: flux-system
spec:
  interval: 5m0s
  ref:
    branch: master
  secretRef:
    name: flux-system
  url: https://GHE-url

imageupdateAutomation configuration :

apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageUpdateAutomation
metadata:
  name: k8-auto-update
  namespace: flux-system
spec:
  interval: 1m0s
  sourceRef:
    apiVersion: source.toolkit.fluxcd.io/v1beta1
    kind: GitRepository
    name: k8source-demo
  git:
    checkout:
      ref:
        branch: master
    commit:
      author:
        email: fluxcdbot@github.com
        name: fluxcdbot
      messageTemplate: 'updated image'
    push:
      branch: feature/auto-update
  update:
    path: ./cluster
    strategy: Setters

I am getting following error while enabling it.

$ flux get image update k8-auto-update
NAME         READY   MESSAGE                                                                                                                                         LAST RUN        SUSPENDED
k8-auto-update False   unable to clone 'GHE url', error: server requires authentication that we do not support                     False

I have used ghe-auth-token as secret in source. This source configuration perfectly works for kustomizations for deployments on k8 clusters whereas when I am using it in imageupdateAutomation it is failing with above error.

Could you please suggest any solution to this? or may be point out what is wrong here?

@ilya-git
Copy link

ilya-git commented Oct 14, 2021

Check this issue, maybe it's the same bug?

@pjbgf
Copy link
Member

pjbgf commented Mar 22, 2022

@AshuDubey91 thank you for reporting this. The last few months we have made several changes to the way we connect to git repositories. I believe image-automation controller version v0.21.0 may resolve your issue as it upgrades out libgit2 implementation to version 1.3.0.

This will require a redeploy of all components so I would recommend doing so via flux bootstrap using the flux cli version v0.28.0 which will be released tomorrow.

Can you test it again with the version above and let us know how you get on please?

@pjbgf pjbgf added the bug Something isn't working label Mar 22, 2022
@pjbgf
Copy link
Member

pjbgf commented May 27, 2022

We have extensively increased our test coverage in the last while, which leads me to think this is no longer a problem.

Closing for lack of activity, happy to reopen in case of further reports of the controller not being able to clone GitHub Enterprise repositories.

@pjbgf pjbgf closed this as completed May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants