-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[play_kube] Add validation to container image field #27791
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
[play_kube] Add validation to container image field #27791
Conversation
|
[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore. |
0c395e9 to
9883465
Compare
| var podWithoutAnImage = ` | ||
| apiVersion: v1 | ||
| kind: Pod | ||
| spec: |
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.
| spec: | |
| metadata: | |
| name: my-pod-name # <--- This is missing | |
| labels: | |
| app: my-app | |
| spec: |
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.
Done!
test/e2e/play_kube_test.go
Outdated
| err := writeYaml(podWithoutAnImage, kubeYaml) | ||
| Expect(err).ToNot(HaveOccurred()) | ||
|
|
||
| kube := podmanTest.PodmanExitCleanly("kube", "play", kubeYaml) |
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.
PodmanExitCleanly will fail here because we expect no error; just podmanTest.Podman will work better
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.
Done! Thanks @mheon !
9883465 to
85e3bf2
Compare
Fixes: containers#27784 Signed-off-by: Lewis Denny <[email protected]>
85e3bf2 to
74c0795
Compare
Honny1
left a comment
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
|
LGTM |
Fixes: #27784
Checklist
Ensure you have completed the following checklist for your pull request to be reviewed:
commits. (
git commit -s). (If needed, usegit commit -s --amend). The author email must matchthe sign-off email address. See CONTRIBUTING.md
for more information.
Fixes: #00000in commit message (if applicable)make validatepr(format/lint checks)Noneif no user-facing changes)Does this PR introduce a user-facing change?