34 Commits

Author SHA1 Message Date
0c569ec528 fix: include all SQL files in dbinit configmap (not just 004_*.sql)
The glob was "sql/004_*.sql" which excluded 000_create_db.sql that
creates hades_user. Changed to "sql/*.sql" to include all migration
files in alphabetical order.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-28 14:34:06 +05:30
e880f4e9c4 fix: create hades_user in dbinit for shared MySQL compatibility
Shared MySQL (mysql-5-7) only has mysql_user. The hades app connects
as hades_user which doesn't exist. dbinit runs as root, so it can
create the user before migrations run.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-28 14:30:15 +05:30
fd7e97ce35 Fix access_permissions INSERT to use explicit column names
INSERT IGNORE without column names fails when extra columns
(alias, is_deleted) are added by hadesv2-auth schema migration.
Specifying columns makes the dump idempotent.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 23:22:14 +05:30
077835d68e fix: add DROP TRIGGER IF EXISTS before CREATE TRIGGER for idempotent re-runs
- MySQL 5.7 does not support CREATE TRIGGER IF NOT EXISTS
- Add DROP TRIGGER IF EXISTS before each CREATE TRIGGER in 004_hades.sql (69 triggers) and 002_dump.sql (90 triggers)
- DROP TRIGGER only removes trigger definition, does not affect table data
- Fixes ERROR 1359 (Trigger already exists) when dbinit Job runs multiple times

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 12:44:51 +05:30
a31616a6c9 fix: make dbinit SQL idempotent to prevent data wipe on re-runs
- Remove all DROP TABLE IF EXISTS statements from 004_hades.sql and 002_dump.sql
- Change CREATE TABLE to CREATE TABLE IF NOT EXISTS
- Change INSERT INTO to INSERT IGNORE INTO for seed data
- Prevents app_contexts table wipe when ArgoCD re-syncs trigger duplicate dbinit Job runs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 12:26:39 +05:30
Vaibhav Pathak
03f90680e6 init job fix -5 2026-02-24 12:13:32 +05:30
Vaibhav Pathak
3b1918978a init job fix -4 2026-02-24 12:06:42 +05:30
Vaibhav Pathak
73eb35db36 init job fix -3 2026-02-24 11:42:15 +05:30
Vaibhav Pathak
1a0d0682a5 init job fix -2 2026-02-24 11:22:05 +05:30
Vaibhav Pathak
eb187355ee Fix database name to match migration scripts
Changed mysqlDatabase from "hadesdb" to "hades_db" to match what the
migration scripts expect. The 004_hades.sql migration references
hades_db database.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-24 10:30:22 +05:30
Vaibhav Pathak
c12eb66886 Shared Mysql fix 3 2026-02-23 17:16:58 +05:30
Vaibhav Pathak
45df072ad6 Shared Mysql fix 2 2026-02-23 16:57:16 +05:30
Vaibhav Pathak
bb3d9464e2 mysql pvc added 2026-02-19 12:21:32 +05:30
Vaibhav Pathak
8784f7df6d mysql pvc added 2026-02-19 12:03:50 +05:30
Vaibhav Pathak
e7760fbc42 CR issue fix 2026-02-17 13:40:04 +05:30
Vaibhav Pathak
9a7e4bc8e9 label updated 2026-02-17 11:56:26 +05:30
Vaibhav Pathak
96efc1f62a nginx removed 2026-02-12 17:07:09 +05:30
Vaibhav Pathak
d9186f80cc argocd cofig change 2026-02-11 13:58:14 +05:30
Vaibhav Pathak
1ca65959af AES key added 2026-02-03 10:12:56 +05:30
Vaibhav Pathak
721ef7ee6b allhosts mount point changed 2026-01-22 11:49:34 +05:30
Vaibhav Pathak
d7e307241c config reloader lable added 2026-01-21 20:49:40 +05:30
Vaibhav Pathak
0c4eb056fd allhosts file removed 2026-01-21 19:49:10 +05:30
Vaibhav Pathak
a7cbc4e156 allhost issue fixed 2026-01-21 16:06:12 +05:30
Vaibhav Pathak
61bd33ae55 Allhost entry removed 2026-01-21 15:28:52 +05:30
Vaibhav Pathak
e98155714e Updated flow for allhost entry 2026-01-21 15:06:18 +05:30
Vaibhav Pathak
fd5284768d Merge branch 'main' of https://gitea.os-tf-qa.onlinesales.ai/gitea_admin/hades-chart 2026-01-21 15:04:55 +05:30
Vaibhav Pathak
fd05a38585 Updated flow for allhost entry 2026-01-21 15:03:15 +05:30
2c91b74f59 Update hades/values-local.yaml 2026-01-19 10:06:30 +00:00
Vaibhav Pathak
08f2ff746c lable issue fixed 2026-01-19 14:33:56 +05:30
Vaibhav Pathak
8381d4db83 Add ssl-redirect annotation to ingress defaults 2026-01-06 14:06:21 +05:30
Vaibhav Pathak
0a9cbaad46 Add ingress template to Hades Helm chart
Enable ingress resource creation via Helm values instead of
workflow-created manifests. Supports configurable host, className,
annotations, and TLS settings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 13:02:20 +05:30
Vaibhav Pathak
94ba582e96 helm chart added 2026-01-06 10:46:18 +05:30
Vaibhav Pathak
1d5133d913 helm chart added 2026-01-06 10:29:18 +05:30
Vaibhav Pathak
df359d052c Restructure repo: move chart to hades/ and include MySQL subchart
- Moved helm/hades/* to hades/ to match ArgoCD path: hades
- Included mysql-1.6.9.tgz subchart for ArgoCD dependency resolution
- Fixed sync wave ordering: dbinit wave 0, deployment wave 1
2026-01-05 17:59:13 +05:30