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

Initial reconciliation loop #8

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Initial reconciliation loop #8

merged 1 commit into from
Oct 12, 2023

Conversation

bigkevmcd
Copy link
Collaborator

@bigkevmcd bigkevmcd commented Oct 12, 2023

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.

@bigkevmcd bigkevmcd force-pushed the reconciliation-loop branch 5 times, most recently from 0a5c949 to c9dfd56 Compare October 12, 2023 08:17
This deals with creation, update, removal of clusters from the AKS
provider.

Co-authored-by: Kevin McDermott <kevin@weave.works>
}

existingClusters := []clustersv1alpha1.ResourceRef{}
inventoryResources := []clustersv1alpha1.ResourceRef{}
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator

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.

Copy link
Collaborator Author

@bigkevmcd bigkevmcd Oct 12, 2023

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 :-)

Copy link
Collaborator

@foot foot left a comment

Choose a reason for hiding this comment

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

It begins! 🚀

@bigkevmcd bigkevmcd merged commit 3c2aa74 into main Oct 12, 2023
3 checks passed
@bigkevmcd bigkevmcd deleted the reconciliation-loop branch October 12, 2023 13:02
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.

[cluster-reflector] Connect up reconcilation loop to the Provider implementation now (azure!)
3 participants