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

Use e2e-test tag for images built in e2e CI #466

Merged

Conversation

abdallahyas
Copy link
Contributor

Currently for the kind CI, Kind deploys Kubernetes version v1.27.3, in this version the ImagePullpolicy of containers follow the procedures in [1], this breaks the CI, since the CI uses the latest tag when building the images, and Kubernetes tries to pull the images always instead of using the built image.

This patch changes the tag of the image built by CI to e2e-test, so that K8S will set the image policy to be IfNotPresent.

[1] https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting

Currently for the kind CI, Kind deploys Kubernetes version
v1.27.3, in this version the `ImagePullpolicy` of containers
follow the procedures in [1], this breaks the CI, since the
CI uses the `latest` tag when building the images, and Kubernetes
tries to pull the images always instead of using the built image.

This patch changes the tag of the image built by CI to `e2e-test`,
so that K8S will set the image policy to be `IfNotPresent`.

[1] https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting

Signed-off-by: Abdallah Yasin <[email protected]>
@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5505729041

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 7 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.07%) to 24.511%

Files with Coverage Reduction New Missed Lines %
controllers/sriovibnetwork_controller.go 2 66.04%
controllers/sriovnetwork_controller.go 2 65.71%
api/v1/helper.go 3 41.67%
Totals Coverage Status
Change from base Build 5464677529: 0.07%
Covered Lines: 2082
Relevant Lines: 8494

💛 - Coveralls

@abdallahyas
Copy link
Contributor Author

/test-e2e-nvidia-all

@abdallahyas
Copy link
Contributor Author

@e0ne @adrianchiris Can you guys PTAL?
Thanks

@abdallahyas
Copy link
Contributor Author

/test-e2e-nvidia-all

Copy link
Collaborator

@e0ne e0ne left a comment

Choose a reason for hiding this comment

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

It seems to be a workaround for a CI. From other side I'm OK to have a specific image tag for e2e tests

@adrianchiris
Copy link
Collaborator

as the images for e2e tests are built by run-e2e-test-kind.sh im fine with having a specific tag for it.

the alternative is to explicitly add image pull policy when running make deploy.

Copy link
Collaborator

@adrianchiris adrianchiris left a comment

Choose a reason for hiding this comment

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

lgtm

@rollandf
Copy link
Contributor

LGTM
Seems that this issue was introduced by #432

@e0ne e0ne requested a review from SchSeba July 12, 2023 08:30
Copy link
Member

@zeeke zeeke left a comment

Choose a reason for hiding this comment

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

LGTM

@zeeke zeeke merged commit 37ddcd4 into k8snetworkplumbingwg:master Jul 12, 2023
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.

6 participants