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: add ports to helm request and helm response #506

Merged
merged 1 commit into from
Nov 17, 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
8 changes: 8 additions & 0 deletions src/schemas/_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,20 @@ HelmDeploymentRestrictionResponse:
$ref: ./helm/HelmDeploymentRestrictionResponse.yaml
HelmDeploymentRestrictionResponseList:
$ref: ./helm/HelmDeploymentRestrictionResponseList.yaml
HelmPortRequest:
$ref: ./helm/HelmPortRequest.yaml
HelmPortResponse:
$ref: ./helm/HelmResponse.yaml
HelmPortResponseList:
$ref: ./helm/HelmResponseList.yaml
#HelmScheduleEvent:
# $ref: ./enums/HelmScheduleEvent.yaml
HelmForceEvent:
$ref: ./enums/HelmForceEvent.yaml
#DeploymentHistoryHelmResponse:
# $ref: ./helm/DeploymentHistoryHelmResponse.yaml
HelmPortProtocolEnum:
$ref: ./enums/HelmPortProtocol.yaml
Key:
$ref: ./Key.yaml
KubernetesEnum:
Expand Down
5 changes: 5 additions & 0 deletions src/schemas/enums/HelmPortProtocol.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: string
default: HTTP
enum:
- HTTP
- GRPC
26 changes: 26 additions & 0 deletions src/schemas/helm/HelmPortRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
type: object
properties:
ports:
type: array
items:
type: object
required:
- service_name
- internal_port
properties:
name:
type: string
internal_port:
type: integer
example: 8080
description: The listening port of your service.
external_port:
type: integer
example: 8080
description: The exposed port for your service. This is optional. If not set a default port will be used.
service_name:
type: string
namespace:
type: string
protocol:
$ref: '../enums/HelmPortProtocol.yaml'
26 changes: 26 additions & 0 deletions src/schemas/helm/HelmPortResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
type: object
required:
- id
- internal_port
- protocol
- service_name
properties:
id:
type: string
format: uuid
name:
type: string
internal_port:
type: integer
example: 8080
description: The listening port of your service.
external_port:
type: integer
example: 8080
description: The exposed port for your service. This is optional. If not set a default port will be used.
service_name:
type: string
namespace:
type: string
protocol:
$ref: '../enums/HelmPortProtocol.yaml'
3 changes: 3 additions & 0 deletions src/schemas/helm/HelmPortResponseList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: array
items:
$ref: './HelmPortResponse.yaml'
1 change: 1 addition & 0 deletions src/schemas/helm/HelmRequest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
allOf:
- $ref: './HelmPortRequest.yaml'
- type: object
required:
- name
Expand Down
4 changes: 3 additions & 1 deletion src/schemas/helm/HelmResponse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ allOf:
auto_deploy:
type: boolean
description: |
Specify if the service will be automatically updated after receiving a new image tag or a new commit according to the source type.
Specify if the service will be automatically updated after receiving a new image tag or a new commit according to the source type.
ports:
$ref: './HelmPortResponseList.yaml'
source:
nullable: false
oneOf:
Expand Down
Loading