From 82bf3d7c0cbad8157a1cc014d1641a6089f2fd18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20J=C3=BCttner?= Date: Wed, 13 Nov 2024 11:33:52 +0100 Subject: [PATCH] CAPVCD: Release v27.0.0. (#1484) * cloud-director v27.0.0 * Update kustomization.yaml * Update announcement.md * Update release.yaml * Update release.yaml * set cluster-cloud-director version * CAPVCD v27.0.0: Fix version extraction. * CAPVCD v27.0.0: Comment on Kustomization exception. * Renovate: Add `cloud-director`. * CAPVCD v27.0.0: Use `cloud-provider-cloud-director`. * bump cloud-director app version --------- Co-authored-by: Marco Ebert --- README.md | 6 ++ cloud-director/archived/.gitkeep | 0 cloud-director/kustomization.yaml | 17 ++++ cloud-director/releases.json | 14 +++ cloud-director/requests.yaml | 21 +++++ cloud-director/v27.0.0/README.md | 16 ++++ cloud-director/v27.0.0/announcement.md | 3 + cloud-director/v27.0.0/kustomization.yaml | 20 +++++ cloud-director/v27.0.0/release.yaml | 104 ++++++++++++++++++++++ renovate.go | 2 +- 10 files changed, 202 insertions(+), 1 deletion(-) create mode 100644 cloud-director/archived/.gitkeep create mode 100644 cloud-director/kustomization.yaml create mode 100644 cloud-director/releases.json create mode 100644 cloud-director/requests.yaml create mode 100644 cloud-director/v27.0.0/README.md create mode 100644 cloud-director/v27.0.0/announcement.md create mode 100644 cloud-director/v27.0.0/kustomization.yaml create mode 100644 cloud-director/v27.0.0/release.yaml diff --git a/README.md b/README.md index 24d86ba2f..03ee194d5 100644 --- a/README.md +++ b/README.md @@ -543,6 +543,12 @@ to all Giant Swarm installations. - [v27.0.1](https://github.com/giantswarm/releases/tree/master/vsphere/v27.0.1) - [v27.0.0](https://github.com/giantswarm/releases/tree/master/vsphere/v27.0.0) +## VMware Cloud Director + +- v27 + - v27.0 + - [v27.0.0](https://github.com/giantswarm/releases/tree/master/cloud-director/v27.0.0) + # Running tests against PRs ## Workload Cluster End-to-End Tests diff --git a/cloud-director/archived/.gitkeep b/cloud-director/archived/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/cloud-director/kustomization.yaml b/cloud-director/kustomization.yaml new file mode 100644 index 000000000..8bf5f46ae --- /dev/null +++ b/cloud-director/kustomization.yaml @@ -0,0 +1,17 @@ +resources: +- v27.0.0 + +commonAnnotations: + giantswarm.io/docs: https://docs.giantswarm.io/use-the-api/management-api/crd/releases.release.giantswarm.io + +transformers: +- | + apiVersion: builtin + kind: PrefixSuffixTransformer + metadata: + name: release-notes + fieldSpecs: + - group: release.giantswarm.io + kind: Release + path: metadata/annotations/giantswarm.io\/release-notes + prefix: https://github.com/giantswarm/releases/tree/master/cloud-director/v diff --git a/cloud-director/releases.json b/cloud-director/releases.json new file mode 100644 index 000000000..5d62535bd --- /dev/null +++ b/cloud-director/releases.json @@ -0,0 +1,14 @@ +{ + "releases": [ + { + "version": "27.0.0", + "isDeprecated": false, + "releaseTimestamp": "2024-11-07 12:00:00 +0000 UTC", + "changelogUrl": "https://github.com/giantswarm/releases/blob/master/cloud-director/v27.0.0/README.md", + "isStable": true + } + ], + "sourceUrl": "https://github.com/giantswarm/releases", + "changelogUrl": "https://github.com/giantswarm/releases/blob/main/README.md", + "homepage": "https://giantswarm.io" +} \ No newline at end of file diff --git a/cloud-director/requests.yaml b/cloud-director/requests.yaml new file mode 100644 index 000000000..be4d31436 --- /dev/null +++ b/cloud-director/requests.yaml @@ -0,0 +1,21 @@ +releases: +- name: "< 30.0.0" + requests: + - name: cilium + version: "< 0.26.0" +- name: ">= 29.1.0" + requests: + - name: observability-bundle + version: ">= 1.8.0" + - name: security-bundle + version: ">= 1.9.0" +- name: "> 29.0.0" + requests: + - name: observability-bundle + version: ">= 1.6.2" + - name: security-bundle + version: ">= 1.8.2" +- name: "> 29.0.0" + requests: + - name: cert-exporter + version: ">= 2.9.2" diff --git a/cloud-director/v27.0.0/README.md b/cloud-director/v27.0.0/README.md new file mode 100644 index 000000000..a39cba9c2 --- /dev/null +++ b/cloud-director/v27.0.0/README.md @@ -0,0 +1,16 @@ +# :zap: Giant Swarm Release v27.0.0 for VMware Cloud Director :zap: + +We are happy to announce the first release for VMware Cloud Director that uses the new release framework. + +## Migration to new releases flow + +In order to consume the new flow, the following two fields need to be manually adapted: + +* In ConfigMap `-userconfig` set `.Values.global.release` to the release version, e.g. `27.0.0`. +* In App `` remove the `spec.version` field. In case of GitOps, Flux might complain that the app manifest is invalid as the `spec.version` field is mandatory. In that case, edit the live App CR and set `spec.version` to an empty string. That will unblock Flux and allow it reconcile successfully. + +And if you want to use `kubectl-gs` to create a cluster, you'd need to now specify the release version, e.g.: + +```bash +kubectl-gs template cluster --provider cloud-director --organization my_org --name cluster_name --release v27.0.0 +``` diff --git a/cloud-director/v27.0.0/announcement.md b/cloud-director/v27.0.0/announcement.md new file mode 100644 index 000000000..d6db94748 --- /dev/null +++ b/cloud-director/v27.0.0/announcement.md @@ -0,0 +1,3 @@ +**Workload cluster release v27.0.0 for VMware Cloud Director is available**. This release upgrades Kubernetes to v1.27. + +Further details can be found in the [release notes](https://docs.giantswarm.io/changes/workload-cluster-releases-cloud-director/releases/cloud-director-27.0.0). diff --git a/cloud-director/v27.0.0/kustomization.yaml b/cloud-director/v27.0.0/kustomization.yaml new file mode 100644 index 000000000..07889430a --- /dev/null +++ b/cloud-director/v27.0.0/kustomization.yaml @@ -0,0 +1,20 @@ +resources: +- release.yaml + +replacements: +- source: + group: release.giantswarm.io + kind: Release + fieldPath: metadata.name + options: + delimiter: "-" + # Need to target index 2 here as `cloud-director` itself already contains a hyphen. + index: 2 + targets: + - select: + group: release.giantswarm.io + kind: Release + fieldPaths: + - metadata.annotations.[giantswarm.io/release-notes] + options: + create: true diff --git a/cloud-director/v27.0.0/release.yaml b/cloud-director/v27.0.0/release.yaml new file mode 100644 index 000000000..854d857aa --- /dev/null +++ b/cloud-director/v27.0.0/release.yaml @@ -0,0 +1,104 @@ +apiVersion: release.giantswarm.io/v1alpha1 +kind: Release +metadata: + name: cloud-director-27.0.0 +spec: + apps: + - name: capi-node-labeler + version: 0.5.0 + - name: cert-exporter + version: 2.9.1 + dependsOn: + - kyverno-crds + - name: cert-manager + version: 3.8.1 + dependsOn: + - prometheus-operator-crd + - name: chart-operator-extensions + version: 1.1.2 + dependsOn: + - prometheus-operator-crd + - name: cilium + version: 0.25.1 + - name: cilium-servicemonitors + version: 0.1.2 + dependsOn: + - prometheus-operator-crd + - name: cloud-provider-cloud-director + version: 0.3.1 + dependsOn: + - cilium + - name: coredns + version: 1.21.0 + dependsOn: + - cilium + - name: etcd-k8s-res-count-exporter + version: 1.10.0 + dependsOn: + - kyverno-crds + - name: external-dns + version: 3.1.0 + dependsOn: + - prometheus-operator-crd + - name: k8s-audit-metrics + version: 0.10.0 + dependsOn: + - kyverno-crds + - name: k8s-dns-node-cache + version: 2.8.1 + dependsOn: + - kyverno-crds + - name: metrics-server + version: 2.4.2 + dependsOn: + - kyverno-crds + - name: net-exporter + version: 1.21.0 + dependsOn: + - prometheus-operator-crd + - name: network-policies + catalog: cluster + version: 0.1.1 + dependsOn: + - cilium + - name: node-exporter + version: 1.19.0 + dependsOn: + - kyverno-crds + - name: observability-bundle + version: 1.5.3 + dependsOn: + - coredns + - name: observability-policies + version: 0.0.1 + dependsOn: + - kyverno-crds + - name: prometheus-blackbox-exporter + version: 0.4.2 + dependsOn: + - prometheus-operator-crd + - name: security-bundle + catalog: giantswarm + version: 1.8.0 + dependsOn: + - prometheus-operator-crd + - name: teleport-kube-agent + version: 0.9.2 + - name: vertical-pod-autoscaler + version: 5.2.4 + dependsOn: + - prometheus-operator-crd + - name: vertical-pod-autoscaler-crd + version: 3.1.0 + components: + - name: cluster-cloud-director + catalog: cluster + version: 0.63.1 + - name: flatcar + version: 3815.2.5 + - name: kubernetes + version: 1.27.16 + - name: os-tooling + version: 1.20.1 + date: "2024-11-07T12:00:00Z" + state: active diff --git a/renovate.go b/renovate.go index be9d2cea7..bf7125651 100644 --- a/renovate.go +++ b/renovate.go @@ -35,7 +35,7 @@ type GiantSwarmRelease struct { } func main() { - directories := []string{"capa", "azure", "vsphere"} + directories := []string{"capa", "azure", "vsphere", "cloud-director"} for _, dir := range directories { releases := Releases{ SourceUrl: "https://github.com/giantswarm/releases",