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

Images built with Kaniko dont show up in the portal #6811

Closed
kminhc opened this issue Jan 23, 2019 · 8 comments
Closed

Images built with Kaniko dont show up in the portal #6811

kminhc opened this issue Jan 23, 2019 · 8 comments

Comments

@kminhc
Copy link

kminhc commented Jan 23, 2019

Hey, just wanted to report that images built with Kaniko dont show up in the Harbor UI, but are in fact pushed to the Registry and pullable. I don't know if fixing this is in scope.

Harbor Version: v1.7.0-3b3311b4
Kaniko used in container with: gcr.io/kaniko-project/executor:debug

kind regards

@ghost
Copy link

ghost commented Jan 29, 2019

Interesting; we've not tested this yet. The image was created by Kaniko; what about the client that you used to push the image to Harbor?

@kminhc
Copy link
Author

kminhc commented Jan 30, 2019

I used kaniko to push directly to the registry. It appears that after repushing the same image with the docker client, all the following images built with kaniko are displayed correctly in the UI. Maybe this needs further testing.

@vaxinate
Copy link

Hello, friends! I am also experiencing this problem! There is another github user who posted a similar issue over on the kaniko repository GoogleContainerTools/kaniko#539

@shanesiebken
Copy link

I don't know how Harbor ingests the webhooks from Docker registry (I'm assuming that's how you populate your database), but Kaniko uses the go-containerregistry library to push images to registries. ITT that package streams images up in such a way that the registry Notifications output is different than when pushing with a Docker client. I have seen the same issue with Portus (another registry front-end out of OpenSUSE) and was seeing it drop a lot of notifications on the floor in its logs. I haven't dug into Harbor, but I wouldn't be surprised if this were a similar issue.

@vaxinate
Copy link

Hmmm. Thanks for the insight. I don't know Go too well, but I guess I'll see if I can confirm/deny your idea. I'll update if I manage to figure anything out.

@shanesiebken
Copy link

I actually have some cycles today to take a look at this today, I think. I will dig in and see what I can find out!

@vaxinate
Copy link

I haven't really had time to try and figure out why this doesn't work, but I was trying to dig around in the code just with the info that @shanesiebken suggested and landed on this chunk of code. I'm doing some a healthy amount of guessing, but this may be the location of the problem? It may also be useless, but I figured I'd drop a breadcrumb here. I would like to figure out how to run Harbor for development so I can test and try to fix it, but my time is limited. I'll keep checking back and updating when I have new developments.

@reasonerjt
Copy link
Contributor

after #6689 is merged this should be fixed.
I'm closing it, please re-open if you are still seeting the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants