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

feat: support validating and installing provisioner files by uri #175

Merged
merged 4 commits into from
Sep 13, 2024

Conversation

astromechza
Copy link
Member

@astromechza astromechza commented Sep 11, 2024

Installing provisioners by copying yaml files around is not a great UX and makes things unecessarily multi-step.

This PR improves this by adding a --provisioners <URI> flag which downloads a provisioner file using either http, git, or local filesystems and adds it into the .score-compose state directory at the top of the stack.

Signed-off-by: Ben Meier <[email protected]>
@astromechza astromechza marked this pull request as ready for review September 12, 2024 15:07
Copy link
Contributor

@mathieu-benoit mathieu-benoit left a comment

Choose a reason for hiding this comment

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

In one file, we could have multiple provisioners per se, so should it be --provisioners in plural instead of --provisioner?

@astromechza
Copy link
Member Author

@mathieu-benoit good point, fixed up and added a test :)

Copy link
Contributor

@mathieu-benoit mathieu-benoit left a comment

Choose a reason for hiding this comment

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

Small updates/questions.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
internal/command/init.go Outdated Show resolved Hide resolved
internal/command/init_test.go Outdated Show resolved Hide resolved
Signed-off-by: Ben Meier <[email protected]>
Copy link
Contributor

@mathieu-benoit mathieu-benoit left a comment

Choose a reason for hiding this comment

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

LGTM

@astromechza astromechza merged commit 3137dea into main Sep 13, 2024
5 checks passed
@astromechza astromechza deleted the uri-get-provisioner branch September 13, 2024 14:29
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.

[feature request] Ability to import external provisioners in init
2 participants