cozystack/packages/apps
IvanHunters 4ee0b27c7a fix(etcd): address critical issues in DataStore creation Job
Fix multiple critical issues found in code review:

1. **Namespace handling**: Added explicit namespace from ServiceAccount token
   to all kubectl commands. Prevents commands from using wrong default context.

2. **Complete Secret validation**: Now validates both tls.crt AND tls.key fields
   with proper checks:
   - Certificate: openssl x509 -checkend 0 (validates X.509 and checks expiry)
   - Private key: openssl rsa -check (validates RSA key format)
   Prevents DataStore creation with incomplete Secrets.

3. **Upgrade support**: Check if DataStore exists before creation. On upgrade,
   skip DataStore creation (it already exists). Use kubectl create instead of
   apply to prevent accidental spec modifications.

4. **Increased timeout**: Changed from 120s to 300s (5 minutes) and made
   configurable via CERT_WAIT_TIMEOUT env var. Accommodates slow cert-manager
   processing in production (high load, external CA, resource limits).

5. **Enhanced diagnostics**: Added comprehensive error diagnostics on timeout:
   - Certificate CR status
   - CertificateRequest status
   - Secret contents
   - cert-manager controller logs
   Significantly improves troubleshooting in production.

6. **Increased retries**: Changed from 3 to 10 retries with explanation.
   Provides better tolerance for transient failures (network issues, API
   unavailability, resource contention) while avoiding infinite loops.
   Total maximum: 10 retries × 30m timeout = 5 hours.

All critical issues from code review are now resolved.

Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
2026-04-24 23:36:08 +03: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(platform): migrate ACME HTTP-01 to ingressClassName API 2026-04-21 17:00:31 +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 Prepare release v1.3.0 2026-04-22 07:28:09 +00: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 fix(etcd): address critical issues in DataStore creation Job 2026-04-24 23:36:08 +03: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