Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): Add available helm repository endpoint #495

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ tags:
- name: Helm Logs
- name: Helm Main Calls
- name: Helm Metrics
- name: Helm Registry
- name: Helm Repository
- name: Helm Secret
- name: Helms
- name: Backups
Expand Down Expand Up @@ -112,6 +112,7 @@ tags:
- name: Projects
- name: Referral & Rewards
- name: Container Registries
- name: Helm Repositories
- name: User Sign Up
- name: Variable Main Calls
x-tagGroups:
Expand All @@ -131,6 +132,7 @@ x-tagGroups:
- Cloud Provider Credentials
- Github App
- Container Registries
- Helm Repositories
- name: Project
tags:
- Project Main Calls
Expand Down Expand Up @@ -216,6 +218,7 @@ x-tagGroups:
- Helm Deployment History
- Helm Environment Variable
- Helm Secret
- Helm Repository
- name: Account
tags:
- Account Info
Expand Down
19 changes: 19 additions & 0 deletions src/resources/AvailableHelmRepository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
get:
summary: 'List supported helm repository'
description: List supported helm repository by Qovery and get the mandatory authentification configuration.
operationId: listAvailableHelmRepository
tags:
- Helm Repositories
responses:
'200':
description: 'supported helm repositories'
content:
application/json:
schema:
$ref: '../schemas/AvailableHelmRepositoryResponseList.yaml'
'401':
$ref: '../responses/NotAuthorized.yaml'
'403':
$ref: '../responses/Forbidden.yaml'
'404':
$ref: '../responses/NotFound.yaml'
9 changes: 9 additions & 0 deletions src/schemas/AvailableHelmRepositoryResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: object
properties:
kind:
$ref: ./enums/HelmRepositoryKind.yaml
required_config:
type: object
additionalProperties: true
is_mandatory:
type: boolean
6 changes: 6 additions & 0 deletions src/schemas/AvailableHelmRepositoryResponseList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: object
properties:
results:
type: array
items:
$ref: './AvailableHelmRepositoryResponse.yaml'
6 changes: 6 additions & 0 deletions src/schemas/_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ AvailableContainerRegistryResponse:
$ref: ./AvailableContainerRegistryResponse.yaml
AvailableContainerRegistryResponseList:
$ref: ./AvailableContainerRegistryResponseList.yaml
AvailableHelmRepositoryResponse:
$ref: ./AvailableHelmRepositoryResponse.yaml
AvailableHelmRepositoryResponseList:
$ref: ./AvailableHelmRepositoryResponseList.yaml
AwsCredentialsRequest:
$ref: ./AwsCredentialsRequest.yaml
Backup:
Expand Down Expand Up @@ -158,6 +162,8 @@ ContainerDeployRequest:
$ref: ./ContainerDeployRequest.yaml
ContainerRegistryKindEnum:
$ref: ./enums/ContainerRegistryKind.yaml
HelmRepositoryKindEnum:
$ref: ./enums/HelmRepositoryKind.yaml
ContainerRegistryRequest:
$ref: ./ContainerRegistryRequest.yaml
ContainerRegistryResponse:
Expand Down
6 changes: 6 additions & 0 deletions src/schemas/enums/HelmRepositoryKind.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: string
erebe marked this conversation as resolved.
Show resolved Hide resolved
enum:
- HTTPS
- OCI
description: The type of your helm repository

Loading