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

[NOTE] Totally wrong definition on "POST /repositories/{repo_name}/tags/{tag}/scan" API #18

Open
moooofly opened this issue Nov 6, 2018 · 0 comments
Assignees
Labels
bug Something isn't working note markdown some conclusions v1.6.0-66709daa

Comments

@moooofly
Copy link
Owner

moooofly commented Nov 6, 2018

by swagger UI

image

image

the response code should be "503 | Harbor is not deployed with Clair." because Clair service is not deployed.

by harborctl

[#382#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl repository tag scan -h
Trigger jobservice to call Clair API to scan the image identified by the repo_name and tag.

NOTE: Only project admins have permission to scan images under the project.

Usage:
  harborctl repository tag scan [flags]

Flags:
  -h, --help               help for scan
  -r, --repo_name string   (REQUIRED) The name of repository.
  -t, --tag string         (REQUIRED) The name of tag.

Global Flags:
      --config string   config file (default is $HOME/, working dir (.), and ./conf dir)
[#383#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl repository tag scan -r temp_9/hello-world -t v1
==> POST https://localhost/api/repositories/temp_9/hello-world/tags/v1/scan
<==
<== Rsp Status: 415 Unsupported Media Type
<== Rsp Body:
[#384#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working note markdown some conclusions v1.6.0-66709daa
Projects
None yet
Development

No branches or pull requests

1 participant