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: Reports warnings on failed kube deploy, fixes error out #3050
Conversation
TODO: Need to add tests (trying to figure out how to mock a |
@cdrage I think you can just mock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought lint was checked at commit time
@jeffmaury it is unless you bypass git hooks :-) ( |
Haha yup, I had to bypass the hook so I can push out the code for those to test it out :) Lint is fixed now. |
### What does this PR do? * Reports warnings when encountering container errors when using Play Kubernetes * Fixes the error / warning output that was not appearing correctly. ### Screenshot/screencast of this PR <!-- Please include a screenshot or a screencast explaining what is doing this PR --> ### What issues does this PR fix or reference? <!-- Please include any related issue from Podman Desktop repository (or from another issue tracker). --> Closes containers#2621 Closes containers#3033 ### How to test this PR? <!-- Please explain steps to reproduce --> Signed-off-by: Charlie Drage <charlie@charliedrage.com>
Tests added 💯 ready for another review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By running your example i get the old error
Error: (HTTP code 500) server error - playing YAML file: adding pod to state: name "reverentrobinson-pod" is in use: pod already exists
.
By debugging it, it gets in the catch and it skips your code. Do you have another yaml file to test it?
That's intentional? I believe you still have the old pod running when trying to deploy. |
I thought I followed your instruction. Have i misunderstood them? 🤔 Click play, select the yaml, deploy, everything works fine, repeat to see the error. No? |
Yup! It's intentional. The error is appearing. #3033 = It's showing the error. #2621 = no more layout being broken. Playing it twice induces the error and shows what this PR is fixing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I think i got it working by editing your yaml. Works fine, also the issue i saw with the broken layout is fixed.
Just a problem with a possible undefined value. For the rest looks good
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, works fine! Thanks @cdrage 🚀
…ners#3050) * feat: Reports warnings on failed kube deploy, fixes error out ### What does this PR do? * Reports warnings when encountering container errors when using Play Kubernetes * Fixes the error / warning output that was not appearing correctly. ### Screenshot/screencast of this PR <!-- Please include a screenshot or a screencast explaining what is doing this PR --> ### What issues does this PR fix or reference? <!-- Please include any related issue from Podman Desktop repository (or from another issue tracker). --> Closes containers#2621 Closes containers#3033 ### How to test this PR? <!-- Please explain steps to reproduce --> Signed-off-by: Charlie Drage <charlie@charliedrage.com> * add tests Signed-off-by: Charlie Drage <charlie@charliedrage.com> * make sure we check to see if containererrors is undefined first Signed-off-by: Charlie Drage <charlie@charliedrage.com> --------- Signed-off-by: Charlie Drage <charlie@charliedrage.com>
feat: Reports warnings on failed kube deploy, fixes error out
What does this PR do?
This updates the Play Kubernetes YAML section similar to the output of "Deploy to Kubernetes".
Kubernetes
Screenshot/screencast of this PR
Screen.Recording.2023-06-28.at.2.43.52.PM.mov
What issues does this PR fix or reference?
Closes #2621
Closes #3033
How to test this PR?
Signed-off-by: Charlie Drage charlie@charliedrage.com