Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
2a17d9d
add contents write permission for dependabot token
tuunit May 26, 2024
e006c3d
use rebase instead of merge commit
tuunit Jun 2, 2024
7131302
chore: bump github.com/aws/aws-sdk-go from 1.53.7 to 1.53.14
dependabot[bot] Jun 2, 2024
f2ecb46
chore: bump github.com/aws/aws-sdk-go from 1.53.14 to 1.53.19
dependabot[bot] Jun 9, 2024
907dff3
chore: bump github.com/spf13/cobra from 1.8.0 to 1.8.1
dependabot[bot] Jun 16, 2024
27290d1
chore: bump k8s.io/client-go from 0.30.1 to 0.30.2
dependabot[bot] Jun 16, 2024
b007f8a
chore: bump github.com/aws/aws-sdk-go from 1.53.19 to 1.54.2
dependabot[bot] Jun 16, 2024
4c9788b
chore: bump github.com/aws/aws-sdk-go from 1.54.2 to 1.54.6
dependabot[bot] Jun 23, 2024
ef398de
chore: bump github.com/aws/aws-sdk-go from 1.54.6 to 1.54.11
dependabot[bot] Jun 30, 2024
9122cd2
chore: bump github.com/aws/aws-sdk-go from 1.54.11 to 1.54.15
dependabot[bot] Jul 7, 2024
e06d0c1
chore: bump github.com/aws/aws-sdk-go from 1.54.15 to 1.54.19
dependabot[bot] Jul 14, 2024
9a05073
chore: bump k8s.io/client-go from 0.30.2 to 0.30.3
dependabot[bot] Jul 21, 2024
c796564
chore: bump github.com/aws/aws-sdk-go from 1.54.19 to 1.54.20
dependabot[bot] Jul 21, 2024
ea7ba2e
chore: bump github.com/aws/aws-sdk-go from 1.54.20 to 1.55.3
dependabot[bot] Jul 28, 2024
861bacd
chore: bump github.com/aws/aws-sdk-go from 1.55.3 to 1.55.5
dependabot[bot] Aug 4, 2024
5f38c03
chore: bump k8s.io/client-go from 0.30.3 to 0.31.0
dependabot[bot] Aug 18, 2024
30daf18
chore: bump k8s.io/client-go from 0.31.0 to 0.31.1
dependabot[bot] Sep 15, 2024
3cfc50d
chore: bump k8s.io/client-go from 0.31.1 to 0.31.2
dependabot[bot] Oct 27, 2024
1619f20
chore: bump k8s.io/client-go from 0.31.2 to 0.31.3
dependabot[bot] Nov 24, 2024
c747591
chore: bump github.com/stretchr/testify from 1.9.0 to 1.10.0
dependabot[bot] Nov 24, 2024
aef2243
chore: bump k8s.io/apimachinery from 0.31.3 to 0.32.0
dependabot[bot] Dec 15, 2024
26db74d
chore: bump k8s.io/client-go from 0.31.3 to 0.32.0
dependabot[bot] Dec 15, 2024
69844db
chore: bump helm/kind-action from 1.10.0 to 1.11.0
dependabot[bot] Dec 22, 2024
26843e5
chore: bump helm/kind-action from 1.11.0 to 1.12.0
dependabot[bot] Dec 29, 2024
9d3eea1
chore: bump k8s.io/apimachinery from 0.32.0 to 0.32.1
dependabot[bot] Jan 19, 2025
6f1276f
chore: bump github.com/aws/aws-sdk-go from 1.55.5 to 1.55.6
dependabot[bot] Jan 19, 2025
0d9361f
chore: bump golang.org/x/net from 0.30.0 to 0.33.0
dependabot[bot] Jan 19, 2025
4a1b427
chore: bump k8s.io/api from 0.32.0 to 0.32.1
dependabot[bot] Jan 19, 2025
c132c70
chore: bump k8s.io/client-go from 0.32.0 to 0.32.1
dependabot[bot] Jan 19, 2025
ffd4d71
chore: bump github.com/spf13/cobra from 1.8.1 to 1.9.0
dependabot[bot] Feb 16, 2025
2c465ef
chore: bump k8s.io/client-go from 0.32.1 to 0.32.2
dependabot[bot] Feb 16, 2025
f3bcdec
chore: bump github.com/spf13/cobra from 1.9.0 to 1.9.1
dependabot[bot] Feb 23, 2025
debc737
chore: bump golang.org/x/net from 0.33.0 to 0.36.0
dependabot[bot] Mar 13, 2025
0a4420b
chore: bump k8s.io/apimachinery from 0.32.2 to 0.32.3
dependabot[bot] Mar 16, 2025
e275875
chore: bump k8s.io/api from 0.32.2 to 0.32.3
dependabot[bot] Mar 16, 2025
fe33009
chore: bump k8s.io/client-go from 0.32.2 to 0.32.3
dependabot[bot] Mar 16, 2025
0183241
chore(deps): bump to golang 1.24 (#161)
tuunit Apr 12, 2025
bf2f1f0
feat: add full environment substitution (#162)
tuunit Apr 12, 2025
e5e6a92
fix(ci): mkdocs build
tuunit Apr 12, 2025
b23c950
docs: release 1.4.0
github-actions[bot] Apr 12, 2025
2fedc8c
build(dependabot): update commit prefixes
tuunit Apr 13, 2025
a1085ab
chore(actions): bump actions/upload-artifact from 4 to 5
dependabot[bot] Oct 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ updates:
- actions
- Skip Changelog
commit-message:
prefix: "chore: "
prefix: "chore(actions): "
schedule:
interval: weekly
day: sunday
Expand All @@ -18,7 +18,7 @@ updates:
- docker
- Skip Changelog
commit-message:
prefix: "chore: "
prefix: "chore(deps): "
schedule:
interval: weekly
day: sunday
Expand All @@ -29,7 +29,7 @@ updates:
- go
- Skip Changelog
commit-message:
prefix: "chore: "
prefix: "chore(deps): "
schedule:
interval: weekly
day: sunday
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Create Helm Compose Distributions
run: make dist

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: helm-compose
path: release/*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Helm Compose
run: make install

- uses: helm/kind-action@v1.10.0
- uses: helm/kind-action@v1.12.0

- name: Run Helm Compose
run: helm compose up -f examples/simple-compose.yaml
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/dependabot-automerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on: pull_request

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
Expand All @@ -22,7 +23,7 @@ jobs:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Auto-merge PR
run: gh pr merge --auto --merge "$PR_URL"
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
8 changes: 3 additions & 5 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
fetch-tags: true

- uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Run generate cache key
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
Expand All @@ -33,8 +31,9 @@ jobs:
restore-keys: |
mkdocs-

- name: Run setup mkdocs dependencies
run: pip install mkdocs mkdocs-material mkdocs-autolinks-plugin mkdocs-drawio-file mkdocs-git-revision-date-localized-plugin fontawesome_markdown mike pymdown-extensions
- name: Install dependencies
run: |
pip install mkdocs mkdocs-material mkdocs-autolinks-plugin mkdocs-drawio mkdocs-git-revision-date-localized-plugin fontawesome_markdown mike pymdown-extensions

- name: Run mkdocs deployment
run: |
Expand All @@ -52,4 +51,3 @@ jobs:
SHORT_VERSION=${LATEST_TAG%.*}

mike deploy -b gh-pages -p -F mkdocs.yaml -u ${SHORT_VERSION} latest

6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changes since 1.3.0
# Changes since 1.4.0
# 1.4.0
- chore(deps): bump to golang 1.24
- feat: add full environment substitution

# 1.3.0
- feat: add templating command
- chore: upgrade to golang 1.22
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ It is requirement to use helm v3.10.0+.
Install a specific version of helm compose (recommended). Click [here](https://github.com/seacrew/helm-compose/releases/latest) for the latest version.

```
helm plugin install https://github.com/seacrew/helm-compose --version 1.3.0
helm plugin install https://github.com/seacrew/helm-compose --version 1.4.0
```

Install the latest version.
Expand Down
16 changes: 14 additions & 2 deletions docs/key-features-and-use-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,21 @@ repositories:

### Environment variables

`helm-compose` is able to inject environment variables inside your values block to deal with secrets that shouldn't be committed to your source control.
`helm-compose` utilizes [a8m/envsubst](https://github.com/a8m/envsubst?tab=readme-ov-file#docs) to substitute environment variables inside your values block. This allows for better dealing with secrets that shouldn't be committed to your source control.

|__Expression__ | __Meaning__ |
| ----------------- | -------------- |
|`${var}` | Value of var (same as `$var`)
|`${var-$DEFAULT}` | If var not set, evaluate expression as $DEFAULT
|`${var:-$DEFAULT}` | If var not set or is empty, evaluate expression as $DEFAULT
|`${var=$DEFAULT}` | If var not set, evaluate expression as $DEFAULT
|`${var:=$DEFAULT}` | If var not set or is empty, evaluate expression as $DEFAULT
|`${var+$OTHER}` | If var set, evaluate expression as $OTHER, otherwise as empty string
|`${var:+$OTHER}` | If var set, evaluate expression as $OTHER, otherwise as empty string
|`$${var}` | Escape expressions. Result will be `${var}`.

<sub>Most of the rows in this table were taken from [here](http://www.tldp.org/LDP/abs/html/refcards.html#AEN22728)</sub>

Syntax: `${MY_ENV_VARIABLE}`.

```bash
export WORDPRESS_ADMIN_PASSWORD="xxx"
Expand Down
2 changes: 1 addition & 1 deletion docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Install a specific version (recommended). Click [here](https://github.com/seacrew/helm-compose/releases/latest) for the latest version.

```
helm plugin install https://github.com/seacrew/helm-compose --version 1.3.0
helm plugin install https://github.com/seacrew/helm-compose --version 1.4.0
```

Install latest version.
Expand Down
4 changes: 2 additions & 2 deletions examples/s3-storage-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ releases:
- ./values/wordpress.yaml
values:
wordpressBlogName: Awesome Site
wordpressPassword: "${WORDPRESS_PASSWORD}}"
wordpressPassword: "${WORDPRESS_PASSWORD}"
mariadb.auth:
rootPassword: "${MARIADB_ROOT_PASSWORD}}"
rootPassword: "${MARIADB_ROOT_PASSWORD}"

repositories:
bitnami: https://charts.bitnami.com/bitnami
64 changes: 34 additions & 30 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,60 +1,64 @@
module github.com/seacrew/helm-compose

go 1.22.0

toolchain go1.22.2
go 1.24

require (
github.com/Masterminds/semver v1.5.0
github.com/aws/aws-sdk-go v1.53.7
github.com/aws/aws-sdk-go v1.55.6
github.com/jwalton/go-supportscolor v1.2.0
github.com/spf13/cobra v1.8.0
github.com/stretchr/testify v1.9.0
github.com/spf13/cobra v1.9.1
github.com/stretchr/testify v1.10.0
gopkg.in/yaml.v2 v2.4.0
k8s.io/apimachinery v0.30.1
k8s.io/client-go v0.30.1
k8s.io/apimachinery v0.32.3
k8s.io/client-go v0.32.3
)

require (
github.com/google/gnostic-models v0.6.8 // indirect
github.com/a8m/envsubst v1.4.3 // indirect
github.com/fxamacker/cbor/v2 v2.8.0 // indirect
github.com/google/gnostic-models v0.6.9 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/x448/float16 v0.8.4 // indirect
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emicklei/go-restful/v3 v3.12.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonpointer v0.21.1 // indirect
github.com/go-openapi/jsonreference v0.21.0 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/go-openapi/swag v0.23.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mailru/easyjson v0.9.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/oauth2 v0.20.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/term v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
github.com/spf13/pflag v1.0.6 // indirect
golang.org/x/net v0.39.0 // indirect
golang.org/x/oauth2 v0.29.0 // indirect
golang.org/x/sys v0.32.0 // indirect
golang.org/x/term v0.31.0 // indirect
golang.org/x/text v0.24.0 // indirect
golang.org/x/time v0.11.0 // indirect
google.golang.org/protobuf v1.36.6 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/api v0.30.1
k8s.io/klog/v2 v2.120.1 // indirect
k8s.io/kube-openapi v0.0.0-20240521193020-835d969ad83a // indirect
k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
k8s.io/api v0.32.3
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect
k8s.io/utils v0.0.0-20250321185631-1f6e0b77f77e // indirect
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.7.0 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)
Loading
Loading