-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from losisin/add-pre-coomit-hook-and-update-do…
…cumentation add pre-commit hook, update docs and bump version
- Loading branch information
Showing
6 changed files
with
92 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
repos: | ||
- repo: https://github.com/losisin/helm-values-schema-json | ||
rev: v0.1.6 | ||
hooks: | ||
- id: helm-schema | ||
args: | ||
# Single or multiple yamlFiles as inputs (comma-separated) | ||
- --input=values.yaml | ||
# Output file path (default "values.schema.json") | ||
- --output=values.schema.json | ||
# Draft version (4, 6, 7, 2019, or 2020) (default 2020) | ||
- --draft=2020 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- id: helm-schema | ||
args: [] | ||
description: Helm plugin for generating values.schema.json from single or multiple values files. Works only with Helm3 charts. | ||
entry: scripts/git-hook.sh | ||
language: script | ||
name: Helm Docs | ||
require_serial: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: "schema" | ||
version: "0.1.5" | ||
version: "0.1.6" | ||
usage: "generate values.schema.json from values yaml" | ||
description: "Helm plugin for generating values.schema.json from multiple values files." | ||
ignoreFlags: false | ||
command: "$HELM_PLUGIN_DIR/schema" | ||
hooks: | ||
install: "cd $HELM_PLUGIN_DIR; ./install-binary.sh" | ||
update: "cd $HELM_PLUGIN_DIR; HELM_PLUGIN_UPDATE=1 ./install-binary.sh" | ||
install: "cd $HELM_PLUGIN_DIR; ./scripts/install.sh" | ||
update: "cd $HELM_PLUGIN_DIR; HELM_PLUGIN_UPDATE=1 ./scripts/install.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -e | ||
|
||
if ! 'helm plugin list | grep -q "schema"' > /dev/null 2>&1; then | ||
echo "Please install helm-values-schema-json plugin! https://github.com/losisin/helm-values-schema-json#install" | ||
fi | ||
|
||
helm schema "${@}" |
File renamed without changes.