diff --git a/action.yaml b/action.yaml index ee2ce2f..0137589 100644 --- a/action.yaml +++ b/action.yaml @@ -38,7 +38,7 @@ inputs: description: 'Name of the helm deploy.' required: true action: - description: 'Specify whether you want to install or uninstall the target helm chart' + description: 'Specify whether you want to list, install or uninstall the target helm chart' required: false default: 'install' dry-run: diff --git a/deploy.sh b/deploy.sh index e6883b5..de4ba62 100644 --- a/deploy.sh +++ b/deploy.sh @@ -195,8 +195,8 @@ if [ -n "$DEPLOY_NAMESPACE" ]; then fi # Create namespace if it doesn't exist. Requires cluster API permissions. -# Will conflict with `list`, so don't set if in list mode -if [ "${CREATE_NAMESPACE}" == "true" ] && [ "${HELM_ACTION}" != "list" ]; then +# Only applies to `install` option. `helm upgrade` is not used. +if [ "${CREATE_NAMESPACE}" == "true" ] && [ "${HELM_ACTION}" == "install" ]; then HELM_COMMAND="${HELM_COMMAND} --create-namespace" fi