Skip to content

Commit

Permalink
Merge pull request #18 from intelops/health
Browse files Browse the repository at this point in the history
Health-probes
  • Loading branch information
RazenaSaleem authored Jun 14, 2024
2 parents 7af0e02 + e9649d1 commit d6badfc
Show file tree
Hide file tree
Showing 18 changed files with 633 additions and 23 deletions.
25 changes: 25 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,31 @@ info:
servers:
- url: /api
paths:
# Health
/healthz:
get:
summary: Health Check
responses:
'200':
description: Service is healthy
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: "ok"
'500':
description: Service is unhealthy
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: "unhealthy"
# TestSuites
/testsuites:
get:
Expand Down
2 changes: 1 addition & 1 deletion charts/qualitytrace/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ dependencies:
description: A Helm chart for QualityTrace
name: qualitytrace
type: application
version: 1.0.0
version: 1.0.1
16 changes: 8 additions & 8 deletions charts/qualitytrace/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ spec:
- name: otlp-http
containerPort: {{ .Values.server.otlpHttpPort }}
protocol: TCP
# livenessProbe:
# httpGet:
# path: {{ include "qualitytrace.pathPrefix" . }}
# port: http
# readinessProbe:
# httpGet:
# path: {{ include "qualitytrace.pathPrefix" . }}
# port: http
livenessProbe:
httpGet:
path: {{ include "qualitytrace.pathPrefix" . }}healthz
port: http
readinessProbe:
httpGet:
path: {{ include "qualitytrace.pathPrefix" . }}healthz
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
130 changes: 130 additions & 0 deletions cli/openapi/api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions cli/openapi/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions cli/openapi/model__healthz_get_200_response.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d6badfc

Please sign in to comment.