charts: helm generate should be forced if the manifest already exists (#37)

This commit is contained in:
Sameer Naik
2016-05-10 14:27:42 +05:30
parent 4c4859a479
commit 6b3cd73f22
11 changed files with 13 additions and 13 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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