diff --git a/src/openapi.yaml b/src/openapi.yaml index b4260836..99ec3b94 100644 --- a/src/openapi.yaml +++ b/src/openapi.yaml @@ -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 @@ -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: @@ -131,6 +132,7 @@ x-tagGroups: - Cloud Provider Credentials - Github App - Container Registries + - Helm Repositories - name: Project tags: - Project Main Calls @@ -216,6 +218,7 @@ x-tagGroups: - Helm Deployment History - Helm Environment Variable - Helm Secret + - Helm Repository - name: Account tags: - Account Info diff --git a/src/resources/AvailableHelmRepository.yaml b/src/resources/AvailableHelmRepository.yaml new file mode 100644 index 00000000..a75038c3 --- /dev/null +++ b/src/resources/AvailableHelmRepository.yaml @@ -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' diff --git a/src/schemas/AvailableHelmRepositoryResponse.yaml b/src/schemas/AvailableHelmRepositoryResponse.yaml new file mode 100644 index 00000000..9ab7b864 --- /dev/null +++ b/src/schemas/AvailableHelmRepositoryResponse.yaml @@ -0,0 +1,9 @@ +type: object +properties: + kind: + $ref: ./enums/HelmRepositoryKind.yaml + required_config: + type: object + additionalProperties: true + is_mandatory: + type: boolean diff --git a/src/schemas/AvailableHelmRepositoryResponseList.yaml b/src/schemas/AvailableHelmRepositoryResponseList.yaml new file mode 100644 index 00000000..99ac2273 --- /dev/null +++ b/src/schemas/AvailableHelmRepositoryResponseList.yaml @@ -0,0 +1,6 @@ +type: object +properties: + results: + type: array + items: + $ref: './AvailableHelmRepositoryResponse.yaml' diff --git a/src/schemas/_index.yaml b/src/schemas/_index.yaml index 146c8fe8..3b08b843 100644 --- a/src/schemas/_index.yaml +++ b/src/schemas/_index.yaml @@ -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: diff --git a/src/schemas/enums/HelmRepositoryKind.yaml b/src/schemas/enums/HelmRepositoryKind.yaml new file mode 100644 index 00000000..965c1c5b --- /dev/null +++ b/src/schemas/enums/HelmRepositoryKind.yaml @@ -0,0 +1,6 @@ +type: string +enum: + - HTTPS + - OCI +description: The type of your helm repository +