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

api: add kubebuilder-compatible type registration exports #2514

Merged
merged 1 commit into from
May 12, 2020

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented May 11, 2020

Restore the kubebuilder-compatible API type registration exports for
IngressRoute and HTTPProxy. Keep exporting AddKnownTypes() for projects
that already started consuming this symmbol, but note that it is not
should no longer be used.

This updates #2487.

Signed-off-by: James Peach [email protected]

@jpeach jpeach requested review from stevesloka and youngnick May 11, 2020 09:51
@codecov
Copy link

codecov bot commented May 11, 2020

Codecov Report

Merging #2514 into master will decrease coverage by 0.06%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2514      +/-   ##
==========================================
- Coverage   76.67%   76.60%   -0.07%     
==========================================
  Files          68       68              
  Lines        5513     5515       +2     
==========================================
- Hits         4227     4225       -2     
- Misses       1191     1193       +2     
- Partials       95       97       +2     
Impacted Files Coverage Δ
internal/k8s/converter.go 52.17% <0.00%> (-3.39%) ⬇️

apis/projectcontour/v1/register.go Show resolved Hide resolved
apis/contour/v1beta1/register.go Show resolved Hide resolved
Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

I'd prefer not to use nolint, just check the errors.

internal/k8s/converter.go Outdated Show resolved Hide resolved
internal/k8s/status_test.go Outdated Show resolved Hide resolved
Restore the kubebuilder-compatible API type registration exports for
IngressRoute and HTTPProxy. Keep exporting AddKnownTypes() for projects
that already started consuming this symmbol, but note that it is not
should no longer be used.

This updates projectcontour#2487.

Signed-off-by: James Peach <[email protected]>
Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

LGTM

@jpeach jpeach merged commit 360a1b2 into projectcontour:master May 12, 2020
@jpeach jpeach deleted the api-exports branch May 12, 2020 04:41
@jpeach jpeach added this to the 1.5.0 milestone May 28, 2020
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