Skip to content

Commit

Permalink
Merge pull request #522 from Qovery/helm
Browse files Browse the repository at this point in the history
feat(helm): Add request param to select commit listing
  • Loading branch information
erebe authored Nov 28, 2023
2 parents d018dbb + 8fe255c commit 6d0cea7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,8 @@ paths:
$ref: './resources/helm/EnvironmentHelmStatus.yaml'
/helm/{helmId}:
$ref: './resources/helm/Helm.yaml'
/helm/{helmId}/commit:
$ref: './resources/helm/HelmCommit.yaml'
/helm/{helmId}/advancedSettings:
$ref: './resources/helm/HelmAdvancedSettings.yaml'
/helm/{helmId}/deploy:
Expand Down
2 changes: 2 additions & 0 deletions src/parameters/_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,5 @@ helmId:
$ref: ./path/helmId.yaml
helmRepositoryId:
$ref: ./path/helmRepositoryId.yaml
helmOf:
$ref: ./query/helmOf.yaml
6 changes: 6 additions & 0 deletions src/parameters/query/helmOf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: of
in: query
description: Source of git commit. Can be 'chart' or 'values'
schema:
type: string
default: chart
22 changes: 22 additions & 0 deletions src/resources/helm/HelmCommit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
get:
summary: 'List last helm commits'
description: Returns list of the last 100 commits made on the repository linked to helm
operationId: listHelmCommit
parameters:
- $ref: '../../parameters/path/helmId.yaml'
- $ref: '../../parameters/query/helmOf.yaml'
tags:
- Helm Main Calls
responses:
'200':
description: 'List Helm commits'
content:
application/json:
schema:
$ref: '../../schemas/CommitResponseList.yaml'
'401':
$ref: '../../responses/NotAuthorized.yaml'
'403':
$ref: '../../responses/Forbidden.yaml'
'404':
$ref: '../../responses/NotFound.yaml'

0 comments on commit 6d0cea7

Please sign in to comment.