Skip to content

Commit 23b1397

Browse files
Add helm values schema plugin (#728)
**What problem does this PR solve?**: - Adds make target to update the helm values JSON schema using a helm plugin. - Configures pre-commit to check schema. - Installs helm-schema using nix. ```console > make pre-commit ▶ running pre-commit schema-chart.............................................................Failed - hook id: schema-chart - files were modified by this hook make[1]: Entering directory '/home/dlipovetsky/nutanix/capi-runtime-extensions' JSON schema successfully generated make[1]: Leaving directory '/home/dlipovetsky/nutanix/capi-runtime-extensions' ``` **Which issue(s) this PR fixes**: Fixes # **How Has This Been Tested?**: <!-- Please describe the tests that you ran to verify your changes. Provide output from the tests and any manual steps needed to replicate the tests. --> **Special notes for your reviewer**: <!-- Use this to provide any additional information to the reviewers. This may include: - Best way to review the PR. - Where the author wants the most review attention on. - etc. --> --------- Co-authored-by: Jimmi Dyson <[email protected]>
1 parent 20d7d53 commit 23b1397

File tree

6 files changed

+519
-200
lines changed

6 files changed

+519
-200
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
repos:
55
- repo: local
66
hooks:
7+
- id: schema-chart
8+
name: schema-chart
9+
entry: make schema-chart
10+
language: system
11+
files: "^charts/cluster-api-runtime-extensions-nutanix/values.yaml$"
712
- id: golangci-lint
813
name: golangci-lint
914
entry: make go-generate lint

0 commit comments

Comments
 (0)