Skip to content

Commit

Permalink
translate env vars if found within file string
Browse files Browse the repository at this point in the history
  • Loading branch information
jmclean-starburst committed Nov 22, 2021
1 parent 282cf7e commit e1412d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/ARGOCD.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ spec:
- secrets+gpg-import-kubernetes://argocd/helm-secrets-private-keys#key.asc?https://raw.githubusercontent.com/jkroepke/helm-secrets/main/tests/assets/values/sops/values.yaml
# Using https://github.com/aslafy-z/helm-git
- secrets+gpg-import-kubernetes://argocd/helm-secrets-private-keys#key.asc?git+https://github.com/jkroepke/helm-secrets@tests/assets/values/sops/secrets.yaml?ref=main"
# Fetching from a private repo with env variable
- secrets://https://$GITHUB_TOKEN@raw.githubusercontent.com/org/repo/ref/pathtofile.yml
```

## Known Issues
Expand Down
2 changes: 1 addition & 1 deletion scripts/commands/view.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ EOF
}

view_helper() {
file="$1"
file=$(eval echo "${1}") # translate env vars supplied

if ! _file_exists "$file"; then
error 'File does not exist: %s\n' "${file}"
Expand Down

0 comments on commit e1412d3

Please sign in to comment.