Skip to content

Commit

Permalink
HELM_SECRETS_QUIET=true if ArgoCD is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke committed Mar 3, 2021
1 parent 0f3e8dc commit b624363
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Allow override sops version on installation

## [Unreleased]

### Added
- Detect ArgoCD environment by `ARGOCD_APP_NAME` environment variable and set `HELM_SECRETS_QUIET=true` by default. (https://github.com/jkroepke/helm-secrets/pull/83)

## [3.5.0] - 2021-02-20

### Added
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ In meanwhile, this project is officially listed on the [community projects side]

Wraps the whole helm command. Slow on multiple value files.

```
```bash
helm secrets upgrade name . -f secrets.yaml
```

### Decrypt secrets via protocol handler

Run decrypted command on specific value files. Useful if you plan to use the helm terraform provider.

```
```bash
helm upgrade name . -f secrets://secrets.yaml
```

Expand Down Expand Up @@ -219,6 +219,10 @@ If you are using sops (used by default) you have some additional features:

An additional documentation, resources and examples can be found [here](USAGE.md).

### ArgoCD support

helm-secrets could detect an ArgoCD environment by the `ARGOCD_APP_NAME` environment variable. If detected, `HELM_SECRETS_QUIET` is set to `true`.

## Moving parts of project

- [`scripts/install.sh`](scripts/install.sh) - Script used as the hook to download and install sops and install git diff configuration for helm-secrets files.
Expand Down
4 changes: 4 additions & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

set -euf

if [ -n "${ARGOCD_APP_NAME+x}" ]; then
HELM_SECRETS_QUIET="${HELM_SECRETS_QUIET:-true}"
fi

# Path to current directory
SCRIPT_DIR="$(dirname "$0")"

Expand Down

0 comments on commit b624363

Please sign in to comment.