Features/sprint4 backend templates db injection#80
Merged
NgocAnhDo26 merged 49 commits intoMay 26, 2026
Conversation
…sers/hph/impl/template-dotnet
…ess and Create Spring Boot (Java) Backstage Template (#66) Co-authored-by: Do Tan Ngoc Anh <119093159+NgocAnhDo26@users.noreply.github.com>
…ADME and schema files
…for Kubernetes secret management
- Added `triggerType: db-migrate` to HeliosApp configuration for better migration handling. - Introduced a new Kubernetes namespace manifest for better resource management. - Updated PostgREST configuration to ensure log levels are consistently quoted. - Modified webhook creation to specify a dedicated listener for DB migration triggers. - Reorganized Tekton pipeline definitions to include a dedicated DB migration pipeline. - Updated Git clone task to transform localhost URLs for in-cluster access. - Enhanced database migration task to use Kubernetes secrets for database credentials. - Improved PostgREST reload task to utilize dynamic secret names for better flexibility. - Refined event listener to trigger DB migration pipelines based on specific directory changes. - Added new trigger template for DB migration to streamline pipeline execution on relevant events.
…ate-dotnet Setup .NET template
…to-deploy-fixed' into features/sprint4-backend-templates-db-injection
…and source content fetching
…ate code in operator causing syntax error during compile. Add missing java test image for the test run
…ent name value in postgres template
- fix(cue): truncate app name to 32 chars in migrate PipelineRun name to prevent exceeding Kubernetes 63-char resource name limit - fix(cue): replace hardcoded 'api-db-secret' with dynamic databaseSecretRef in db-migrate TriggerTemplate - fix(cue): correct migration-source path from 'db/migration' to 'db/migrations' - fix(operator): derive db secret name from app.Name if not explicitly set - fix(postgrest-template): use values.name for component name instead of 'api' - fix(postgrest-template): add missing Backstage CI/CD and Kubernetes annotations - fix(postgrest-template): mask JWT secret input with ui:widget password - fix(catalog): remove hardcoded gitea repo-url from dotnet and spring-boot templates
DatabaseSecretRef field in HeliosApp types and CRD schema
… in. change jwtSecret widget from password to secret
…-fix-templates Fixes and improvements for .NET, Spring Boot and Postgrest templates
…sers/ndvh/impl/hasura-graphql-template
…ra-graphql-template setup hasura-graphql-template
|
Caution Review failedFailed to post review comments 📝 WalkthroughWalkthroughThêm pipeline Tekton “db-migrate” và trigger, mở rộng Operator để sinh PGRST_DB_URI và inject DATABASE_URL/DB_NAME, cập nhật schema/CRD/inputs, nâng cấp portal backend/actions/config, bổ sung template PostgREST/Hasura/.NET/Spring Boot, và thêm các script thiết lập cùng Taskfile. ChangesDatabase migration flow and developer templates
Sequence Diagram(s)sequenceDiagram
rect rgba(66, 135, 245, 0.5)
participant Dev as Developer
participant Gitea as Gitea
participant EL as Tekton EventListener
end
rect rgba(40, 167, 69, 0.5)
participant Tkn as Tekton Pipelines
participant DB as Postgres
participant PGRST as PostgREST
end
Dev->>Gitea: Push commits (db/migrations/**)
Gitea->>EL: Webhook (push)
EL->>Tkn: Create PipelineRun (db-migrate)
Tkn->>Tkn: Task git-clone (rewrite URL if localhost)
Tkn->>DB: Task db-migrate (golang-migrate via PGRST_DB_URI)
Tkn->>DB: Task postgrest-reload (NOTIFY pgrst,'reload schema')
DB-->>PGRST: LISTEN pgrst (reload schema)
PGRST-->>Dev: Updated API schema
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
|
11 tasks
This was referenced Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Type of change
Checklist
Summary by CodeRabbit
Release Notes
New Features
Enhancements
Tests