mirror of
https://github.com/bitnami/charts.git
synced 2026-04-02 23:37:20 +08:00
charts: helm generate should be forced if the manifest already exists (#37)
This commit is contained in:
@@ -140,7 +140,7 @@ Refer to the [MariaDB persistence](#mariadb-persistence) section for setting up
|
||||
Apply the changes.
|
||||
|
||||
```bash
|
||||
$ helmc generate mariadb
|
||||
$ helmc generate --force mariadb
|
||||
```
|
||||
|
||||
It's time to deploy the MariaDB Chart.
|
||||
@@ -196,7 +196,7 @@ For information on setting up email notifications please read the [Email Deliver
|
||||
Once your done updating the deployment parameters, apply the changes with.
|
||||
|
||||
```bash
|
||||
$ helmc generate redmine
|
||||
$ helmc generate --force redmine
|
||||
```
|
||||
|
||||
And finally we're ready to deploy the Redmine Chart.
|
||||
|
||||
@@ -25,7 +25,7 @@ Configurable parameters can be specified in `tpl/values.toml`. If not specified
|
||||
Finally, generate the chart to apply your changes to the configuration.
|
||||
|
||||
```bash
|
||||
$ helmc generate mariadb-cluster
|
||||
$ helmc generate --force mariadb-cluster
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
@@ -25,7 +25,7 @@ Configurable parameters can be specified in `tpl/values.toml`. If not specified
|
||||
Finally, generate the chart to apply your changes to the configuration.
|
||||
|
||||
```bash
|
||||
$ helmc generate mariadb
|
||||
$ helmc generate --force mariadb
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
@@ -19,7 +19,7 @@ By default authentication is not enabled on the Memcached server. Edit the value
|
||||
Finally, generate the chart to apply your changes to the configuration.
|
||||
|
||||
```bash
|
||||
$ helmc generate memcached
|
||||
$ helmc generate --force memcached
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
@@ -25,7 +25,7 @@ Configurable parameters can be specified in `tpl/values.toml`. If not specified
|
||||
Finally, generate the chart to apply your changes to the configuration.
|
||||
|
||||
```bash
|
||||
$ helmc generate mongodb
|
||||
$ helmc generate --force mongodb
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
@@ -25,7 +25,7 @@ Configurable parameters can be specified in `tpl/values.toml`. If not specified
|
||||
Finally, generate the chart to apply your changes to the configuration.
|
||||
|
||||
```bash
|
||||
$ helmc generate postgresql
|
||||
$ helmc generate --force postgresql
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
@@ -25,7 +25,7 @@ Configurable parameters can be specified in `tpl/values.toml`. If not specified
|
||||
Finally, generate the chart to apply your changes to the configuration.
|
||||
|
||||
```bash
|
||||
$ helmc generate redis
|
||||
$ helmc generate --force redis
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
@@ -39,7 +39,7 @@ The values of `redmineUser` and `redminePassword` are the login credentials when
|
||||
Finally, generate the chart to apply your changes to the configuration.
|
||||
|
||||
```bash
|
||||
$ helmc generate redmine
|
||||
$ helmc generate --force redmine
|
||||
```
|
||||
|
||||
## Access your Redmine application
|
||||
|
||||
@@ -8,11 +8,11 @@ SCRIPT_DIR=$(dirname $0)
|
||||
cd $SCRIPT_DIR
|
||||
|
||||
BASE_DIR=$PWD
|
||||
for file in $(grep -r "^#helm:generate" . --exclude-dir=manifests | cut -d':' -f1)
|
||||
for file in $(grep -r "^#helm:generate" . --exclude-dir=manifests --exclude-dir=_docs --exclude-dir=_tests | cut -d':' -f1)
|
||||
do
|
||||
CHART_DIR=$(echo $file | cut -d'/' -f2)
|
||||
TEMPLATE_FILE=$(echo "$file" | cut -d'/' -f3-)
|
||||
COMMAND=$(cat $file | grep ^#helm:generate | cut -d' ' -f2- | sed "s|\$HELM_GENERATE_FILE|$TEMPLATE_FILE|")
|
||||
COMMAND=$(cat $file | grep ^#helm:generate | cut -d' ' -f2- | sed "s|\$HELM_GENERATE_FILE|--force $TEMPLATE_FILE|")
|
||||
cd $CHART_DIR
|
||||
echo "Running generator: $COMMAND"
|
||||
$COMMAND
|
||||
|
||||
@@ -25,7 +25,7 @@ Configurable parameters can be specified in `tpl/values.toml`. If not specified
|
||||
Finally, generate the chart to apply your changes to the configuration.
|
||||
|
||||
```bash
|
||||
$ helmc generate tomcat
|
||||
$ helmc generate --force tomcat
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
@@ -25,7 +25,7 @@ Configurable parameters can be specified in `tpl/values.toml`. If not specified
|
||||
Finally, generate the chart to apply your changes to the configuration.
|
||||
|
||||
```bash
|
||||
$ helmc generate wildfly
|
||||
$ helmc generate --force wildfly
|
||||
```
|
||||
|
||||
## Cleanup
|
||||
|
||||
Reference in New Issue
Block a user