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

Remove e2e/go.mod #288

Merged
merged 4 commits into from
Jun 7, 2024
Merged

Remove e2e/go.mod #288

merged 4 commits into from
Jun 7, 2024

Conversation

nunnatsa
Copy link
Contributor

@nunnatsa nunnatsa commented Jun 4, 2024

e2e/go.mod was added to split the e2e into a new module, to allow using older k8s packages in e2e tests, because the new k8s packages conflicted with the KubeVirt go-client.

This PR replaces the KV go-client with a the kubernetes client, and so it is now possible to use the newest k8s packages, and in general, the same packages as the application uses.

Also made some smaller fixes and improvements in the e2e tests, related to contexes and assertions.

Release notes:

none

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 4, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nunnatsa

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

The pull request process is described here

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 4, 2024
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jun 4, 2024
@coveralls
Copy link

coveralls commented Jun 4, 2024

Pull Request Test Coverage Report for Build 9395559512

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 59.288%

Totals Coverage Status
Change from base Build 9305462318: 0.0%
Covered Lines: 1548
Relevant Lines: 2611

💛 - Coveralls

Makefile Outdated
Comment on lines 208 to 216
generate-kv-go-client: $(CLIENT_GEN) ## Generate kubevirt client-go for e2e
$(CLIENT_GEN) \
--input-base="kubevirt.io/api" \
--input="core/v1" \
--output-pkg="sigs.k8s.io/cluster-api-provider-kubevirt/e2e/generated/client-go/clientset" \
--clientset-name="versioned" \
--output-dir /home/nunnatsa/GIT/cluster-api-provider-kubevirt/e2e/generated/client-go/clientset \
--fake-clientset=false

Copy link
Contributor

Choose a reason for hiding this comment

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

do we need the kubevirt client once you transition e2e to use virtctl?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll remove kv client. this is still WIP.

@nunnatsa nunnatsa changed the title POC: Gen client WIP: Gen client Jun 5, 2024
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 5, 2024
@nunnatsa nunnatsa changed the title WIP: Gen client Remove e2e/go.mod Jun 5, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 5, 2024
@nunnatsa
Copy link
Contributor Author

nunnatsa commented Jun 5, 2024

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Jun 5, 2024
@nunnatsa nunnatsa force-pushed the gen-client branch 6 times, most recently from 1c59fab to e11f677 Compare June 5, 2024 15:13
Makefile Outdated
@@ -225,7 +225,7 @@ docker-build: docker-pull-prerequisites ## Build the docker image for controller

.PHONY: docker-push
docker-push: ## Push the docker image
docker push $(CONTROLLER_IMG)-$(ARCH):$(TAG)
docker push --tls-verify=false $(CONTROLLER_IMG)-$(ARCH):$(TAG)
Copy link
Contributor

Choose a reason for hiding this comment

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

we probably don't want to commit this change

Copy link

Choose a reason for hiding this comment

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

I am assuming you added this for when pushing to a repo that doesn't have a proper signed cert. What I did in HPP is make it an argument something like this:

TLS_VERIFY?=true
...

docker push -tls-verify=${TLS_VERIFY} $(CONTROLLER_IMG)-$(ARCH):$(TAG)

This way if you are testing locally you can just export TLS_VERIFY=false and it works. But it defaults to true.

@davidvossel
Copy link
Contributor

/retest

Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
@k8s-ci-robot k8s-ci-robot merged commit 0be053a into kubernetes-sigs:main Jun 7, 2024
9 of 10 checks passed
@nunnatsa nunnatsa deleted the gen-client branch June 7, 2024 19:34
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants