canonical / cluster-api-bootstrap-provider-microk8s

This project offers a cluster API bootstrap provider controller that manages the node provision of a MicroK8s cluster.
https://microk8s.io
21 stars 15 forks source link

Add extraWriteFiles configuration to bootstrap provider #49

Closed neoaggelos closed 1 year ago

neoaggelos commented 1 year ago

Summary

Allow injecting custom files to the cloud-init template. This is preliminary work required for the upcoming vsphere cluster template.

As a side-effect, this PR also refactors a bit of the testing for "common" configuration fields across control plane init, control plane join and worker join nodes. This is to ensure that tests for the same functionality are close to each other and updated together.

Notes

Add a separate type for the API cloud init config files, we don't want to mix the public API with the internal cloudinit.File type.