feat(deploy): Helm chart
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Canceled after 5m11s
ci / test (pull_request) Canceled after 5m11s
ci / build (pull_request) Canceled after 0s
ci / image (pull_request) Canceled after 0s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Canceled after 5m11s
ci / test (pull_request) Canceled after 5m11s
ci / build (pull_request) Canceled after 0s
ci / image (pull_request) Canceled after 0s
deploy/helm/uptimesebi runs the console and API (Deployment, Service, PodDisruptionBudget, Ingress) and optionally an in-cluster checker and status page servers. PostgreSQL and Redis are your own: by URL, from an existing secret, or Redis through Sentinel; Redis is not bundled. For trying it out, a single TimescaleDB can be bundled; its volume and password survive an uninstall and are picked up again by a reinstall. Migrations run as a pre-install/pre-upgrade hook with its own short-lived copy of the secrets; with the bundled database, which does not exist before the install, as an init container (runs serialize on the migration lock). Pods run as 65532 with a read-only root filesystem, no capabilities and RuntimeDefault seccomp; checkers get the safe ping sysctl. Missing settings fail rendering with a message. CI lints and renders the chart in several configurations; releases package it with the release version, sign it with the checksums and push it to the Gitea Helm registry. Closes #35 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
ac0d212a01
commit
a9de8b8d75
15 files changed
+1053
-2
No files matched your search
@@ -13,6 +13,7 @@ concurrency:
|
||||
env:
|
||||
GOLANGCI_LINT_VERSION: v2.15.0
|
||||
SQLC_VERSION: v1.31.1
|
||||
HELM_VERSION: v3.19.0
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
@@ -45,6 +46,19 @@ jobs:
|
||||
run: |
|
||||
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}
|
||||
"$(go env GOPATH)/bin/golangci-lint" run ./...
|
||||
- name: Helm chart
|
||||
run: |
|
||||
curl -fsSL "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" | tar -xz -C /usr/local/bin --strip-components=1 linux-amd64/helm
|
||||
chart=deploy/helm/uptimesebi
|
||||
base="--set publicURL=https://uptime.example.com --set redis.url=redis://redis:6379/0 --set secretKeys.value=k1:test"
|
||||
helm lint --strict "$chart" $base --set database.url=postgres://u:p@db/uptime
|
||||
# Every combination renders; missing settings fail with a message.
|
||||
helm template t "$chart" $base --set database.url=postgres://u:p@db/uptime >/dev/null
|
||||
helm template t "$chart" $base --set database.bundled.enabled=true --set ingress.enabled=true --set ingress.tls.enabled=true \
|
||||
--set checker.enabled=true --set checker.token=usa_x --set statuspage.enabled=true --set statuspage.token=usa_y \
|
||||
--set 'statuspage.hosts={status.example.com}' --set statuspage.ingress.enabled=true \
|
||||
--set redis.sentinel.master=m --set 'redis.sentinel.addrs={s1:26379}' --set redis.sentinel.password=p >/dev/null
|
||||
if helm template t "$chart" $base >/dev/null 2>&1; then echo "rendered without a database" >&2; exit 1; fi
|
||||
# The install script the API serves must stay POSIX sh for Alpine,
|
||||
# Debian and Raspberry Pi OS; the test renders and checks it.
|
||||
- name: shellcheck
|
||||
|
||||
Reference in new issue
Block a user