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

Add support for more controller versions #245

Merged
merged 11 commits into from
Feb 26, 2020
Merged

Add support for more controller versions #245

merged 11 commits into from
Feb 26, 2020

Conversation

rbren
Copy link
Contributor

@rbren rbren commented Feb 25, 2020

Fixes #244

The most disruptive change here is that if building the webhook fails, we don't exit the process. This way if we try to watch a type/version that's not available in the cluster, it won't fail to start.

@codecov
Copy link

codecov bot commented Feb 25, 2020

Codecov Report

Merging #245 into master will decrease coverage by 4.65%.
The diff coverage is 27.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #245      +/-   ##
==========================================
- Coverage   56.31%   51.66%   -4.66%     
==========================================
  Files          12       12              
  Lines         641      753     +112     
==========================================
+ Hits          361      389      +28     
- Misses        243      309      +66     
- Partials       37       55      +18
Impacted Files Coverage Δ
pkg/config/supportedcontrollers.go 50% <0%> (-5.36%) ⬇️
pkg/kube/resources.go 50.38% <28.9%> (-16.72%) ⬇️

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 6213291...d2bb2f1. Read the comment docs.

Copy link
Contributor

@makoscafee makoscafee left a comment

Choose a reason for hiding this comment

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

LGTM. just had one question.

return nil, err
}
jobs, err := kube.BatchV1().Jobs("").List(listOpts)
daemonSets, err := kube.AppsV1().DaemonSets("").List(listOpts)
Copy link
Contributor

Choose a reason for hiding this comment

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

could this use getDaemonSets too? I think you will still miss appsv1beta2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! I added some tests to make sure we don't miss these.

Copy link
Contributor

@makoscafee makoscafee left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks Robert

@rbren rbren merged commit cd002d0 into master Feb 26, 2020
@rbren rbren deleted the rb/ctrl-versions branch February 26, 2020 19:59
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.

Webhook does not cover all possible versions of deployments
2 participants