feat(common): add TTY, STDIN and IPFamily support (#1700)
* feat(common): add TTY and STDIN support Also fixes a mistake in the GUI for external interfaces * bump minor on common * add IP families as well
This commit is contained in:
@@ -27,6 +27,20 @@
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: tty
|
||||
label: "Enable TTY"
|
||||
description: "Determines whether containers in a pod runs with TTY enabled. By default pod has it disabled."
|
||||
group: "Workload Details"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: stdin
|
||||
label: "Enable STDIN"
|
||||
description: "Determines whether containers in a pod runs with stdin enabled. By default pod has it disabled."
|
||||
group: "Workload Details"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: termination
|
||||
group: "Container Configuration"
|
||||
label: "Termination settings"
|
||||
|
||||
@@ -1,78 +1,78 @@
|
||||
- variable: externalInterfaces
|
||||
description: "Add External Interfaces"
|
||||
label: "Add external Interfaces"
|
||||
group: "Networking"
|
||||
schema:
|
||||
type: list
|
||||
items:
|
||||
- variable: interfaceConfiguration
|
||||
description: "Interface Configuration"
|
||||
label: "Interface Configuration"
|
||||
- variable: externalInterfaces
|
||||
description: "Add External Interfaces"
|
||||
label: "Add external Interfaces"
|
||||
group: "Networking"
|
||||
schema:
|
||||
type: dict
|
||||
$ref:
|
||||
- "normalize/interfaceConfiguration"
|
||||
attrs:
|
||||
- variable: hostInterface
|
||||
description: "Please specify host interface"
|
||||
label: "Host Interface"
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
$ref:
|
||||
- "definitions/interface"
|
||||
- variable: ipam
|
||||
description: "Define how IP Address will be managed"
|
||||
label: "IP Address Management"
|
||||
type: list
|
||||
items:
|
||||
- variable: interfaceConfiguration
|
||||
description: "Interface Configuration"
|
||||
label: "Interface Configuration"
|
||||
schema:
|
||||
type: dict
|
||||
required: true
|
||||
$ref:
|
||||
- "normalize/interfaceConfiguration"
|
||||
attrs:
|
||||
- variable: type
|
||||
description: "Specify type for IPAM"
|
||||
label: "IPAM Type"
|
||||
- variable: hostInterface
|
||||
description: "Please specify host interface"
|
||||
label: "Host Interface"
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
enum:
|
||||
- value: "dhcp"
|
||||
description: "Use DHCP"
|
||||
- value: "static"
|
||||
description: "Use static IP"
|
||||
show_subquestions_if: "static"
|
||||
subquestions:
|
||||
- variable: staticIPConfigurations
|
||||
label: "Static IP Addresses"
|
||||
$ref:
|
||||
- "definitions/interface"
|
||||
- variable: ipam
|
||||
description: "Define how IP Address will be managed"
|
||||
label: "IP Address Management"
|
||||
schema:
|
||||
type: dict
|
||||
required: true
|
||||
attrs:
|
||||
- variable: type
|
||||
description: "Specify type for IPAM"
|
||||
label: "IPAM Type"
|
||||
schema:
|
||||
type: list
|
||||
items:
|
||||
- variable: staticIP
|
||||
label: "Static IP"
|
||||
type: string
|
||||
required: true
|
||||
enum:
|
||||
- value: "dhcp"
|
||||
description: "Use DHCP"
|
||||
- value: "static"
|
||||
description: "Use static IP"
|
||||
show_subquestions_if: "static"
|
||||
subquestions:
|
||||
- variable: staticIPConfigurations
|
||||
label: "Static IP Addresses"
|
||||
schema:
|
||||
type: ipaddr
|
||||
cidr: true
|
||||
- variable: staticRoutes
|
||||
label: "Static Routes"
|
||||
schema:
|
||||
type: list
|
||||
items:
|
||||
- variable: staticRouteConfiguration
|
||||
label: "Static Route Configuration"
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: destination
|
||||
label: "Destination"
|
||||
type: list
|
||||
items:
|
||||
- variable: staticIP
|
||||
label: "Static IP"
|
||||
schema:
|
||||
type: ipaddr
|
||||
cidr: true
|
||||
required: true
|
||||
- variable: gateway
|
||||
label: "Gateway"
|
||||
- variable: staticRoutes
|
||||
label: "Static Routes"
|
||||
schema:
|
||||
type: list
|
||||
items:
|
||||
- variable: staticRouteConfiguration
|
||||
label: "Static Route Configuration"
|
||||
schema:
|
||||
type: ipaddr
|
||||
cidr: false
|
||||
required: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: destination
|
||||
label: "Destination"
|
||||
schema:
|
||||
type: ipaddr
|
||||
cidr: true
|
||||
required: true
|
||||
- variable: gateway
|
||||
label: "Gateway"
|
||||
schema:
|
||||
type: ipaddr
|
||||
cidr: false
|
||||
required: true
|
||||
|
||||
- variable: dnsPolicy
|
||||
group: "Networking and Services"
|
||||
|
||||
@@ -38,6 +38,32 @@
|
||||
label: "External IP"
|
||||
schema:
|
||||
type: string
|
||||
- variable: ipFamilyPolicy
|
||||
label: "IP Family Policy"
|
||||
description: "(Advanced) Specify the ip policy"
|
||||
schema:
|
||||
show_if: [["type", "!=", "Simple"]]
|
||||
type: string
|
||||
default: "SingleStack"
|
||||
enum:
|
||||
- value: "SingleStack"
|
||||
description: "SingleStack"
|
||||
- value: "PreferDualStack"
|
||||
description: "PreferDualStack"
|
||||
- value: "RequireDualStack"
|
||||
description: "RequireDualStack"
|
||||
- variable: ipFamilies
|
||||
label: "(advanced) IP families"
|
||||
description: "(advanced) The ip families that should be used"
|
||||
schema:
|
||||
show_if: [["type", "!=", "Simple"]]
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: ipFamily
|
||||
label: "IP family"
|
||||
schema:
|
||||
type: string
|
||||
- variable: ports
|
||||
label: "Service's Port(s) Configuration"
|
||||
schema:
|
||||
|
||||
Reference in New Issue
Block a user