cluster-aws rolls control plane nodes unnecessarily because helm.sh/chart
label is included in hashes
#2721
Labels
area/kaas
Mission: Cloud Native Platform - Self-driving Kubernetes as a Service
goal/capa-internal-ga
kind/bug
provider/cluster-api-aws
Cluster API based running on AWS
team/phoenix
Team Phoenix
topic/capi
Found while testing the opposite (#2217) 😆
Bumping the
cluster-aws
app version means we get a new label value such ashelm.sh/chart: cluster-aws-0.37.0-37886655f76432958ad0e95a672c3c3f66de1a09
. That label is included in{{- define "labels.common" -}}
.The
controlplane-awsmachinetemplate-spec
function includes those labels, gets hashed, leads to a new name suffix ofAWSMachineTemplate/<cluster>-control-plane-<hash>
, and therefore makesKubeadmControlPlane
roll out new nodes because the template reference changed.We should exclude or overwrite (e.g.
include "the-spec" | mustRegexReplaceAll "helm.sh/chart: \S+" "" | sha1sum
– untested pseudocode example!) such values when hashing.The text was updated successfully, but these errors were encountered: