Skip to content

Commit 9d2d944

Browse files
authored
Adding extra-args option (#39)
* Initial commit * Changing var name to HELM_EXTRA_ARGS
1 parent 490d3b7 commit 9d2d944

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Following inputs can be used as `step.with` keys
4949
| `username` | String | Chart repository username where to locate the requested chart. |
5050
| `password` | String | Chart repository password where to locate the requested chart. |
5151
| `use-secrets-vals` | Boolean | Use secrets plugin using vals to evaluate the secrets |
52+
| `helm-extra-args` | String | Append any string containing any extra option that might escape the ones present in this action. |
5253

5354
## Example 1 - local repo chart
5455

action.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ inputs:
9292
use-secrets-vals:
9393
description: 'Uses the secrets with vals backend to apply the chart'
9494
required: false
95+
helm-extra-args:
96+
description: 'Append any string containing any extra option that might escape the ones present in this action.'
97+
required: false
9598
runs:
9699
using: 'docker'
97100
image: 'Dockerfile'
@@ -123,3 +126,4 @@ runs:
123126
REPO_PASSWORD: ${{ inputs.password }}
124127
VERSION: ${{ inputs.version }}
125128
USE_SECRETS_VALS: ${{ inputs.use-secrets-vals }}
129+
HELM_EXTRA_ARGS: ${{ inputs.extra-args }}

deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,5 @@ if [ "${HELM_ACTION}" == "install" ]; then
199199
HELM_COMMAND="${HELM_COMMAND} ${DEPLOY_CHART_PATH}"
200200
fi
201201

202-
echo "Executing: ${HELM_COMMAND}"
203-
${HELM_COMMAND}
202+
echo "Executing: ${HELM_COMMAND} ${HELM_EXTRA_ARGS}"
203+
${HELM_COMMAND} ${HELM_EXTRA_ARGS}

0 commit comments

Comments
 (0)