-
Notifications
You must be signed in to change notification settings - Fork 246
Update devfile/library to support pod-overrides and container-overrides attributes and add integration test for it #6512
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
Update devfile/library to support pod-overrides and container-overrides attributes and add integration test for it #6512
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
|
/retest-required |
tests/integration/cmd_dev_test.go
Outdated
| ) | ||
| BeforeEach(func() { | ||
| helper.CopyExample(filepath.Join("source", "nodejs"), commonVar.Context) | ||
| helper.CopyExampleDevFile(filepath.Join("source", "devfiles", "nodejs", "devfile-pod-container-overrides.yaml"), filepath.Join(commonVar.Context, "devfile.yaml")) |
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.
Please use random name, as in #6504
0d80fd8 to
5d988b1
Compare
tests/integration/cmd_dev_test.go
Outdated
| helper.CopyExample(filepath.Join("source", "nodejs"), commonVar.Context) | ||
| helper.CopyExampleDevFile(filepath.Join("source", "devfiles", "nodejs", "devfile-pod-container-overrides.yaml"), filepath.Join(commonVar.Context, "devfile.yaml"), helper.DevfileMetadataNameSetter(cmpName)) | ||
| }) | ||
| It("should override the content in the pod it creates for the component on the cluster", func() { |
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.
Just curious: can we use the same test on Podman as well? Or if it does not work, maybe we can try to override some specific fields recognized by Podman..
|
You get this error in podman tests with Podman v3 (in CI): |
It passed on my local podman so I figured it would work here too. |
It is probably a restriction on the CI VM |
I found this(https://github.com/containers/podman/blob/main/troubleshooting.md#26-running-containers-with-resource-limits-fails-with-a-permissions-error) on Podman FAQ, do you think we can set resource limit if that will not affect other tests? |
I would modify another field for this test, as resources setting is too much error prone, and we don't specifically want to test modification of resources fields. PS: I find this tweet very apropos ;) https://twitter.com/manekinekko/status/1617208921957040131?s=20&t=R8ofTwvwU_ypQTIjrlIBZQ |
Signed-off-by: Parthvi Vala <[email protected]> Attempt at fixing CI failures Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
5ce3198 to
373572d
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
|
/override windows-integration-test/Windows-test Flaky E2E test. |
|
@rm3l: Overrode contexts on behalf of rm3l: windows-integration-test/Windows-test DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/override ci/prow/v4.11-integration-e2e |
|
@feloy: Overrode contexts on behalf of feloy: ci/prow/v4.11-integration-e2e DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |








What type of PR is this:
/kind feature
What does this PR do / why we need it:
This PR updates the devfile/library to devfile/library@0d04f79 to support pod-overrides and container-overrides. It also adds integration test for the same.
Which issue(s) this PR fixes:
Fixes #5977
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer:
Steps to update the library:
go get github.com/devfile/library/v2@0d04f79github.com/devfile/librarytogithub.com/devfile/library/v2go mod vendor && go mod tidy