-
-
Notifications
You must be signed in to change notification settings - Fork 808
v4 helm chart and docs #2195
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
Merged
v4 helm chart and docs #2195
Changes from 52 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
d58030e
v4 helm chart
nicktrn 8c9eb03
ignore packaged chart archives
nicktrn 8239580
chart publish prep
nicktrn fa6b179
add helm chart release workflow
nicktrn 24b22fc
enable draft gh release
nicktrn 21f0382
stateful services should be statefulsets
nicktrn f39d93d
expose internal otel config
nicktrn b2222fd
podAnnotations for all services
nicktrn eb2c8ae
postgresql.extraArgs
nicktrn a80415b
postgresql -> postgres
nicktrn db6ca9d
add clickhouse vars as extraEnv examples
nicktrn ac2998d
support external secrets
nicktrn 534804a
improve clickhouse config
nicktrn 3f4c4ce
disable internal otel config by default
nicktrn 4fa4cfb
allow nil internal config
nicktrn 2128799
fix gh release permission
nicktrn 8eacb1e
fix validation step for ci
nicktrn 65e2dcf
secrets.enabled
nicktrn c42da87
simplify secret keys
nicktrn 1f74f6b
bump chart version
nicktrn fb51b99
fix contents permission
nicktrn 854e3fc
remove redundant print steps
nicktrn 6d1eeea
remove helm release heading
nicktrn bff80c1
optimise clickhouse config
nicktrn c7fb6a3
support wait-for-it.sh
nicktrn d7687a9
fix ch overrides
nicktrn c443227
add low-resource ch overrides to compose setup
nicktrn ae45a16
supervisor bootstrap config
nicktrn c5cf485
disable otel trace logging
nicktrn 4327b14
retain shared volume
nicktrn c16d388
enable clickhouse for compose setup
nicktrn 17f6ba6
disable trace logging
nicktrn 062e4b5
bump chart
nicktrn bb0bd9d
add extraManifests
nicktrn 89d6e2a
telemetry config
nicktrn 840f325
add repo namespace config
nicktrn c2642ba
scope cluster role to namespace to support multiple installs
nicktrn 017ba3a
external s3 config
nicktrn a9138b6
values tweaks
nicktrn 6a1bab3
helm docs
nicktrn 9c01c20
Merge remote-tracking branch 'origin/main' into v4/helm
nicktrn 3139105
bump chart
nicktrn f883736
set contents read permission
nicktrn 4e6ea2e
add object store root credentials warning
nicktrn 4523ca4
run init containers as uid 1000
nicktrn dadf215
pass ch user creds with explicit flag
nicktrn 4beeafc
improve ingress anotation handling
nicktrn 591108d
remove duplicate colume claim block
nicktrn 04934aa
trim htpasswd auth
nicktrn 91798f0
lock curl images used for tests
nicktrn 50c4f59
add v4-beta package version warning
nicktrn a9c91c5
make schema and sslmode configurable
nicktrn a953d46
package tag info -> warning
nicktrn 078976c
improve secrets config example
nicktrn 9a4bfaf
update docs
nicktrn c67e80c
bump version
nicktrn 7d17ecb
bump webapp reqs to account for ch
nicktrn 03be569
make ch creds more easily configurable
nicktrn ac1e6c3
publish ch http port
nicktrn 4ec6a03
example point at latest beta chart
nicktrn b8ded45
small docs tweaks
nicktrn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
name: 🧭 Helm Chart Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'helm-v*' | ||
workflow_dispatch: | ||
inputs: | ||
chart_version: | ||
description: 'Chart version to release' | ||
required: true | ||
type: string | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
CHART_NAME: trigger | ||
|
||
jobs: | ||
lint-and-test: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: "3.18.3" | ||
|
||
- name: Lint Helm Chart | ||
run: | | ||
helm lint ./hosting/k8s/helm/ | ||
|
||
- name: Render templates | ||
run: | | ||
helm template test-release ./hosting/k8s/helm/ \ | ||
--values ./hosting/k8s/helm/values.yaml \ | ||
--output-dir ./helm-output | ||
|
||
- name: Validate manifests | ||
uses: docker://ghcr.io/yannh/kubeconform:v0.7.0 | ||
with: | ||
entrypoint: '/kubeconform' | ||
args: "-summary -output json ./helm-output" | ||
|
||
release: | ||
needs: lint-and-test | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # for gh-release | ||
packages: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: "3.18.3" | ||
|
||
- name: Log in to Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract version from tag or input | ||
id: version | ||
run: | | ||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | ||
VERSION="${{ github.event.inputs.chart_version }}" | ||
else | ||
VERSION="${{ github.ref_name }}" | ||
VERSION="${VERSION#helm-v}" | ||
fi | ||
echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
echo "Releasing version: $VERSION" | ||
|
||
- name: Check Chart.yaml version matches release version | ||
run: | | ||
VERSION="${{ steps.version.outputs.version }}" | ||
CHART_VERSION=$(grep '^version:' ./hosting/k8s/helm/Chart.yaml | awk '{print $2}') | ||
echo "Chart.yaml version: $CHART_VERSION" | ||
echo "Release version: $VERSION" | ||
if [ "$CHART_VERSION" != "$VERSION" ]; then | ||
echo "❌ Chart.yaml version does not match release version!" | ||
exit 1 | ||
fi | ||
echo "✅ Chart.yaml version matches release version." | ||
|
||
- name: Package Helm Chart | ||
run: | | ||
helm package ./hosting/k8s/helm/ --destination /tmp/ | ||
|
||
- name: Push Helm Chart to GHCR | ||
run: | | ||
VERSION="${{ steps.version.outputs.version }}" | ||
CHART_PACKAGE="/tmp/${{ env.CHART_NAME }}-${VERSION}.tgz" | ||
|
||
# Push to GHCR OCI registry | ||
helm push "$CHART_PACKAGE" "oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/charts" | ||
|
||
- name: Create GitHub Release | ||
id: release | ||
uses: softprops/action-gh-release@v1 | ||
if: github.event_name == 'push' | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
name: "Helm Chart ${{ steps.version.outputs.version }}" | ||
body: | | ||
### Installation | ||
```bash | ||
helm upgrade --install trigger \ | ||
oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/charts/${{ env.CHART_NAME }} \ | ||
--version ${{ steps.version.outputs.version }} | ||
``` | ||
|
||
### Changes | ||
See commit history for detailed changes in this release. | ||
files: | | ||
/tmp/${{ env.CHART_NAME }}-${{ steps.version.outputs.version }}.tgz | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
draft: true | ||
prerelease: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.