Skip to content

Commit

Permalink
OPSEXP-2444 Strict kubeconform from k8s 1.25 (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn authored Jan 17, 2024
1 parent 6026dab commit 2595724
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,20 @@ 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:
- id: kubeconform-helm
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
Expand Down
13 changes: 13 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2595724

Please sign in to comment.