Files
buzz/deploy/charts/buzz/tests/quickstart_bundled_test.yaml
npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d 90ebf1ffee chore(chart): remove the eval-only Typesense subsystem from the Helm chart
Typesense is no longer a relay dependency (search is Postgres FTS), so the
chart no longer provisions, wires, validates, or secrets a Typesense backend:

- Deleted templates/quickstart-typesense.yaml (in-cluster eval Deployment).
- deployment.yaml: dropped TYPESENSE_URL / TYPESENSE_API_KEY env from the relay.
- secret-chart.yaml: dropped the Typesense URL/key composition block.
- _helpers.tpl: removed buzz.typesenseFullname / buzz.typesenseUrl defines.
- _validate.tpl: removed the 'Typesense source must exist' fail-guard.
- values.yaml / values.schema.json: removed the typesense.* value block and
  schema, and the TYPESENSE_* entries from the existingSecret key docs.
- NOTES.txt: dropped Typesense from the quickstart/production profile output.
- ci/, examples/, Chart.yaml: dropped Typesense from the quickstart render
  scenario, the GitOps samples, and the chart description.
- tests/: removed the three Typesense-specific helm-unittest cases and the
  now-meaningless typesense.* set/fixture boilerplate.

Verified: helm-unittest 25/25 green (was 28; -3 Typesense cases); helm lint
clean; ci/quickstart + ha + production-existing-secret render matrices all
template cleanly after helm dependency build.

Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
2026-06-27 14:42:30 -04:00

84 lines
2.7 KiB
YAML

suite: quickstart bundled services
# The dev quickstart must stand up MinIO in-cluster so the relay's
# startup S3 conformance probe passes with zero external dependencies.
templates:
- templates/quickstart-minio.yaml
- templates/quickstart-minio-init.yaml
- templates/deployment.yaml
- templates/secret-chart.yaml
- templates/service.yaml
tests:
- it: renders the in-cluster MinIO Deployment when minio.enabled
release:
name: rel
set:
relayUrl: wss://buzz.example.com
ownerPubkey: "0000000000000000000000000000000000000000000000000000000000000000"
postgresql.enabled: true
redis.enabled: true
minio.enabled: true
asserts:
- containsDocument:
kind: Deployment
apiVersion: apps/v1
name: rel-buzz-minio
template: templates/quickstart-minio.yaml
documentIndex: 0
- containsDocument:
kind: Job
apiVersion: batch/v1
name: rel-buzz-minio-init
template: templates/quickstart-minio-init.yaml
- it: relay S3 endpoint resolves to the bundled MinIO Service
release:
name: rel
set:
relayUrl: wss://buzz.example.com
ownerPubkey: "0000000000000000000000000000000000000000000000000000000000000000"
postgresql.enabled: true
redis.enabled: true
minio.enabled: true
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: BUZZ_S3_ENDPOINT
value: "http://rel-buzz-minio.NAMESPACE.svc.cluster.local:9000"
template: templates/deployment.yaml
- it: chart Secret composes the bundled MinIO credentials the relay reads
release:
name: rel
set:
relayUrl: wss://buzz.example.com
ownerPubkey: "0000000000000000000000000000000000000000000000000000000000000000"
postgresql.enabled: true
redis.enabled: true
minio.enabled: true
asserts:
# MinIO creds the relay reads must exist for the conformance probe.
- isNotNullOrEmpty:
path: data.BUZZ_S3_ACCESS_KEY
template: templates/secret-chart.yaml
documentIndex: 0
- isNotNullOrEmpty:
path: data.BUZZ_S3_SECRET_KEY
template: templates/secret-chart.yaml
documentIndex: 0
- it: relay Service selector is scoped to component=relay (must NOT match bundled MinIO pods)
release:
name: rel
set:
relayUrl: wss://buzz.example.com
ownerPubkey: "0000000000000000000000000000000000000000000000000000000000000000"
postgresql.enabled: true
redis.enabled: true
minio.enabled: true
asserts:
- equal:
path: spec.selector["app.kubernetes.io/component"]
value: relay
template: templates/service.yaml