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

Move CRD informer list generation to k8s #2352

Merged
merged 1 commit into from
Mar 23, 2020

Conversation

youngnick
Copy link
Member

@youngnick youngnick commented Mar 18, 2020

This is in preparation for adding in filtering by discovered CRD types.

Updates #2219

Signed-off-by: Nick Young ynick@vmware.com

@youngnick youngnick added this to the 1.3.0 milestone Mar 18, 2020
@youngnick youngnick self-assigned this Mar 18, 2020
@youngnick youngnick force-pushed the informermap branch 3 times, most recently from b85f304 to b9aa0a9 Compare March 18, 2020 02:47
@codecov
Copy link

codecov bot commented Mar 18, 2020

Codecov Report

Merging #2352 into master will decrease coverage by 0.17%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2352      +/-   ##
==========================================
- Coverage   78.15%   77.97%   -0.18%     
==========================================
  Files          60       61       +1     
  Lines        5227     5236       +9     
==========================================
- Hits         4085     4083       -2     
- Misses       1056     1066      +10     
- Partials       86       87       +1
Impacted Files Coverage Δ
cmd/contour/serve.go 0% <0%> (ø) ⬆️
internal/k8s/informers.go 0% <0%> (ø)
internal/k8s/syncer.go 0% <0%> (ø) ⬆️
internal/dag/cache.go 95.43% <0%> (-0.71%) ⬇️

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 b18ef08...645957f. Read the comment docs.

internal/k8s/gvrautodetect.go Outdated Show resolved Hide resolved
internal/k8s/gvrautodetect.go Outdated Show resolved Hide resolved
internal/k8s/gvrautodetect.go Outdated Show resolved Hide resolved
internal/k8s/gvrautodetect.go Outdated Show resolved Hide resolved
cmd/contour/serve.go Outdated Show resolved Hide resolved
cmd/contour/serve.go Outdated Show resolved Hide resolved
go.sum Outdated Show resolved Hide resolved
internal/k8s/gvrautodetect.go Outdated Show resolved Hide resolved
internal/k8s/gvrautodetect.go Outdated Show resolved Hide resolved
@youngnick youngnick force-pushed the informermap branch 2 times, most recently from 028d181 to 1496df4 Compare March 19, 2020 03:37
@jpeach jpeach removed this from the 1.3.0 milestone Mar 20, 2020
Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

Make a few suggestions; I think we can use this to replace more of the informer set up.

I'd like to also replace the namespacedInformerFactories initialization, but that's probably a bigger scope than you want to tackle here. Do you mind filing an issue to address that?

internal/k8s/gvrautodetect.go Outdated Show resolved Hide resolved
internal/k8s/gvrautodetect.go Outdated Show resolved Hide resolved
cmd/contour/serve.go Show resolved Hide resolved
internal/k8s/gvrautodetect.go Outdated Show resolved Hide resolved
internal/k8s/gvrautodetect.go Outdated Show resolved Hide resolved
This is in preparation for adding in filtering by discovered CRD types.

Updates projectcontour#2219

Signed-off-by: Nick Young <ynick@vmware.com>
Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

Looks good, nice and clean.

@youngnick youngnick merged commit b418f92 into projectcontour:master Mar 23, 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