Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

package/external-dns: Ensure external-dns e2e test deploys correct version of package #2963

Merged

Conversation

christianang
Copy link
Contributor

@christianang christianang commented Jan 28, 2022

What this PR does / why we need it

Previously the external-dns test would assume there was only one version of the package on the cluster and that would be the correct version to test. This checks the versions of the available packages and picks the correct version to test, ensuring the correct version is tested and allowing multiple versions of the package to be available and tested at the same time.

This also updates ginkgo/gomega libraries and also adds the ginkgo cli as a dependency. This ensures that the go.sum contains the dependencies of the ginkgo cli and allows us to run go run github.com/onsi/ginkgo/ginkgo in the Makefile.

Details for the Release Notes (PLEASE PROVIDE)

NONE

Which issue(s) this PR fixes

n/a

Describe testing done for PR

Ran the external-dns e2e tests on a local cluster.

Special notes for your reviewer

@christianang christianang requested review from a team as code owners January 28, 2022 18:28
@github-actions github-actions bot added the owner/packages Work executed by a package's maintainer label Jan 28, 2022
tylerschultz
tylerschultz previously approved these changes Jan 28, 2022
Copy link
Contributor

@tylerschultz tylerschultz left a comment

Choose a reason for hiding this comment

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

LGTM

christianang and others added 2 commits February 2, 2022 22:37
- previously the external-dns test would assume there was only one
  version of the package on the cluster and that would be the correct
  version to test. This checks the versions of the available packages
  and picks the correct version to test, ensuring the correct version is
  tested and allowing multiple versions of the package to be available
  and tested at the same time.

Co-authored-by: Tyler Schultz <tschultz@vmware.com>
Signed-off-by: Christian Ang <angc@vmware.com>
Signed-off-by: Christian Ang <angc@vmware.com>
- This allows us to run ginkgo using go run so a developer doesn't
  actually need ginkgo installed and our go mod has the depenedencies
  necessary for ginkgo to run.

Signed-off-by: Christian Ang <angc@vmware.com>
Co-authored-by: Edwin Xie <exie@vmware.com>
Copy link
Contributor

@tylerschultz tylerschultz left a comment

Choose a reason for hiding this comment

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

LGTM

@christianang
Copy link
Contributor Author

@dvonthenen or @joshrosso once this PR is merged I think we can reenable the the external-dns unit test workflow. It adds the ginkgo cli as a dependency, which should stop the ci complaining about the go sum.

@christianang
Copy link
Contributor Author

@vmware-tanzu/tce-owners can I get a review on this? Thanks!

@dvonthenen dvonthenen merged commit 667d893 into vmware-tanzu:main Feb 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-not-required owner/packages Work executed by a package's maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants