Skip to content

Commit

Permalink
feat: remove the double git sub-object in the helm request (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
pggb25 authored Nov 21, 2023
1 parent 0ceee90 commit cbfa061
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
27 changes: 27 additions & 0 deletions src/schemas/HelmGitRepositoryRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
type: object
nullable: true
required:
- provider
- owner
- name
- url
properties:
url:
type: string
description: application git repository URL
example: https://github.com/Qovery/simple-node-app
branch:
type: string
description: |
Name of the branch to use. This is optional
If not specified, then the branch used is the `main` or `master` one
example: feat/text_xxx
root_path:
type: string
default: /
description: indicates the root path of the application.
git_token_id:
type: string
format: uuid
description: The git token id on Qovery side
nullable: true
2 changes: 2 additions & 0 deletions src/schemas/_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -758,3 +758,5 @@ CronJobResponse:
$ref: ./job/CronJobResponse.yaml
BaseJobResponse:
$ref: ./job/BaseJobResponse.yaml
HelmGitRepositoryRequest:
$ref: ./HelmGitRepositoryRequest.yaml
10 changes: 3 additions & 7 deletions src/schemas/helm/HelmRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@ allOf:
source:
type: object
properties:
git:
type: object
nullable: true
properties:
git_repository:
$ref: '../ApplicationGitRepositoryRequest.yaml'
repository:
git_repository:
$ref: '../HelmGitRepositoryRequest.yaml'
helm_repository:
type: object
nullable: true
properties:
Expand Down

0 comments on commit cbfa061

Please sign in to comment.