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

fix(ci): set kubebuilder assets directory #3577

Merged
merged 1 commit into from
Dec 20, 2021
Merged

fix(ci): set kubebuilder assets directory #3577

merged 1 commit into from
Dec 20, 2021

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Dec 19, 2021

Summary

The dev/tools make target installs testing dependencies into
$CI_TOOLS_DIR, but the wiring between this and the kubebuilder envtest
framework was broken. Make sure that we set the KUBEBUILDER_ASSETS
environment variable so that the envtest framework can find its
dependencies correctly.

Full changelog

N/A

Issues resolved

N/A

Documentation

N/A

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • Update UPGRADE.md with any steps users will need to take when upgrading.
  • Add backport-to-stable label if the code is backwards compatible. Otherwise, list breaking changes.

The `dev/tools` make target installs testing dependencies into
$CI_TOOLS_DIR, but the wiring between this and the kubebuilder envtest
framework was broken. Make sure that we set the `KUBEBUILDER_ASSETS`
environment variable so that the envtest framework can find its
dependencies correctly.

Signed-off-by: James Peach <james.peach@konghq.com>
@jpeach jpeach requested a review from a team as a code owner December 19, 2021 23:02
@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2021

Codecov Report

Merging #3577 (eca2c1f) into master (b712e8f) will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3577      +/-   ##
==========================================
+ Coverage   51.55%   51.58%   +0.03%     
==========================================
  Files         917      917              
  Lines       55568    55568              
==========================================
+ Hits        28647    28665      +18     
+ Misses      24639    24620      -19     
- Partials     2282     2283       +1     
Impacted Files Coverage Δ
pkg/xds/generator/direct_access_proxy_generator.go 85.86% <0.00%> (-1.09%) ⬇️
pkg/core/resources/manager/cache.go 85.71% <0.00%> (ø)
api/observability/v1/mads.pb.go 35.56% <0.00%> (+1.03%) ⬆️
pkg/dns/vips_allocator.go 73.75% <0.00%> (+1.41%) ⬆️
pkg/insights/resyncer.go 73.61% <0.00%> (+2.45%) ⬆️
pkg/mads/v1/client/client.go 43.75% <0.00%> (+2.50%) ⬆️
pkg/events/eventbus.go 92.59% <0.00%> (+7.40%) ⬆️
pkg/insights/components.go 100.00% <0.00%> (+30.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b712e8f...eca2c1f. Read the comment docs.

Copy link
Contributor

@jakubdyszkiewicz jakubdyszkiewicz left a comment

Choose a reason for hiding this comment

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

nice!

@jpeach jpeach merged commit a9b64a3 into kumahq:master Dec 20, 2021
@jpeach jpeach deleted the fix/ci-kubebuilder-assets branch December 20, 2021 22:00
mergify bot pushed a commit that referenced this pull request Dec 20, 2021
The `dev/tools` make target installs testing dependencies into
$CI_TOOLS_DIR, but the wiring between this and the kubebuilder envtest
framework was broken. Make sure that we set the `KUBEBUILDER_ASSETS`
environment variable so that the envtest framework can find its
dependencies correctly.

Signed-off-by: James Peach <james.peach@konghq.com>
(cherry picked from commit a9b64a3)
michaelbeaumont pushed a commit that referenced this pull request Dec 21, 2021
The `dev/tools` make target installs testing dependencies into
$CI_TOOLS_DIR, but the wiring between this and the kubebuilder envtest
framework was broken. Make sure that we set the `KUBEBUILDER_ASSETS`
environment variable so that the envtest framework can find its
dependencies correctly.

Signed-off-by: James Peach <james.peach@konghq.com>
(cherry picked from commit a9b64a3)

Co-authored-by: James Peach <james.peach@konghq.com>
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.

3 participants