Skip to content

Commit 36888a1

Browse files
authored
feat: Add kubeconform skip (#114)
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
1 parent 5d6f665 commit 36888a1

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/validate.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ on:
5353
type: string
5454
required: false
5555
default: ""
56+
kubeconform_skip:
57+
description: List of Kubeconform schemas to skip; as a comma separated list of kinds or GVKs.
58+
type: string
59+
required: false
60+
default: ""
5661
helm_extra_args:
5762
description: Extra arguments to pass to Helm as part of chart testing.
5863
type: string
@@ -281,7 +286,7 @@ jobs:
281286
for k8s_version in ${k8s_versions//,/ }
282287
do
283288
echo "Chart: ${chart}, K8s: ${k8s_version}"
284-
helm template --kube-version "${k8s_version}" "./${{ inputs.chart_dir }}/${chart}" --values "${values}" | kubeconform --kubernetes-version "${k8s_version}" --schema-location default --schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' --strict --summary
289+
helm template --kube-version "${k8s_version}" "./${{ inputs.chart_dir }}/${chart}" --values "${values}" | kubeconform --kubernetes-version "${k8s_version}" --schema-location default --schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' --schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.NormalizedKubernetesVersion}}/{{.ResourceKind}}.json' --skip "${{ inputs.kubeconform_skip }}" --strict --summary
285290
done
286291
done
287292

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,21 @@
1515

1616
## [UNRELEASED]
1717

18+
## [v0.9.0] - 2026-01-21
19+
20+
### Added
21+
22+
- Add support for skipping specific Kubeconform schemas via the `kubeconform_skip` input variable. ([#114](https://github.com/action-stars/helm-workflows/pull/114)) _@stevehipwell_
23+
1824
### Changed
1925

2026
- Update _actions/checkout_ from `6.0.0` to `6.0.1`. ([#113](https://github.com/action-stars/helm-workflows/pull/113)) _@dependabot_
2127
- Update _actions/attest-build-provenance_ from `3.0.0` to `3.1.0`. ([#113](https://github.com/action-stars/helm-workflows/pull/113)) _@dependabot_
2228

29+
### Fixed
30+
31+
- Fix missing support for `CustomResourceDefinition` schema in Kubeconform. ([#114](https://github.com/action-stars/helm-workflows/pull/114)) _@stevehipwell_
32+
2333
## [v0.8.11] - 2025-11-26
2434

2535
### Changed
@@ -427,7 +437,8 @@
427437
<!--
428438
RELEASES
429439
-->
430-
[UNRELEASED]: https://github.com/action-stars/helm-workflows/compare/v0.8.11...HEAD
440+
[UNRELEASED]: https://github.com/action-stars/helm-workflows/compare/v0.9.0...HEAD
441+
[v0.9.0]: https://github.com/action-stars/helm-workflows/releases/tag/v0.9.0
431442
[v0.8.11]: https://github.com/action-stars/helm-workflows/releases/tag/v0.8.11
432443
[v0.8.10]: https://github.com/action-stars/helm-workflows/releases/tag/v0.8.10
433444
[v0.8.9]: https://github.com/action-stars/helm-workflows/releases/tag/v0.8.9

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ This GitHub Actions workflow is used to validate _Helm_ charts.
5656
| helm_repos | string | false | | List of Helm repos to install; as a comma separated list in the format `<name>=<address>`. |
5757
| kubeconform | boolean | false | `true` | If the Kubeconform should be run. |
5858
| kubeconform_k8s_versions | string | false | | List of Kubernetes versions to use for Kubeconform; as a comma separated list in the format `<major>.<minor>.<patch>`. |
59+
| kubeconform_skip | string | false | | List of Kubeconform schemas to skip; as a comma separated list of kinds or GVKs. |
5960
| target_branch | string | false | `"main"` | Target branch for charts. |
6061

6162
<!-- AUTO-DOC-INPUT:END -->

0 commit comments

Comments
 (0)