Skip to content

Commit

Permalink
Chart: Update cluster to v1.0.2. (#875)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikola Prokopić <[email protected]>
  • Loading branch information
Gacko and nprokopic authored Sep 30, 2024
1 parent 43a90c9 commit e1093a7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 19 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Chart: Update `cluster` to v1.0.2.
- Chart: Add OS tooling named template.

## [1.3.2] - 2024-09-19

### Added
Expand Down
8 changes: 4 additions & 4 deletions helm/cluster-aws/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: cluster
repository: https://giantswarm.github.io/cluster-catalog
version: 1.0.1
repository: https://giantswarm.github.io/cluster-test-catalog
version: 1.4.1-29d86ff1ea1ce1a8c987be78d2d93f82040d0f7a
- name: cluster-shared
repository: https://giantswarm.github.io/cluster-catalog
version: 0.7.1
digest: sha256:62d157b208d68e6f61bfa0e73088dbcb241a09f6b1f8846c2a6b6f81b1e6a275
generated: "2024-09-19T16:23:41.237563+02:00"
digest: sha256:87c2d1e349fab82c05f0194048d5b1ef078c0a9e01e568bce62e6fbb732f4adf
generated: "2024-09-30T16:38:35.620481+02:00"
4 changes: 2 additions & 2 deletions helm/cluster-aws/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ restrictions:
- capa
dependencies:
- name: cluster
version: "1.0.1"
repository: https://giantswarm.github.io/cluster-catalog
version: "1.4.1-29d86ff1ea1ce1a8c987be78d2d93f82040d0f7a"
repository: https://giantswarm.github.io/cluster-test-catalog
- name: cluster-shared
version: "0.7.1"
repository: https://giantswarm.github.io/cluster-catalog
27 changes: 14 additions & 13 deletions helm/cluster-aws/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,26 @@ giantswarm.io/prevent-deletion: "true"
- /opt/control-plane-config.sh
{{- end -}}

{{- /*
"ami" named template renders YAML manifest that is used in AWSMachineTemplate and in AWSMachinePool resources.
This template is using "cluster.os.*" named templates that are defined in the cluster chart. For more details about
how these templates work see cluster chart docs at https://github.com/giantswarm/cluster/tree/main/helm/cluster.
*/}}
{{- define "ami" }}
{{- with .Values.global.providerSpecific.ami }}
ami:
id: {{ . | quote }}
{{- else -}}
ami: {}
{{- /* Get Flatcar variant, which we use in image name suffix. This helper is defined in the cluster chart and it will
get the variant number from the Release CR as cluster-aws is using new releases with Release CRs. */}}
{{- $suffix := include "cluster.component.flatcar.variant" $ }}
{{- /* Get Flatcar version. This helper is defined in the cluster chart and it will get the Flatcar version from the
Release CR as cluster-aws is using new releases with Release CRs. */}}
imageLookupBaseOS: "{{ include "cluster.component.flatcar.version" $ }}"
{{- if and $suffix (ne $suffix "N/A") }}
{{- /* Build image name with Flatcar variant set. These images with the variant number in the suffix are currently built manually. */}}
imageLookupFormat: {{ "flatcar-stable-{{.BaseOS}}-kube-v{{.K8sVersion}}" }}-alpha.{{$suffix}}
{{- else }}
{{- /* Build image name without Flatcar variant. These images without variant in the suffix are built by the CI. */}}
imageLookupFormat: {{ "flatcar-stable-{{.BaseOS}}-kube-v{{.K8sVersion}}" }}-gs
{{- end }}
{{- /* Get OS version. */}}
imageLookupBaseOS: "{{ include "cluster.os.version" $ }}"
{{- /* Get OS name, release channel and tooling version, which we use in the OS image name. */}}
{{- $osName := include "cluster.os.name" $ }}
{{- $osReleaseChannel := include "cluster.os.releaseChannel" $ }}
{{- $osToolingVersion := include "cluster.os.tooling.version" $ }}
{{- /* Build the OS image name. The OS images are built automatically by the CI. */}}
imageLookupFormat: {{ $osName }}-{{$osReleaseChannel }}-{{ "{{.BaseOS}}-kube-{{.K8sVersion}}" }}-tooling-{{ $osToolingVersion }}-gs
imageLookupOrg: "{{ if hasPrefix "cn-" (include "aws-region" .) }}306934455918{{else}}706635527432{{end}}"
{{- end }}
{{- end }}
Expand Down

0 comments on commit e1093a7

Please sign in to comment.