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

Missing tags in ' scw registry image get/list' #4229

Open
ulric37 opened this issue Oct 26, 2024 · 2 comments
Open

Missing tags in ' scw registry image get/list' #4229

ulric37 opened this issue Oct 26, 2024 · 2 comments
Assignees
Labels
bug priority:highest Bugs filled by customers, security issues registry Managed Container Registry issues, bugs and feature requests

Comments

@ulric37
Copy link

ulric37 commented Oct 26, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Command attempted

scw registry image list -o json
or
scw registry image get <image-id> -o json

Expected Behavior

should return 18 images tags : 0.1.1, 0.2.0, 0.2.1, 0.2.10, 0.2.11, 0.2.12, 0.2.13, 0.2.14, 0.2.15, 0.2.2, 0.2.3, 0.2.3-SNAPSHOT, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9

Actual Behavior

returns only 5 tags

 $ scw registry image get <image-id> -o json|jq
{
  "id": "<image-id>,
  "name": "<image-name>",
  "namespace_id": "<ns-id>",
  "status": "ready",
  "status_message": "",
  "visibility": "inherit",
  "size": 1240043800,
  "created_at": "2024-10-26T10:04:26.630325Z",
  "updated_at": "2024-10-26T10:06:53.894126Z",
  "tags": [
    "0.2.9",
    "0.2.8",
    "0.2.7",
    "0.2.6",
    "0.2.5"
  ],
  "FullName": "rg.fr-par.scw.cloud/xxx"
}

More info

$ scw version 
Version    2.34.0
BuildDate  2024-09-17T14:35:04Z
GoVersion  go1.22.7
GitBranch  HEAD
GitCommit  315e4bf7
GoArch     amd64
GoOS       linux
@ulric37 ulric37 added the bug label Oct 26, 2024
@Laure-di Laure-di added the registry Managed Container Registry issues, bugs and feature requests label Oct 28, 2024
@remyleone remyleone added the priority:highest Bugs filled by customers, security issues label Nov 12, 2024
@remyleone
Copy link
Member

Could you try using the scw registry tag list for this? There is a limit to the 5 most recent tags for the image resource.

@ulric37
Copy link
Author

ulric37 commented Nov 12, 2024

thank you, it works.
I still think that json array tags should not be limited, because it can be error prone, but at least we have a way to get all the tags.
Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug priority:highest Bugs filled by customers, security issues registry Managed Container Registry issues, bugs and feature requests
Projects
None yet
Development

No branches or pull requests

4 participants