Giter Site home page Giter Site logo

Comments (10)

djeebus avatar djeebus commented on July 28, 2024 1

Whoops, yup, definitely missed that. This should get us that support though. Thanks for the report!

from kubechecks.

bauerjs1 avatar bauerjs1 commented on July 28, 2024 1

Great, thanks a lot!

Maybe a clearer description would be something like "The endpoint to listen on for incoming PR/MR event webhooks"? The best explanation imho would be an example configuration 🙂

from kubechecks.

djeebus avatar djeebus commented on July 28, 2024 1

Ah, good catch, that hardcoded .com does indicate there's some weird url hackery going on there. Let me try and clean that up real quick. Thanks for the debugging effort!

from kubechecks.

bauerjs1 avatar bauerjs1 commented on July 28, 2024 1

Looks like this fixes the issue. Kubechecks calls the correct GitLab and is able to retrieve its user info and post comments in the MR 👍🏻

Thanks a lot! :)

from kubechecks.

djeebus avatar djeebus commented on July 28, 2024

The KUBECHECKS_WEBHOOK_URL_BASE env var is the url that, for example, gitlab should send their webhook requests in order to trigger kubechecks. I'm going to see if I can make that documentation a little less obtuse, it's definitely confusing.

from kubechecks.

bauerjs1 avatar bauerjs1 commented on July 28, 2024

I have tried so set up Kubechecks with the dev image containing your latest changes but I am still not getting it to work completely. Currently, it fails while trying to clone the repo:

4:21PM ERR unable to clone repository, Cloning into '/tmp/kubechecks-mr-clone1436125826'...
fatal: could not read Username for 'https://git.mycompany.com': No such device or address
 error="exit status 128"
4:21PM ERR unable to clone repo locally error="exit status 128"

The could not read Username error could mean that at this point, there might be some credential helper missing or something. However it took me to this line, which also looks like it is still hard-coded to gitlab.com:

cmd = exec.Command("echo", fmt.Sprintf("https://%s:%s@%s.com", user, viper.GetString("vcs-token"), viper.GetString("vcs-type")))

I am not sure though, if that is the cause of the could not read Username error.

EDIT: Or maybe credentials are set correctly for git.mycompany.com but git does not recognize them, because the call goes to gitlab.com 💡

from kubechecks.

djeebus avatar djeebus commented on July 28, 2024

@bauerjs1 mind taking a look at the pr image built in #55 and see if that works for you?

from kubechecks.

bauerjs1 avatar bauerjs1 commented on July 28, 2024

@djeebus sure, it's just that I am on holidays 🙃 Right now, the image is not available, anymore. I might have one more chance tomorrow, after that I am out for a couple of weeks...

from kubechecks.

bauerjs1 avatar bauerjs1 commented on July 28, 2024

@djeebus I am back and happy to test your changes. From Monday on, I will check back regularly for an available test build.
Cheers

from kubechecks.

djeebus avatar djeebus commented on July 28, 2024

Should be back up; let me know how it goes?

from kubechecks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.