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(*): Handle deploy operations #73

Merged

Conversation

thomastaylor312
Copy link
Contributor

Please note that this doesn't try to do any sort of notification event when something is deployed. That will have to be handled later

Please note that this doesn't try to do any sort of notification event
when something is deployed. That will have to be handled later

Signed-off-by: Taylor Thomas <taylor@cosmonic.com>
@thomastaylor312 thomastaylor312 linked an issue Apr 4, 2023 that may be closed by this pull request
Copy link
Member

@brooksmtownsend brooksmtownsend left a comment

Choose a reason for hiding this comment

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

Just like the breaking change to destructive undeploy, I like the idea of making put an operation that deploys by default, unless run with a --put-only or whatever command. Just feels nice to be able to do an essential kubectl apply with a manifest

edit: this was just a thought and doesn't need to happen in this PR

if manifest.version() == LATEST_VERSION {
self.send_error(
msg.reply,
format!("A manifest with a version {LATEST_VERSION} is not allowed in wadm"),
Copy link
Member

Choose a reason for hiding this comment

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

Make sure to document this bad boy 😉

Copy link
Member

Choose a reason for hiding this comment

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

No changes needed here. Just something we'll want to note when mentioning OAM versions

@thomastaylor312
Copy link
Contributor Author

@brooksmtownsend I actually thought about adding something about "put only" but then we have a separate request envelope we have to add. I'll add an issue as a follow up

@thomastaylor312 thomastaylor312 merged commit 807ef0c into wasmCloud:wadm_0.4 Apr 4, 2023
2 checks passed
@thomastaylor312 thomastaylor312 deleted the feat/deploy_api branch April 4, 2023 21:26
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.

Receive and parse wadm/OAM manifests
2 participants