apiVersion: backstage.io/v1alpha1 kind: Component metadata: name: sonar-test-go2 description: SonarQube test 2 — Go runtime annotations: humanitec.com/orgId: skillful-wild-chicken-2617 humanitec.com/projectId: domain-demo-apps cjot.io/target-domain: "demo-apps" backstage.io/techdocs-ref: dir:. backstage.io/kubernetes-namespace: dev backstage.io/kubernetes-namespaces: "dev" backstage.io/kubernetes-label-selector: "app=sonar-test-go2" gitea.kyndemo.live/repo-slug: "validate/sonar-test-go2" sonarqube.org/project-key: sonar-test-go2 prometheus.io/scrape: "true" prometheus.io/port: "8080" prometheus.io/path: "/metrics" grafana/grafana-instance: default grafana/alert-label-selector: "app=sonar-test-go2" grafana/dashboard-selector: "uid == 'otel-app-observability-v2'" grafana.com/alert-label-selector: "app=sonar-test-go2" grafana.com/dashboard-url: "https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=sonar-test-go2" chaos-mesh/enabled: "true" k6/enabled: "true" k6/test-configmap: "k6-test-sonar-test-go2" k6/test-namespace: "dev" k6/target-service: "sonar-test-go2" k6/target-port: "8080" tags: - microservice - golden-path - go - stateless - opentelemetry - load-testing - k6 links: - url: https://console.humanitec.dev/orgs/skillful-wild-chicken-2617/projects/domain-demo-apps title: Humanitec Console icon: dashboard - url: https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=sonar-test-go2 title: Grafana Dashboard icon: dashboard - url: https://gitea.kyndemo.live/validate/sonar-test-go2 title: Source Repository icon: github spec: type: service owner: group:default/platform-engineering lifecycle: experimental providesApis: - sonar-test-go2-api --- apiVersion: backstage.io/v1alpha1 kind: API metadata: name: sonar-test-go2-api description: REST API for sonar-test-go2 annotations: backstage.io/techdocs-ref: dir:. spec: type: openapi lifecycle: experimental owner: group:default/platform-engineering definition: | openapi: "3.0.0" info: title: sonar-test-go2 version: "0.1.0" description: "SonarQube test 2 — Go runtime" servers: - url: https://sonar-test-go2.kyndemo.live paths: /api/items: get: summary: List all items responses: "200": description: OK post: 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 }"