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

Update RBAC rules for the bootstrap provider #23

Closed neoaggelos closed 2 years ago

neoaggelos commented 2 years ago

Summary

Add RBAC rules for clusters, machines, secrets, and configmaps to the bootstrap provider. Roles are generated from kubebuilder rules in the controller code. Also re-run make component to update the bootstrap-components.yaml manifest.

Testing

  1. Deploy management cluster with RBAC enabled:
snap install microk8s --classic
microk8s enable rbac dns
  1. Install and configure clusterctl

  2. Deploy a cluster on OpenStack and AWS (based on the cluster templates found in https://github.com/canonical/cluster-api-bootstrap-provider-microk8s/pull/22

Testing is manual for now.