Skip to content

Commit

Permalink
fix plugin installation and updation
Browse files Browse the repository at this point in the history
previously - always the latest version of the plugin
was being installed. this fixes that, by only installing
the version mentioned in the plugin.yaml
  • Loading branch information
karuppiah7890 committed Dec 29, 2019
1 parent d0563bc commit 98bf855
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ usage: "generate json schema for values yaml"
description: "generate json schema for values yaml"
command: "$HELM_PLUGIN_DIR/bin/helm-schema-gen"
hooks:
install: "cd $HELM_PLUGIN_DIR; scripts/install.sh"
update: "cd $HELM_PLUGIN_DIR; scripts/install.sh"
install: "cd $HELM_PLUGIN_DIR; scripts/install_version.sh"
update: "cd $HELM_PLUGIN_DIR; scripts/install_version.sh"
11 changes: 11 additions & 0 deletions scripts/install_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

## this script must be called ONLY
## from the root of this project

## this script installs a the
## version of the plugin mentioned
## in the plugin.yaml

version="$(cat plugin.yaml | grep "version" | cut -d '"' -f 2)"
./scripts/install.sh $version

0 comments on commit 98bf855

Please sign in to comment.