Skip to content

use release artifacts for e2e tests#152

Open
ajaysundark wants to merge 1 commit intokubernetes-sigs:mainfrom
ajaysundark:test-e2e-with-artifacts
Open

use release artifacts for e2e tests#152
ajaysundark wants to merge 1 commit intokubernetes-sigs:mainfrom
ajaysundark:test-e2e-with-artifacts

Conversation

@ajaysundark
Copy link
Contributor

Description

Enable testing with released manifests directly to help with qualification

Related Issue

xref: #151

Type of Change

/kind feature

Testing

Ran e2e tests with env flags

Checklist

  • make test passes
  • make lint passes

Does this PR introduce a user-facing change?

release-automation: run e2e-tests from published artifacts

Doc #151

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 5, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ajaysundark

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 5, 2026
@netlify
Copy link

netlify bot commented Mar 5, 2026

Deploy Preview for node-readiness-controller ready!

Name Link
🔨 Latest commit 346bde7
🔍 Latest deploy log https://app.netlify.com/projects/node-readiness-controller/deploys/69a972e1107dcf00079bdbd4
😎 Deploy Preview https://deploy-preview-152--node-readiness-controller.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

cmd := exec.Command("make", "docker-build", fmt.Sprintf("IMG_PREFIX=%s", imagePrefix), fmt.Sprintf("IMG_TAG=%s", imageTag))
_, err := utils.Run(cmd)
ExpectWithOffset(1, err).NotTo(HaveOccurred(), "Failed to build the manager(Operator) image")
if !skipBuild {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any particular reason why we want to skip the build? am assuming this is for the case where image is already built and loaded in cluster, mainly when running e2e in local env

Expect(err).NotTo(HaveOccurred(), "Failed to install CRDs")
if useReleaseArtifacts {
By("installing CRDs from dist/crds.yaml")
cmd = exec.Command("kubectl", "apply", "-f", "dist/crds.yaml")
Copy link
Contributor

Choose a reason for hiding this comment

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

This would mean that dist/crds.yaml already exists. Should we add a check here or some logic to ensure it is always there when running e2e-tests?

_, err = utils.Run(cmd)
Expect(err).NotTo(HaveOccurred(), "Failed to deploy the controller-manager")
By("deploying the controller-manager from dist/install.yaml")
cmd = exec.Command("kubectl", "apply", "-f", "dist/install.yaml")
Copy link
Contributor

Choose a reason for hiding this comment

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

same, this needs install.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants