All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 1m43s
Change-Id: I3184ea3bc23ecc769c9de5fad0a0a0229e353629
126 lines
3.4 KiB
YAML
126 lines
3.4 KiB
YAML
apiVersion: backstage.io/v1alpha1
|
|
kind: Component
|
|
metadata:
|
|
name: test-alex-gitops-1
|
|
description: test-alex-gitops-1
|
|
annotations:
|
|
humanitec.dev/orgId: skillful-wild-chicken-2617
|
|
humanitec.dev/projectId: test-alex-gitops-1
|
|
backstage.io/techdocs-ref: dir:.
|
|
backstage.io/kubernetes-namespace: dev
|
|
backstage.io/kubernetes-namespaces: "dev,staging,prod"
|
|
backstage.io/kubernetes-label-selector: "app=test-alex-gitops-1"
|
|
gitea.kyndemo.live/repo-slug: "demo-platform/test-alex-gitops-1"
|
|
prometheus.io/scrape: "true"
|
|
prometheus.io/port: "8000"
|
|
prometheus.io/path: "/metrics"
|
|
grafana/grafana-instance: default
|
|
grafana/alert-label-selector: "app=test-alex-gitops-1"
|
|
grafana/dashboard-selector: "uid == 'app-test-alex-gitops-1'"
|
|
tags:
|
|
- microservice
|
|
- golden-path
|
|
- python-fastapi
|
|
- stateless
|
|
links:
|
|
- url: https://console.humanitec.dev/orgs/skillful-wild-chicken-2617/projects/test-alex-gitops-1
|
|
title: Humanitec Console
|
|
icon: dashboard
|
|
- url: https://gitea.kyndemo.live/demo-platform/test-alex-gitops-1
|
|
title: Source Repository
|
|
icon: github
|
|
spec:
|
|
type: service
|
|
owner: group:default/platform-engineering
|
|
system: system:default/platform-engineering
|
|
lifecycle: experimental
|
|
providesApis:
|
|
- test-alex-gitops-1-api
|
|
---
|
|
apiVersion: backstage.io/v1alpha1
|
|
kind: API
|
|
metadata:
|
|
name: test-alex-gitops-1-api
|
|
description: REST API for test-alex-gitops-1
|
|
annotations:
|
|
backstage.io/techdocs-ref: dir:.
|
|
spec:
|
|
type: openapi
|
|
lifecycle: experimental
|
|
owner: group:default/platform-engineering
|
|
system: system:default/platform-engineering
|
|
definition: |
|
|
openapi: "3.0.0"
|
|
info:
|
|
title: test-alex-gitops-1
|
|
version: "0.1.0"
|
|
description: "test-alex-gitops-1"
|
|
servers:
|
|
- url: https://test-alex-gitops-1.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 item 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 }"
|
|
/metrics:
|
|
get:
|
|
summary: Prometheus metrics
|
|
responses:
|
|
"200":
|
|
description: Prometheus text format
|
|
/docs:
|
|
get:
|
|
summary: Swagger UI
|
|
responses:
|
|
"200":
|
|
description: HTML
|