-
Notifications
You must be signed in to change notification settings - Fork 1
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 #23 from Conjur-Enterprise/update-version-dynamically
CNJR-3496: Add script to update chart and provider versions
- Loading branch information
Showing
6 changed files
with
39 additions
and
20 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
version=$(cat VERSION) | ||
provider_file="./pkg/provider/provider.go" | ||
chart_yaml="./helm/conjur-k8s-csi-provider/Chart.yaml" | ||
|
||
# Update the providerVersion constant | ||
sed -i "s/const providerVersion = \".*\"/const providerVersion = \"$version\"/" "$provider_file" | ||
|
||
# Update the chart version | ||
sed -i "s/version: .*/version: $version/" "$chart_yaml" |
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,6 +1,6 @@ | ||
apiVersion: v1 | ||
description: A Helm chart for deploying CyberArk Conjur's CSI Driver Provider | ||
description: A Helm chart for deploying CyberArk Conjur's CSI Driver Provider | ||
name: conjur-k8s-csi-provider | ||
version: 0.1.0 | ||
version: 0.0-dev | ||
home: https://github.com/cyberark/conjur-k8s-csi-provider | ||
icon: https://www.cyberark.com/wp-content/uploads/2015/12/cybr-aim.jpg |
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