Templating strategy
The Cluster API Addon Provider Fleet automates application templating for imported CAPI clusters based on matching cluster state.
Functionality
The Addon Provider Fleet ensures that the state of a CAPI cluster and resources is always up-to-date in the spec.templateValues.ClusterValues field of the Fleet cluster resource. This allows users to:
- Reference specific parts of CAPI cluster directly or via Helm substitution patterns referencing
.ClusterValues.Clusterdata. - Substiture based on the state of the control plane resource via
.ClusterValues.ControlPlanefield. - Substiture based on the state of the infrastructure cluster resource via
.ClusterValues.InfrastructureClusterfield. - Maintain a consistent application state across different clusters.
- Use the same template for multiple matching clusters to simplify deployment and management.