Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b3770293a | |||
| 1a80f57330 | |||
| fbae47fb29 | |||
| 3b93de198d | |||
| e5ef7bbc27 | |||
| 194e432143 | |||
| 0fd74664ea | |||
| bd67d424f0 | |||
| e661b86f3a | |||
| af14760e8f | |||
| 1097d54a43 | |||
| ff491bcef7 | |||
| 9f9e41792c | |||
| 05308edc60 | |||
| caaecfe856 | |||
| 8d8fb6e13c |
@@ -1,4 +1,4 @@
|
|||||||
# sonar-test-nest4 v2
|
# sonar-test-nest4 test for doc agent catching sha change 21.5.2026 test 001
|
||||||
|
|
||||||
> **System-of-Record branch** — application code lives on `dev`.
|
> **System-of-Record branch** — application code lives on `dev`.
|
||||||
|
|
||||||
@@ -21,3 +21,5 @@ is migrated to a different runtime.
|
|||||||
| `runtime` | `typescript-nestjs` |
|
| `runtime` | `typescript-nestjs` |
|
||||||
| `health_path` | `/health` |
|
| `health_path` | `/health` |
|
||||||
| `container_port` | `3000` |
|
| `container_port` | `3000` |
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,59 +6,53 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
humanitec.com/orgId: skillful-wild-chicken-2617
|
humanitec.com/orgId: skillful-wild-chicken-2617
|
||||||
humanitec.com/projectId: domain-demo-apps
|
humanitec.com/projectId: domain-demo-apps
|
||||||
cjot.io/target-domain: "demo-apps"
|
cjot.io/target-domain: demo-apps
|
||||||
backstage.io/techdocs-ref: dir:.
|
backstage.io/techdocs-ref: dir:.
|
||||||
backstage.io/kubernetes-namespace: dev
|
backstage.io/kubernetes-namespace: dev
|
||||||
backstage.io/kubernetes-namespaces: "dev"
|
backstage.io/kubernetes-namespaces: dev
|
||||||
backstage.io/kubernetes-label-selector: "app=sonar-test-nest4"
|
backstage.io/kubernetes-label-selector: app=sonar-test-nest4
|
||||||
gitea.kyndemo.live/repo-slug: "validate/sonar-test-nest4"
|
gitea.kyndemo.live/repo-slug: validate/sonar-test-nest4
|
||||||
sonarqube.org/project-key: sonar-test-nest4
|
sonarqube.org/project-key: sonar-test-nest4
|
||||||
prometheus.io/scrape: "true"
|
prometheus.io/scrape: 'true'
|
||||||
prometheus.io/port: "3000"
|
prometheus.io/port: '3000'
|
||||||
prometheus.io/path: "/metrics"
|
prometheus.io/path: /metrics
|
||||||
grafana/grafana-instance: default
|
grafana/grafana-instance: default
|
||||||
grafana/alert-label-selector: "app=sonar-test-nest4"
|
grafana/alert-label-selector: app=sonar-test-nest4
|
||||||
|
grafana/dashboard-selector: uid == 'otel-app-observability-v2'
|
||||||
grafana/dashboard-selector: "uid == 'otel-app-observability-v2'"
|
grafana.com/alert-label-selector: app=sonar-test-nest4
|
||||||
grafana.com/alert-label-selector: "app=sonar-test-nest4"
|
grafana.com/dashboard-url:
|
||||||
grafana.com/dashboard-url: "https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=sonar-test-nest4"
|
https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=sonar-test-nest4
|
||||||
chaos-mesh/enabled: "true"
|
chaos-mesh/enabled: 'true'
|
||||||
|
k6/enabled: 'true'
|
||||||
|
k6/test-configmap: k6-test-sonar-test-nest4
|
||||||
k6/enabled: "true"
|
k6/test-namespace: dev
|
||||||
k6/test-configmap: "k6-test-sonar-test-nest4"
|
k6/target-service: sonar-test-nest4
|
||||||
k6/test-namespace: "dev"
|
k6/target-port: '3000'
|
||||||
k6/target-service: "sonar-test-nest4"
|
docs.kyndemo.live/readme:
|
||||||
k6/target-port: "3000"
|
catalog/component/default/sonar-test-nest4/README.md
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- microservice
|
- microservice
|
||||||
- golden-path
|
- golden-path
|
||||||
- typescript-nestjs
|
- typescript-nestjs
|
||||||
- stateless
|
- stateless
|
||||||
|
|
||||||
- opentelemetry
|
- opentelemetry
|
||||||
|
|
||||||
|
|
||||||
- load-testing
|
- load-testing
|
||||||
- k6
|
- k6
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- url: https://console.humanitec.dev/orgs/skillful-wild-chicken-2617/projects/domain-demo-apps
|
- url:
|
||||||
|
https://console.humanitec.dev/orgs/skillful-wild-chicken-2617/projects/domain-demo-apps
|
||||||
title: Humanitec Console
|
title: Humanitec Console
|
||||||
icon: dashboard
|
icon: dashboard
|
||||||
|
- url:
|
||||||
- url: https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=sonar-test-nest4
|
https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=sonar-test-nest4
|
||||||
title: Grafana Dashboard
|
title: Grafana Dashboard
|
||||||
icon: dashboard
|
icon: dashboard
|
||||||
|
|
||||||
- url: https://gitea.kyndemo.live/validate/sonar-test-nest4
|
- url: https://gitea.kyndemo.live/validate/sonar-test-nest4
|
||||||
title: Source Repository
|
title: Source Repository
|
||||||
icon: github
|
icon: github
|
||||||
spec:
|
spec:
|
||||||
type: service
|
type: service
|
||||||
owner: group:default/platform-engineering
|
owner: group:default/platform-engineering
|
||||||
|
|
||||||
lifecycle: experimental
|
lifecycle: experimental
|
||||||
providesApis:
|
providesApis:
|
||||||
- sonar-test-nest4-api
|
- sonar-test-nest4-api
|
||||||
@@ -74,66 +68,20 @@ spec:
|
|||||||
type: openapi
|
type: openapi
|
||||||
lifecycle: experimental
|
lifecycle: experimental
|
||||||
owner: group:default/platform-engineering
|
owner: group:default/platform-engineering
|
||||||
|
definition: "openapi: \"3.0.0\"\ninfo:\n title: sonar-test-nest4\n version: \"\
|
||||||
definition: |
|
0.1.0\"\n description: \"sonar-test-nest4\"\nservers:\n - url: https://sonar-test-nest4.kyndemo.live\n\
|
||||||
openapi: "3.0.0"
|
paths:\n /api/items:\n get:\n summary: List all items\n responses:\n\
|
||||||
info:
|
\ \"200\":\n description: OK\n post:\n summary: Create
|
||||||
title: sonar-test-nest4
|
item\n responses:\n \"201\":\n description: Created\n /api/items/{id}:\n\
|
||||||
version: "0.1.0"
|
\ get:\n summary: Get by ID\n parameters:\n - name: id\n \
|
||||||
description: "sonar-test-nest4"
|
\ in: path\n required: true\n schema:\n type:
|
||||||
servers:
|
integer\n responses:\n \"200\":\n description: OK\n \
|
||||||
- url: https://sonar-test-nest4.kyndemo.live
|
\ \"404\":\n description: Not found\n put:\n summary: Update
|
||||||
paths:
|
item\n parameters:\n - name: id\n in: path\n required:
|
||||||
/api/items:
|
true\n schema:\n type: integer\n responses:\n \
|
||||||
get:
|
\ \"200\":\n description: OK\n delete:\n summary: Update item\n\
|
||||||
summary: List all items
|
\ parameters:\n - name: id\n in: path\n required:
|
||||||
responses:
|
true\n schema:\n type: integer\n responses:\n \
|
||||||
"200":
|
\ \"200\":\n description: Deleted\n /health:\n get:\n summary:
|
||||||
description: OK
|
Health check\n responses:\n \"200\":\n description: \"{ status:
|
||||||
post:
|
UP }\"\n"
|
||||||
summary: Create item
|
|
||||||
responses:
|
|
||||||
"201":
|
|
||||||
description: Created
|
|
||||||
/api/items/{id}:
|
|
||||||
get:
|
|
||||||
summary: Get by ID
|
|
||||||
parameters:
|
|
||||||
- name: id
|
|
||||||
in: path
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: integer
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: OK
|
|
||||||
"404":
|
|
||||||
description: Not found
|
|
||||||
put:
|
|
||||||
summary: Update item
|
|
||||||
parameters:
|
|
||||||
- name: id
|
|
||||||
in: path
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: integer
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: OK
|
|
||||||
delete:
|
|
||||||
summary: Update item
|
|
||||||
parameters:
|
|
||||||
- name: id
|
|
||||||
in: path
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: integer
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: Deleted
|
|
||||||
/health:
|
|
||||||
get:
|
|
||||||
summary: Health check
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: "{ status: UP }"
|
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ Push to dev/staging/prod
|
|||||||
→ deploy-humanitec.yml (hctl score deploy)
|
→ deploy-humanitec.yml (hctl score deploy)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Deployment alternative method
|
||||||
|
|
||||||
|
|
||||||
## Branch model
|
## Branch model
|
||||||
|
|
||||||
| Branch | Purpose |
|
| Branch | Purpose |
|
||||||
|
|||||||
Reference in New Issue
Block a user