Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ required:
- enable
- container_id
- high_availability
- config
properties:
enable:
type: boolean
Expand All @@ -15,9 +14,13 @@ properties:
description: The ID of the gateway service container
high_availability:
type: boolean
description:
description: |
A boolean representing if this service container is set to high availability
mode or not.
auto_update:
type: boolean
description: A boolean where `true` represents the desire to automatically update the environment gateway service.
config:
anyOf:
- $ref: ./gateway/GatewayConfig.yml
- type: "null"
16 changes: 16 additions & 0 deletions components/schemas/environments/services/gateway/GatewayConfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
title: GatewayConfig
type: object
required:
- ipv4
- ipv6
- performance
properties:
performance:
type: boolean
description: Enable / disable performance mode. If enabled, gateway can use much more RAM and CPU.
ipv4:
type: boolean
description: Allow / disallow traffic to be routed via IPv4.
ipv6:
type: boolean
description: Allow / disallow traffic to be routed via IPv6.
4 changes: 4 additions & 0 deletions platform/paths/environments/services/gateway/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ post:
- boolean
- "null"
description: A boolean where `true` represents the desire to automatically update the environment gateway service.
config:
anyOf:
- $ref: ../../../../../components/schemas/environments/services/gateway/GatewayConfig.yml
- type: "null"

responses:
202:
Expand Down
5 changes: 5 additions & 0 deletions stackspec/schema/StackSpec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ properties:
- $ref: services/scheduler/StackSpecSchedulerService.yml
- $ref: StackVariable.yml
- type: "null"
gateway:
anyOf:
- $ref: services/gateway/StackSpecGatewayService.yml
- $ref: StackVariable.yml
- type: "null"
vpn:
anyOf:
- $ref: services/vpn/StackSpecVpnService.yml
Expand Down
25 changes: 25 additions & 0 deletions stackspec/schema/services/gateway/StackSpecGatewayConfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
title: StackSpecGatewayConfig
description: Gateway specific configuration options.
type:
- object
- "null"
required:
- ipv4
- ipv6
- performance
properties:
performance:
description: Enable / disable performance mode. If enabled, gateway can use much more RAM and CPU.
oneOf:
- type: boolean
- $ref: ../../StackVariable.yml
ipv4:
description: Allow / disallow traffic to be routed via IPv4.
oneOf:
- type: boolean
- $ref: ../../StackVariable.yml
ipv6:
description: Allow / disallow traffic to be routed via IPv6.
oneOf:
- type: boolean
- $ref: ../../StackVariable.yml
15 changes: 15 additions & 0 deletions stackspec/schema/services/gateway/StackSpecGatewayService.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: StackSpecGatewayService
description: Configuration options for the gateway service.
type: object
additionalProperties: false
properties:
service:
anyOf:
- $ref: ../StackService.yml
- $ref: ../../StackVariable.yml
- type: "null"
config:
anyOf:
- $ref: ./StackSpecGatewayConfig.yml
- $ref: ../../StackVariable.yml
- type: "null"
Loading