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

tests: fix e2e tests by installing incubator CRDs #5711

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Mar 18, 2024

What this PR does / why we need it:

The following can be observed in KIC logs in e2e tests (in downloaded diagnostics):

Error: unable to create controller "*crds.DynamicCRDController": failed to index KongServiceFacades on annotation konghq.com/upstream-policy: no matches for kind "KongServiceFacade" in version "incubator.ingress-controller.konghq.com/v1alpha1"

It seems that KongServiceFacade is not installed by default in e2e tests because it's not packaged in default CRD kustomization (nor is it packaged with all in one manifests that we use for e2e tests) but the default feature gates env flag used in tests does enable its usage:

DefaultFeatureGates = "GatewayAlpha=true,KongServiceFacade=true"

This PR makes e2e tests install incubator CRDs via confifg/rbac/incubator kustomization dir

Which issue this PR fixes:

Special notes for your reviewer:

@pmalek pmalek self-assigned this Mar 18, 2024
@pmalek pmalek added the ci/run-e2e Trigger e2e test run from PR label Mar 18, 2024
@team-k8s-bot
Copy link
Collaborator

E2E (targeted) tests with KIND-based clusters were started at https://github.com/Kong/kubernetes-ingress-controller/actions/runs/8326505052

@team-k8s-bot team-k8s-bot removed the ci/run-e2e Trigger e2e test run from PR label Mar 18, 2024
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.5%. Comparing base (beea44f) to head (738cb0f).

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #5711     +/-   ##
=======================================
- Coverage   73.5%   73.5%   -0.1%     
=======================================
  Files        175     175             
  Lines      18141   18141             
=======================================
- Hits       13351   13341     -10     
- Misses      3821    3833     +12     
+ Partials     969     967      -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pmalek pmalek marked this pull request as ready for review March 18, 2024 13:27
@pmalek pmalek requested a review from a team as a code owner March 18, 2024 13:27
@pmalek pmalek merged commit 9299f38 into main Mar 18, 2024
195 checks passed
@pmalek pmalek deleted the install-service-facade-crd-in-e2e-tests branch March 18, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants