-
Notifications
You must be signed in to change notification settings - Fork 2
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
Initial reconciliation loop #8
Conversation
0a5c949
to
c9dfd56
Compare
This deals with creation, update, removal of clusters from the AKS provider. Co-authored-by: Kevin McDermott <kevin@weave.works>
c9dfd56
to
b13d985
Compare
} | ||
|
||
existingClusters := []clustersv1alpha1.ResourceRef{} | ||
inventoryResources := []clustersv1alpha1.ResourceRef{} |
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.
Should this be initialised to the existing resources?
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.
They get built up during the iteration.
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.
Ah har, at the moment we bail and return this initial empty inventory if we're adding a new cluster and encounter an error?
This might fall under the TODO list umbrella though very happy to merge and iterate here.
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.
Yeah, I don't think this is ready for release, but kinda hoping we can get smaller branches landing more frequently :-)
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.
It begins! 🚀
This deals with creation, update, removal of clusters from the AKS provider.
It also rolls back the version of the controller-runtime from 0.16 as it was incompatible with some other dependencies.
Finally, it reverts the repo
main.go
to be the controller main, as that's the common layout for controller.And I added an example AKS discovery CR.