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

Add galaxykit collection upload --skip-upload, --template #99

Merged
merged 8 commits into from
Apr 29, 2024

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Jan 21, 2024

with --skip-upload, galaxykit just creates the file and returns the filename, without trying to upload it.

intended for generating artifacts for cypress e2e to upload, to test the UI paths

$ galaxykit collection upload --skip-upload
{"namespace": "admin", "name": "collection_dep_a_pntqbywn", "version": "1.0.0", "published": false, "filename": "/tmp/home/himdel/.local/lib/python3.11/site-packages/orionutils/collections/skeleton/admin-collection_dep_a_pntqbywn-1.0.0.tar.gz"}

$ ls -l /tmp/home/himdel/.local/lib/python3.11/site-packages/orionutils/collections/skeleton/admin-collection_dep_a_pntqbywn-1.0.0.tar.gz
-rw-r--r-- 1 himdel himdel 1582 Jan 21 20:13 /tmp/home/himdel/.local/lib/python3.11/site-packages/orionutils/collections/skeleton/admin-collection_dep_a_pntqbywn-1.0.0.tar.gz

(... | jq .filename to get just the filename)

Cc @ZitaNemeckova @akus062381 @nixocio

(the collection template lives in https://github.com/peaqe/orion-utils/tree/master/orionutils/collections/skeleton)


Also allow --template to allow picking templates other than skeleton, from https://github.com/peaqe/orion-utils/tree/master/orionutils/collections


Also,

collection approve namespace name version
collection deprecate namespace name repository
collection undeprecate namespace name repository


Also..
When -c is used, disable the urllib warning:

/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1062: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1062: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(

@himdel himdel requested a review from chr-stian January 21, 2024 20:22
@himdel himdel changed the title Add galaxykit collection upload --skip-upload Add galaxykit collection upload --skip-upload, --template Jan 25, 2024
MilanPospisil
MilanPospisil previously approved these changes Feb 20, 2024
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

Successfully merging this pull request may close these issues.

3 participants