Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • S slapos.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 31
    • Merge requests 31
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slapos.core
  • Merge requests
  • !215

Merged
Created May 08, 2020 by Jérome Perrin@jeromeOwner

cli/request: support passing instance parameters from a file

  • Overview 28
  • Commits 8
  • Pipelines 11
  • Changes 8

Support a syntax like:

  slapos request \
    --node=computer_guid=local \
    --parameters-file=~/request.json \
    ERP5 \
    https://lab.nexedi.com/nexedi/slapos/raw/1.0.145/software/erp5/software.cfg

to request an instance with parameters in ~/request.json file.

This also teach slapos.core about the instance schema, which makes it possible to understand the serialisation, so that we no longer need to use _ = json.dump(params) to encode parameters.

This also emits a warning when requesting with parameters which do not match the schema.

Edited Aug 11, 2021 by Jérome Perrin
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feat/cli_request_file
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7