-
Notifications
You must be signed in to change notification settings - Fork 2
Commands to create or edit manifest #128
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Add a bunch of commands to edit manifests.
Edit the full manifest
genesis manifests edit Add a resource to the manifest.
genesis manifests define node/set/var/value/service/config/... (/path/to/manifest | manifest name)For instance,
genesis manifests define node --cores 1 --ram 1024 --name "my-node" --disk 10 --disk 15 --image "http://.../foo.raw.gz" /path/to/manifest.yamlThis command has to form a yaml snippet in according to the OpenAPI spec:
$core.compute.nodes:
my_node:
name: "my_node"
project_id: "12345678-c625-4fee-81d5-f691897b8142"
cores: 1
ram: 1024
disk_spec:
kind: "disks"
disks:
- size: 10
image: "http://.../foo.raw.gz"
- size: 15
label: dataThen insert it into the /path/to/manifest.yaml.
If not all required options are specified, an interactive wizard is launched to ask them. Look at the genesis init command as an example.
To create manifest from scratch use the command
genesis manifest create /path/to/manifest.yamlThis command runs the wizard which helps user to create a manifest from scratch.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Todo
Status
Todo