Skip to content

Commit

Permalink
Set kubernetes version from release for machinedeployments (#322)
Browse files Browse the repository at this point in the history
* fix set kubernetes version from release for machinedeployments

* Update CHANGELOG.md

Co-authored-by: Andreas Sommer <[email protected]>

---------

Co-authored-by: Andreas Sommer <[email protected]>
  • Loading branch information
njuettner and AndiDog authored Sep 5, 2024
1 parent e3e1e58 commit 3be23bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Set `MachineDeployment` Kubernetes version from release

## [1.2.1] - 2024-08-16

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
{{- $_ := set $ "osImage" $.Values.providerIntegration.osImage }}
{{- $_ = set $ "kubernetesVersion" $.Values.providerIntegration.kubernetesVersion }}
name: {{ include "cluster.resource.name" $ }}-{{ $nodePoolName }}-{{ include "cluster.data.hash" (dict "data" (include $.Values.providerIntegration.workers.resources.infrastructureMachineTemplateSpecTemplateName $) "salt" $.Values.providerIntegration.hashSalt) }}
version: {{ $.Values.providerIntegration.kubernetesVersion }}
version: v{{ include "cluster.component.kubernetes.version" $ }}
{{- if hasKey $nodePoolConfig "failureDomain" }}
failureDomain: "{{ $nodePoolConfig.failureDomain }}"
{{- end }}
Expand Down

0 comments on commit 3be23bb

Please sign in to comment.