cozystack/packages/apps
Myasnikov Daniil 3d7155c11f
fix(harbor): merge BucketInfo at values root, drop targetPath
The previous fix (a21c18f9) sourced BucketInfo via Flux valuesFrom with
`targetPath: bucket.bucketInfo`. Flux runs values with `targetPath`
through Helm's `strvals.ParseInto`, which splits the value on commas as
list separators. The COSI BucketInfo JSON is comma-rich, so values
resolution bailed:

  could not resolve Secret chart values reference
  'tenant-X/harbor-X-registry-bucket' with key 'BucketInfo':
  key "\"spec\":{\"bucketName\":\"bucket-1785...\""
  has no value (cannot end with ,)

Drop `targetPath`. With only `valuesKey: BucketInfo`, helm-controller
unmarshals the value as YAML and merges at the chart's values root, so
JSON commas stay nested instead of being split. The system chart's
bucket-secret.yaml now reads `.Values.spec.bucketName` /
`.Values.spec.secretS3.{accessKeyID,accessSecretKey,endpoint}`,
guarded by nested `with` blocks so the registry-s3 Secret renders only
when secretS3 has been populated.

Gating semantics from the previous fix are preserved: with the default
`optional: false`, helm-controller still refuses to compose values
until the COSI BucketAccess controller writes `BucketInfo` into the
Secret, and the value's content still drives the HR config-digest.

Verified via `helm template` against the system chart with three
scenarios: missing `spec` and `spec` without `secretS3` render
nothing; full BucketInfo renders all five S3 env keys correctly.

Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
Assisted-By: Claude <noreply@anthropic.com>
2026-04-30 09:34:22 +05:00
..
bucket fix(controller): address review findings for BucketClaim reconciler 2026-04-17 10:58:47 +03:00
clickhouse feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
foundationdb feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
harbor fix(harbor): merge BucketInfo at values root, drop targetPath 2026-04-30 09:34:22 +05:00
http-cache feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
kafka feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
kubernetes fix(kubernetes): close admin-kubeconfig race on tenant cluster bootstrap (#2413) 2026-04-27 15:31:52 +03:00
mariadb Prepare release v1.3.0 2026-04-22 07:28:09 +00:00
mongodb feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
nats feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
openbao feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
opensearch feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
postgres feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
qdrant feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
rabbitmq feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
redis feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
tcp-balancer feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
tenant [linstor-gui] Add Keycloak-protected Ingress for the UI (#2390) 2026-04-15 17:52:29 +05:00
vm-disk [vm-disk] Remove unused DataVolume lookup in dv.yaml 2026-04-14 19:59:19 +05:00
vm-instance [virtual-machine] Exclude external VM services from Cilium BPF LB 2026-04-08 15:20:58 +02:00
vpc [docs] Update cozyvalues-gen 2026-03-25 15:59:22 +05:00
vpn feat(platform): add resourcePreset labels 2026-04-17 15:04:25 +04:00
Makefile refactor: move scripts to hack directory 2026-01-15 16:06:56 +01:00
README.md [clickhouse] add clickhouse keeper 2025-08-07 14:07:05 +03:00

How to test packages local

cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd