Skip to content

Commit

Permalink
feat: add ports to helm request and helm response
Browse files Browse the repository at this point in the history
  • Loading branch information
pggb25 committed Nov 16, 2023
1 parent 9fea0ce commit 34d72be
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 1 deletion.
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:

Check failure on line 457 in src/schemas/_index.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

oas3-schema

"type" property must be equal to one of the allowed values: "array", "boolean", "integer", "number", "object", "string". Did you mean "string"?.
$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

0 comments on commit 34d72be

Please sign in to comment.