From 2595724b7ab5b28f98ba52e7dacc4fe67d1ca914 Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo <71768+gionn@users.noreply.github.com> Date: Wed, 17 Jan 2024 12:17:56 +0100 Subject: [PATCH] OPSEXP-2444 Strict kubeconform from k8s 1.25 (#182) --- .pre-commit-config.yaml | 8 +++++--- docs/README.md | 13 +++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ebe3b7eb..28f8a0aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,9 +31,10 @@ repos: name: "Kubeconform Helm - min k8s version" files: ^charts/[^/]+/(\.kubeconform|\.helmignore|templates/NOTES.txt|.*\.(ya?ml|json|tpl))$ args: - - --kubernetes-version=1.21.0 - - --exclude-charts=alfresco-common,alfresco-sync-service + - --kubernetes-version=1.25.0 + - --exclude-charts=alfresco-common - --values-dir=ci + - --strict - repo: https://github.com/jtyr/kubeconform-helm rev: v0.1.16 hooks: @@ -41,8 +42,9 @@ repos: name: "Kubeconform Helm - current k8s version" files: ^charts/[^/]+/(\.kubeconform|\.helmignore|templates/NOTES.txt|.*\.(ya?ml|json|tpl))$ args: - - --exclude-charts=alfresco-common,alfresco-sync-service + - --exclude-charts=alfresco-common - --values-dir=ci + - --strict - repo: local hooks: - id: custom-check-chart-versions diff --git a/docs/README.md b/docs/README.md index 291231b0..8313fa20 100644 --- a/docs/README.md +++ b/docs/README.md @@ -18,6 +18,19 @@ Each individual chart has its own documentation page that's available in the chart directory in [charts/](../charts). There are the values available for each of them. +## Testing + +Each chart is tested against a default configuration on +[KinD](https://kind.sigs.k8s.io/). You can check the currently tested K8s version +by looking at the `KIND_NODE_IMAGE` value in the main [lint-test +workflow](../.github/workflows/lint-test.yaml). + +We are ensuring backward compatibility with older K8s versions with +[kubeconform](https://github.com/yannh/kubeconform). You can check the oldest + K8s version tested by looking at `kubernetes-version` inside the + `kubeconform-helm-min` hook in [pre-commit + configuration](../.pre-commit-config.yaml). + ## Development This repository follows the