initial commit
All checks were successful
Build and Push to ACR / Platform guard (push) Successful in 5s
Build and Push to ACR / Build and Push (push) Has been skipped

Change-Id: Ied1b5f2137f2b5f803d5411235607bd27c5e57ba
This commit is contained in:
Scaffolder
2026-03-24 10:43:21 +00:00
commit e868792eda
19 changed files with 1205 additions and 0 deletions

113
catalog-info.yaml Normal file
View File

@@ -0,0 +1,113 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: tmpl-test-go
description: Test scaffold for go runtime
annotations:
humanitec.dev/orgId: skillful-wild-chicken-2617
humanitec.dev/projectId: tmpl-test-go
backstage.io/techdocs-ref: dir:.
backstage.io/kubernetes-namespace: dev
backstage.io/kubernetes-namespaces: "dev"
backstage.io/kubernetes-label-selector: "app=tmpl-test-go"
gitea.kyndemo.live/repo-slug: "validate/tmpl-test-go"
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/path: "/metrics"
grafana/grafana-instance: default
grafana/alert-label-selector: "app=tmpl-test-go"
grafana/dashboard-selector: "uid == 'app-tmpl-test-go'"
tags:
- microservice
- golden-path
- go
- stateless
links:
- url: https://console.humanitec.dev/orgs/skillful-wild-chicken-2617/projects/tmpl-test-go
title: Humanitec Console
icon: dashboard
- url: https://gitea.kyndemo.live/validate/tmpl-test-go
title: Source Repository
icon: github
spec:
type: service
owner: platform-engineering
lifecycle: experimental
providesApis:
- tmpl-test-go-api
---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: tmpl-test-go-api
description: REST API for tmpl-test-go
annotations:
backstage.io/techdocs-ref: dir:.
spec:
type: openapi
lifecycle: experimental
owner: platform-engineering
definition: |
openapi: "3.0.0"
info:
title: tmpl-test-go
version: "0.1.0"
description: "Test scaffold for go runtime"
servers:
- url: https://tmpl-test-go.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: Delete 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 }"