Skip to content

Commit

Permalink
fix: use helm-schema instead of deprecated helm-schema-gen plugin (#499)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update generate-schemas.sh
  • Loading branch information
christianhuth authored Dec 19, 2024
1 parent 3952675 commit 3d79ba5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ helm plugin install --version=v${HELM_LOCAL_CHART_VERSION_PLUGIN_VERSION} https:
helm local-chart-version version
EOF

# Helm schema-gen plugin
# renovate: datasource=github-releases depName=knechtionscoding/helm-schema-gen
ARG HELM_SCHEMA_GEN_PLUGIN_VERSION=0.0.10
# Helm schema plugin
# renovate: datasource=github-releases depName=dadav/helm-schema
ARG HELM_SCHEMA_GEN_PLUGIN_VERSION=0.16.1
RUN <<EOF
helm plugin install --version=v${HELM_SCHEMA_GEN_PLUGIN_VERSION} https://github.com/knechtionscoding/helm-schema-gen
helm schema-gen --help
helm plugin install --version=v${HELM_SCHEMA_GEN_PLUGIN_VERSION} https://github.com/dadav/helm-schema
helm schema --help
EOF

# Chart Doc Gen
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-schemas.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -euox pipefail

echo "Running schema-gen..."
echo "Running helm-schema..."

CHARTS_DIR=${CHARTS_DIR:-"charts"}

Expand All @@ -13,6 +13,6 @@ for chart in "${CHARTS_DIR}"/*; do
continue
fi

helm schema-gen ${chart}/values.yaml >${chart}/values.schema.json
helm schema

done

0 comments on commit 3d79ba5

Please sign in to comment.