Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Publish versioned helm chart to GitHub OCI reposiotry #479

Merged
merged 54 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
6ca61bf
Added home, sources to chart.yaml
ekampf Apr 26, 2024
55a8b14
initial
ekampf Apr 26, 2024
a673ce4
Remove action dep
ekampf Apr 26, 2024
11781dc
more secure
ekampf Apr 26, 2024
00db650
try
ekampf Apr 26, 2024
2b284f9
dockerhub
ekampf Apr 26, 2024
e49472f
fix
ekampf Apr 26, 2024
3289b09
try
ekampf Apr 27, 2024
63c5570
try
ekampf Apr 27, 2024
7c51da5
debug
ekampf Apr 27, 2024
6b9ca24
try
ekampf Apr 27, 2024
493f189
try
ekampf Apr 27, 2024
0bf53a3
try
ekampf Apr 27, 2024
7d0eb11
try
ekampf Apr 27, 2024
9893fd9
try
ekampf Apr 27, 2024
33e4d23
undebug
ekampf Apr 27, 2024
3b8484a
release_prod_helm
ekampf Apr 27, 2024
d1f1a60
fix home
ekampf Apr 29, 2024
81053eb
fix type
ekampf May 17, 2024
db2449f
auto inc hart version
ekampf May 21, 2024
9b53abf
Try dockerhub again
ekampf Jul 10, 2024
77b8915
debug
ekampf Jul 10, 2024
422f10e
Revert "auto inc hart version"
ekampf Jul 10, 2024
a64ae46
Fix chart name to match OCI repo name (required by dockerhub)
ekampf Jul 10, 2024
f5e3169
Fix chart name to match OCI repo name (required by dockerhub)
ekampf Jul 10, 2024
84e56af
Merge branch 'main' into feature/oss-25-publish-versioned-chart
ekampf Dec 17, 2024
9dcb1bd
Merge branch 'main' into feature/oss-25-publish-versioned-chart
ekampf Dec 17, 2024
09e4ee1
poetry 1.8.5
ekampf Dec 17, 2024
d06b36f
specific version not necessary
ekampf Dec 17, 2024
311de17
Fix test to new chart name
ekampf Dec 17, 2024
532e4bc
rollback chart name change
ekampf Dec 18, 2024
3da7e58
remove dockerhub for now
ekampf Dec 18, 2024
39da214
fix chart name
ekampf Dec 18, 2024
7f95d93
nicer name
ekampf Dec 18, 2024
a5e4336
Merge branch 'main' into feature/oss-25-publish-versioned-chart
ekampf Dec 18, 2024
d3b60ba
Merge branch 'main' into feature/oss-25-publish-versioned-chart
ekampf Dec 18, 2024
26e2f19
Merge branch 'main' into feature/oss-25-publish-versioned-chart
ekampf Dec 18, 2024
ccdc72f
Added README instructions
ekampf Dec 18, 2024
6e417d3
Undo DEBUG
ekampf Dec 18, 2024
2454ce8
Merge branch 'main' into feature/oss-25-publish-versioned-chart
ekampf Dec 18, 2024
173c07f
helm should publish after docker
ekampf Dec 18, 2024
20f54fe
update registry
ekampf Dec 18, 2024
6c6e0b3
unecessary
ekampf Dec 18, 2024
59c25d2
README update
ekampf Dec 18, 2024
d25fb96
Revert "Undo DEBUG"
ekampf Dec 18, 2024
50bc081
Reapply "Undo DEBUG"
ekampf Dec 18, 2024
137d4e3
Match chart version to operator version
ekampf Dec 19, 2024
6565f0f
DEBUG
ekampf Dec 19, 2024
61f7175
Revert "DEBUG"
ekampf Dec 19, 2024
3896d52
app version is unecessary
ekampf Dec 19, 2024
adcbe64
comment
ekampf Dec 19, 2024
22165d4
DEBUG
ekampf Dec 19, 2024
8ad495d
Revert "DEBUG"
ekampf Dec 19, 2024
cc9485b
Merge branch 'main' into feature/oss-25-publish-versioned-chart
ekampf Dec 23, 2024
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
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,31 @@ jobs:
body: ${{ steps.changelog.outputs.changes }}
token: ${{ secrets.GITHUB_TOKEN }}

release_prod_helm:
runs-on: ubuntu-latest
name: Release PROD Helm Chart
needs: [create_release, release_prod]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: azure/[email protected]
- uses: chrisdickinson/setup-yq@latest

- name: Set env vars
run: |
echo "CHART_VERSION=$(yq r deploy/twingate-operator/Chart.yaml version)" >> $GITHUB_ENV
echo "APP_VERSION=$(echo ${GITHUB_REF_NAME:1})" >> $GITHUB_ENV

- name: Helm Publish (Github)
env:
REGISTRY: ghcr.io
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login -u twingate --password-stdin $REGISTRY
helm package deploy/twingate-operator --version $CHART_VERSION --app-version $APP_VERSION
helm push twingate-operator-$CHART_VERSION.tgz oci://$REGISTRY/twingate/helmcharts

release_prod:
name: Release PROD
runs-on: ubuntu-latest
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@ Trust Network.

## Installation

### Helm via OCI (recommended)

The operator's helm chart is published to the following OCI repository:
`oci://ghcr.io/twingate/helmcharts/twingate-operator`

Follow these steps to install the operator:

[default-values-yaml]: https://github.com/Twingate/kubernetes-operator/blob/main/deploy/twingate-operator/values.yaml

1. Create a custom `values.yaml` (You can start by copying the [default values .yaml file][default-values-yaml]):
1. Edit the settings in the file and specifically `twingateOperator`.
1. Deploy (add `-n [namespace]` if you want to install to a specific namespace):

```bash
helm upgrade twop oci://ghcr.io/twingate/helmcharts/twingate-operator --install --wait -f ./values.yaml
```

### Helm by closing the git repository

1. Clone this repository to your local machine.
1. Use the `helm` chart in `./deploy/twingate-operator`:

Expand Down
5 changes: 4 additions & 1 deletion deploy/twingate-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ apiVersion: v2
name: twingate-operator
description: A Helm chart for installing twingate-operator
type: application
version: 0.1.11
version: 0.1.12
home: https://twingate.com
sources:
- https://github.com/Twingate/kubernetes-operator
Loading