Skip to content

Implemented spawn config validation#40

Open
victormlg wants to merge 2 commits intocfengine:mainfrom
victormlg:spawn-validation
Open

Implemented spawn config validation#40
victormlg wants to merge 2 commits intocfengine:mainfrom
victormlg:spawn-validation

Conversation

@victormlg
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Victor Moene <victor.moene@northern.tech>
@olehermanse olehermanse requested a review from larsewi March 31, 2026 20:19
Copy link
Copy Markdown
Member

@olehermanse olehermanse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit hard to follow the code without seeing the bigger picture, please add:

  • --validate option which validates the config and won't spawn in the future when that is implemented.
  • Some shell tests which use the --validate option and prove that it's passing and failing in the right situations.
  • Some explanation and examples for the feature in the README. Clearly mark it as work in progress.

Signed-off-by: Victor Moene <victor.moene@northern.tech>
```yaml
templates:
ubuntu:
count: 1
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

count should be moved to group, not be in template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants