From fb4bf32cf08f6b59540f3c49c1224d348b7ec335 Mon Sep 17 00:00:00 2001 From: Igor Soares Date: Thu, 1 Feb 2024 13:06:43 -0300 Subject: [PATCH] Add minimum Kubernetes version supported Add the minimum Kubernetes version supported to the application metadata file. The minimum Kubernetes version is set to 1.24.4 and should be changed accordingly for future application updates. The "supported_k8s_version:minimum" field is optional but it will become mandatory in the near future. This also contains a fix to properly trigger the Tox metadata checks. Test Plan PASS: build-pkgs && build-image PASS: Apply application Story: 2010929 Task: 49496 Change-Id: Ib64aed788607c1c650e80c11476219f08bc8bfaf Signed-off-by: Igor Soares --- .zuul.yaml | 2 -- .../stx-metrics-server-helm/files/metadata.yaml | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 257e661..6010b5e 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -48,8 +48,6 @@ - starlingx/update - starlingx/utilities - starlingx/root - files: - - python3-k8sapp-metrics-server/* vars: tox_envlist: metadata tox_extra_args: -c python3-k8sapp-metrics-server/k8sapp_metrics_server/tox.ini diff --git a/stx-metrics-server-helm/stx-metrics-server-helm/files/metadata.yaml b/stx-metrics-server-helm/stx-metrics-server-helm/files/metadata.yaml index 9ca419e..eae02db 100644 --- a/stx-metrics-server-helm/stx-metrics-server-helm/files/metadata.yaml +++ b/stx-metrics-server-helm/stx-metrics-server-helm/files/metadata.yaml @@ -5,6 +5,10 @@ helm_repo: HELM_REPLACE_REPO maintain_user_overrides: true upgrades: - auto_update: true + auto_update: true + +supported_k8s_version: + minimum: 1.24.4 + behavior: - platform_managed_app: yes + platform_managed_app: yes