-
Notifications
You must be signed in to change notification settings - Fork 260
Request controller for CNS #583
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
Request controller for CNS #583
Conversation
Codecov Report
@@ Coverage Diff @@
## master #583 +/- ##
==========================================
+ Coverage 38.05% 39.88% +1.83%
==========================================
Files 41 43 +2
Lines 4904 4583 -321
==========================================
- Hits 1866 1828 -38
+ Misses 2783 2502 -281
+ Partials 255 253 -2 |
… in reconcile loop, ignoring spec updates in reconcil loop. Also adding ability for updating CRD spec through k8sRequestController methods
…iles to be less folder-y
cns/requestcontroller/kubernetes/nodenetworkconfigreconciler.go
Outdated
Show resolved
Hide resolved
cns/requestcontroller/kubernetes/nodenetworkconfigreconciler.go
Outdated
Show resolved
Hide resolved
thatmattlong
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested some changes. The main one being I think the CNSClient interface and implementation should not be part of the requestcontroller package, and instead should live in cns or a new package cns/client
thatmattlong
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one comment above for a type definition that I don't believe is being used anywhere. However, since that doesn't affect functionality, I'm approving these changes. If you remove that, I will re-approve.
* NewRequestController and StartRequestController * Making Start Manager in go routine * Lookup HOSTNAME env var * Adding cnsipaminterface.go * Created requestController interface and implemented updating CRD * fix windows 1903 test apimodel.json (Azure#585) * Avoiding redundant calls into cns by only watching for status updates in reconcile loop, ignoring spec updates in reconcil loop. Also adding ability for updating CRD spec through k8sRequestController methods * fixing comments * Cleaned up code and added more comments * Made client interface for testing purposes and changed structure of files to be less folder-y * Addressed comments from Paul Miller and Wei * Beginning unit tests * Finished unit tests * Fixing pipeline issues * found issue, fixed HOSTNAME environment variable dependency * review changes requested * more review changes * Addressed changes from yesterday's review * Changing makefile line to run correct package * Addressed Matt Long's suggestions Co-authored-by: Mathew Merrick <matmerr@users.noreply.github.com>
What this PR does / why we need it:
First iteration of CNS Request Controller for the AKS on Swift scenario
with an example of how to call the methods in cns/examplerequestcontroller/example/main.go