Skip to content

Commands to create or edit manifest #128

@akremenetsky

Description

@akremenetsky

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.yaml

This 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: data

Then 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.yaml

This command runs the wizard which helps user to create a manifest from scratch.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Todo

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions