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")) |
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.
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