-
Notifications
You must be signed in to change notification settings - Fork 0
Setup .NET template #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
NgocAnhDo26
merged 10 commits into
features/sprint4-backend-templates-db-injection
from
users/hph/impl/template-dotnet
Apr 18, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f69be3a
feat(portal): add .NET 10 Web API backstage template with postgres wi…
PhuocHoan 4ea9c93
chore: update prereq scripts and operator test expectations
PhuocHoan 95e1f1a
portal: refine template descriptions and local CORS origins
PhuocHoan e7946e9
Upgrade dotnet template and postgres defaults to latest
PhuocHoan cf86730
Merge branch 'features/sprint4-backend-templates-db-injection' into u…
PhuocHoan 18cc2e1
Merge base branch and resolve template/setup conflicts
PhuocHoan 2edfa6a
Update dotnet template to SDK 10.0.202 and add PR68 evidence guide
PhuocHoan 1a68e88
Remove PR68 evidence guide from tracked files
PhuocHoan 2f1779e
fix tekton and portal local dev integration
PhuocHoan 8663db2
fix portal prettier formatting
PhuocHoan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,3 +14,6 @@ apps/portal/packages/backend/*.sqlite | |
| .claude/ | ||
|
|
||
| .idea | ||
|
|
||
| # mise | ||
| mise.toml | ||
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # .NET Web API Backstage Template | ||
|
|
||
| This template scaffolds an ASP.NET Core Web API that is ready for Helios GitOps deployment. | ||
|
|
||
| Generated source repository includes: | ||
|
|
||
| - ASP.NET Core Web API project targeting .NET 10 (runtime 10.0.5, SDK 10.0.202) | ||
| - Multi-stage Dockerfile | ||
| - docker-compose setup for local development with PostgreSQL 18.3 | ||
| - Environment-driven database configuration using `DB_HOST`, `DB_USER`, `DB_PASSWORD`, and `DB_NAME` | ||
|
|
||
| Generated GitOps repository includes: | ||
|
|
||
| - HeliosApp manifest with web-service + database trait |
42 changes: 42 additions & 0 deletions
42
apps/portal/examples/dotnet-template/content/gitops/helios-app.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| apiVersion: app.helios.io/v1alpha1 | ||
| kind: HeliosApp | ||
| metadata: | ||
| name: ${{ values.name }} | ||
| namespace: default | ||
| spec: | ||
|
|
||
| description: "Managed by Helios Operator" | ||
| owner: ${{ values.owner }} | ||
|
|
||
| imageRepo: ${{ values.dockerOrg }}/${{ values.repoName }} | ||
| gitRepo: "${{ values.sourceRepo }}" | ||
| gitopsRepo: ${{ values.gitopsRepo }} | ||
| gitopsPath: "apps/${{ values.name }}" | ||
| port: ${{ values.port }} | ||
| replicas: 1 | ||
| testCommand: ${{ values.testCommand }} | ||
| testImage: ${{ values.testImage | dump }} | ||
|
|
||
| webhookSecret: "git-credentials-${{ values.name }}" | ||
| gitopsSecretRef: "git-credentials-${{ values.name }}" | ||
|
|
||
| components: | ||
| - name: ${{ values.name }}-backend | ||
| type: web-service | ||
| properties: | ||
| image: ${{ values.dockerOrg }}/${{ values.repoName }}:main | ||
| port: ${{ values.port }} | ||
| replicas: 1 | ||
| env: | ||
| - name: ASPNETCORE_ENVIRONMENT | ||
| value: "Production" | ||
| traits: | ||
| - type: service | ||
| properties: | ||
| port: ${{ values.port }} | ||
| targetPort: ${{ values.port }} | ||
| - type: database | ||
| properties: | ||
| dbType: ${{ values.dbType | dump }} | ||
| dbName: ${{ values.dbName | dump }} | ||
| version: ${{ values.dbVersion | dump }} |
6 changes: 6 additions & 0 deletions
6
apps/portal/examples/dotnet-template/content/source/.dockerignore
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| bin/ | ||
| obj/ | ||
| .git/ | ||
| .vscode/ | ||
| *.user | ||
| *.suo |
11 changes: 11 additions & 0 deletions
11
apps/portal/examples/dotnet-template/content/source/.env.example
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Database credentials (injected by Helios Operator) | ||
| DB_HOST=localhost | ||
| DB_USER=postgres | ||
| DB_PASSWORD=postgres | ||
| DB_NAME=${{ values.name }}-db | ||
|
|
||
| # Legacy compatibility fallback used by some templates/operators | ||
| DB_PASS=postgres | ||
|
|
||
| # Application | ||
| PORT=${{ values.port }} |
5 changes: 5 additions & 0 deletions
5
apps/portal/examples/dotnet-template/content/source/.gitignore
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| bin/ | ||
| obj/ | ||
| .vs/ | ||
| *.user | ||
| *.suo |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReconcileInstancesuses the database traitversion("16" in this test app) to set the StatefulSet image, but this test expectspostgres:18. Align the expected image (and theexistingStsseed image) with the trait version, or update the trait version if the default is being bumped.