-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0d01d3
commit 54a54ad
Showing
27 changed files
with
852 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: helmId | ||
in: path | ||
description: Helm ID | ||
required: true | ||
schema: | ||
type: string | ||
format: uuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
get: | ||
summary: 'List default helm advanced settings' | ||
operationId: getDefaultHelmAdvancedSettings | ||
tags: | ||
- Helm | ||
responses: | ||
'200': | ||
description: 'Default helm advanced settings' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/helm/HelmAdvancedSettings.yaml' | ||
'401': | ||
$ref: '../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../responses/Forbidden.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
get: | ||
summary: 'List helms' | ||
operationId: listHelms | ||
parameters: | ||
- $ref: '../../parameters/path/environmentId.yaml' | ||
- $ref: '../../parameters/query/toUpdate.yaml' | ||
tags: | ||
- Helms | ||
responses: | ||
'200': | ||
description: 'List helms' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmResponseList.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
post: | ||
summary: 'Create a helm' | ||
operationId: createHelm | ||
parameters: | ||
- $ref: '../../parameters/path/environmentId.yaml' | ||
tags: | ||
- Helms | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmRequest.yaml' | ||
responses: | ||
'201': | ||
description: 'Create helm' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmResponse.yaml' | ||
'400': | ||
$ref: '../../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
'409': | ||
description: Helm name within the environment is already taken |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
get: | ||
summary: 'List all environment helm statuses' | ||
description: Returns a list of helms with only their id and status. | ||
operationId: getEnvironmentHelmStatus | ||
parameters: | ||
- $ref: '../../parameters/path/environmentId.yaml' | ||
tags: | ||
- Helms | ||
responses: | ||
'200': | ||
description: 'Get status' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/ReferenceObjectStatusResponseList.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
get: | ||
summary: 'Get helm by ID' | ||
operationId: getHelm | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Main Calls | ||
responses: | ||
'200': | ||
description: 'Get helm by ID' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmResponse.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
put: | ||
summary: 'Edit helm' | ||
description: | | ||
- To edit the helm you must have the admin permission. | ||
operationId: editHelm | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Main Calls | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmRequest.yaml' | ||
responses: | ||
'200': | ||
description: 'Edit helm' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmResponse.yaml' | ||
'400': | ||
$ref: '../../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
'409': | ||
description: Helm name within the environment is already taken | ||
delete: | ||
summary: 'Delete helm' | ||
description: 'To delete the helm you must have the admin permission' | ||
operationId: deleteHelm | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Main Calls | ||
responses: | ||
'204': | ||
$ref: '../../responses/Deleted.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
get: | ||
summary: 'Get advanced settings' | ||
description: Get list and values of the advanced settings of the helm. | ||
operationId: getHelmAdvancedSettings | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Configuration | ||
responses: | ||
'200': | ||
description: 'Advanced settings list' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmAdvancedSettings.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
|
||
put: | ||
summary: 'Edit advanced settings' | ||
description: Edit advanced settings by returning table of advanced settings. | ||
operationId: editHelmAdvancedSettings | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Configuration | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmAdvancedSettings.yaml' | ||
responses: | ||
'201': | ||
description: 'Updated advanced settings' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmAdvancedSettings.yaml' | ||
'400': | ||
$ref: '../../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
post: | ||
summary: 'Deploy helm' | ||
description: You must provide a git commit id or an image tag depending on the source location of your code (git vs image repository). | ||
operationId: deployHelm | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
- name: forceEvent | ||
in: query | ||
required: false | ||
description: | | ||
When filled, it indicates the target event to be deployed. | ||
If the concerned helm hasn't the target event provided, the helm won't be deployed. | ||
schema: | ||
$ref: ../../schemas/enums/HelmForceEvent.yaml | ||
tags: | ||
- Helm Actions | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/HelmDeployRequest.yaml' | ||
responses: | ||
'202': | ||
description: 'Deploy helm' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/Status.yaml' | ||
'400': | ||
$ref: '../../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' | ||
'409': | ||
description: 'Operation is in progress' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
get: | ||
summary: 'List helm deployments' | ||
description: Returns the 20 last helm deployments | ||
operationId: listHelmDeploymentHistory | ||
parameters: | ||
- $ref: '../../parameters/path/helmId.yaml' | ||
tags: | ||
- Helm Deployment History | ||
responses: | ||
'200': | ||
description: 'List deployment history' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../schemas/helm/DeploymentHistoryHelmPaginatedResponseList.yaml' | ||
'401': | ||
$ref: '../../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../../responses/NotFound.yaml' |
Oops, something went wrong.