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] API "GET /chartrepo/{repo}/charts/{name}/{version}/labels" not work as expect #44

Open
moooofly opened this issue Feb 5, 2019 · 0 comments
Labels
bug Something isn't working note markdown some conclusions v1.6.0-66709daa

Comments

@moooofly
Copy link
Owner

moooofly commented Feb 5, 2019

make a test from swagger UI, and get

image

image

image

image

image

test from CLI

[#127#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl chartrepo chart -h
The subcommand of '/chartrepo/{repo}/charts' hierachy.

Usage:
  harborctl chartrepo chart [flags]
  harborctl chartrepo chart [command]

Available Commands:
  delete      Delete all the versions of the specified chart.
  get         Get all the versions of the specified chart.
  label       '/chartrepo/{repo}/charts/{name}/{version}/labels' API.
  list        Get all the charts under the specified project.
  upload      Upload a chart file to the specified project.

Flags:
  -h, --help   help for chart

Global Flags:
      --address string   The address of target endpoint. (default "localhost")
      --config string    config file (default is $HOME/, working dir (.), and ./conf dir)

Use "harborctl chartrepo chart [command] --help" for more information about a command.
[#128#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$
[#128#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$
[#128#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl chartrepo chart label -h
'The subcommand of '/chartrepo/{repo}/charts/{name}/{version}/labels' hierachy.

Usage:
  harborctl chartrepo chart label [flags]
  harborctl chartrepo chart label [command]

Available Commands:
  get         Return the attahced labels of the specified chart version.

Flags:
  -h, --help   help for label

Global Flags:
      --address string   The address of target endpoint. (default "localhost")
      --config string    config file (default is $HOME/, working dir (.), and ./conf dir)

Use "harborctl chartrepo chart label [command] --help" for more information about a command.
[#129#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$
[#129#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl chartrepo chart label get -h
This endpoint is for user to return the attahced labels of the specified chart version.

Usage:
  harborctl chartrepo chart label get [flags]

Flags:
  -c, --chart_name string      (REQUIRED) The chart name
  -v, --chart_version string   (REQUIRED) The chart version
  -h, --help                   help for get
  -n, --project_name string    (REQUIRED) The project name

Global Flags:
      --address string   The address of target endpoint. (default "localhost")
      --config string    config file (default is $HOME/, working dir (.), and ./conf dir)
[#130#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl chartrepo chart label get -c charts -n redis -v 5.4.0
==> GET https://localhost/api/chartrepo/charts/charts/redis/5.4.0/labels
<==
<== Rsp Status: 404 Not Found
<== Rsp Body: <!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>404 - Page Not Found</title>
<style>

*{
	maring: 0;
	padding: 0;
}
...
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