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 @@ -6,11 +6,6 @@ properties:
anyOf:
- $ref: ../../../Duration.yml
- type: "null"
dual_stack_legacy:
description: When enabled, discovery will return both IPv6 and IPv4 when in legacy mode. Otherwise, only IPv4 will be returned.
anyOf:
- type: boolean
- type: "null"
hosts:
description: A mapping of hostnames to IP addresses for custom internal resolutions. Acts as a custom /etc/resolv.conf file that works environment wide.
oneOf:
Expand Down Expand Up @@ -40,3 +35,18 @@ properties:
items:
type: string
- type: "null"
dual_stack_legacy:
description: When enabled, discovery will return both IPv6 and IPv4 when in legacy mode. Otherwise, only IPv4 will be returned.
anyOf:
- type: boolean
- type: "null"
external_resolution:
anyOf:
- type: object
required:
- preference
properties:
preference:
type: string
enum: [default, ipv4, ipv6]
- type: "null"
23 changes: 17 additions & 6 deletions stackspec/schema/services/discovery/StackSpecDiscoveryConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ properties:
- $ref: ../../../../components/schemas/Duration.yml
- $ref: ../../StackVariable.yml
- type: "null"
dual_stack_legacy:
description: When enabled, discovery will return both IPv6 and IPv4 when in legacy mode. Otherwise, only IPv4 will be returned.
anyOf:
- type: boolean
- $ref: ../../StackVariable.yml
- type: "null"
hosts:
description: A custom mapping of hosts - for forced resolution of specific IPs for a domain.
oneOf:
Expand Down Expand Up @@ -46,3 +40,20 @@ properties:
type: string
- $ref: ../../StackVariable.yml
- type: "null"
dual_stack_legacy:
description: When enabled, discovery will return both IPv6 and IPv4 when in legacy mode. Otherwise, only IPv4 will be returned.
anyOf:
- type: boolean
- $ref: ../../StackVariable.yml
- type: "null"
external_resolution:
anyOf:
- type: object
required:
- preference
properties:
preference:
type: string
enum: [default, ipv4, ipv6]
- $ref: ../../StackVariable.yml
- type: "null"