Skip to content

Commit e9fe53c

Browse files
nlamiraultrhamzeh
andauthored
feat(helm): add OCI support (#257)
* feat(helm): add OCI support Signed-off-by: Nicolas Lamirault <[email protected]> * feat(helm): use proposition Signed-off-by: Nicolas Lamirault <[email protected]> * feat(helm): add documentation Signed-off-by: Nicolas Lamirault <[email protected]> * feat(helm): bump Helm to v3.19.0 Signed-off-by: Nicolas Lamirault <[email protected]> --------- Signed-off-by: Nicolas Lamirault <[email protected]> Co-authored-by: Raghd Hamzeh <[email protected]>
1 parent 9c1e7ad commit e9fe53c

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
release:
1010
permissions:
1111
contents: write
12+
packages: write
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Checkout
@@ -33,7 +34,7 @@ jobs:
3334
- name: Install Helm
3435
uses: azure/setup-helm@v4
3536
with:
36-
version: v3.5.0
37+
version: v3.19.0
3738

3839
- name: Add Helm Repositories
3940
run: |
@@ -48,3 +49,19 @@ jobs:
4849
env:
4950
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
5051
CR_SKIP_EXISTING: true
52+
53+
- name: Login to GHCR
54+
uses: docker/[email protected]
55+
with:
56+
registry: ghcr.io
57+
username: ${{ github.actor }}
58+
password: ${{ secrets.GITHUB_TOKEN }}
59+
60+
- name: Push chart to GHCR
61+
if: ${{ hashFiles('.cr-release-packages/*.tgz') != '' }}
62+
run: |
63+
set -euo pipefail
64+
shopt -s nullglob
65+
for pkg in .cr-release-packages/*.tgz; do
66+
helm push "${pkg}" "oci://ghcr.io/${{ github.repository_owner }}/helm-charts"
67+
done

charts/openfga/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ helm repo add openfga https://openfga.github.io/helm-charts
99
helm install openfga openfga/openfga
1010
```
1111

12-
## Installing the Chart
12+
## Installing the Chart via Helm Repository
1313

1414
To install the chart with the release name `openfga`:
1515

@@ -22,6 +22,15 @@ This will deploy a 3-replica deployment of OpenFGA on the Kubernetes cluster usi
2222

2323
> **Tip**: List all releases using `helm list`
2424
25+
## Installing the chart via OCI Image
26+
27+
This chart is also available for installation from the GitHub OCI registry. It requires helm 3.8+.
28+
To pull from the GitHub OCI registry, run:
29+
30+
```sh
31+
helm install openfga -f values.yaml oci://ghcr.io/openfga/helm-charts
32+
```
33+
2534
## Customization
2635

2736
If you wish to customize the OpenFGA deployment you may supply paremeters such as the ones listed in the [values.yaml](/charts/openfga/values.yaml).
@@ -37,8 +46,8 @@ helm install openfga openfga/openfga \
3746

3847
```yaml
3948
commonLabels:
40-
app.example.com/system: permissions
41-
app.example.com/domain: example
49+
app.example.com/system: permissions
50+
app.example.com/domain: example
4251
```
4352
4453
### Installing with Postgres

0 commit comments

Comments
 (0)