Skip to content

Commit

Permalink
Remove kubernetes version from secret name hash generator for in-plac…
Browse files Browse the repository at this point in the history
…e update
  • Loading branch information
Nuckal777 committed Dec 3, 2024
1 parent 460d5a8 commit 1d5d920
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1047,8 +1047,7 @@ func KeyV2(
}

var (
// inPlaceUpdate = v1beta1helper.IsInPlaceUpdate(worker.UpdateStrategy)
inPlaceUpdate = true
inPlaceUpdate = v1beta1helper.IsInPlaceUpdate(worker.UpdateStrategy)
kubernetesMajorMinorVersion = fmt.Sprintf("%d.%d", kubernetesVersion.Major(), kubernetesVersion.Minor())
data = []string{
kubernetesMajorMinorVersion,
Expand All @@ -1057,6 +1056,11 @@ func KeyV2(
}
)

// in case of inplace update ignore k8s versions changes
if inPlaceUpdate {
data = data[1:]
}

// Do not change hash for kubernetes version, machine image versions if in place update
if inPlaceUpdate {
data = []string{
Expand Down

0 comments on commit 1d5d920

Please sign in to comment.