Commit 61b61871 by chenxx

11

1 parent 76441cb3
...@@ -7,7 +7,6 @@ components: ...@@ -7,7 +7,6 @@ components:
type: object type: object
required: required:
- image - image
- ingress_switch
- name - name
- namespace - namespace
properties: properties:
...@@ -16,14 +15,12 @@ components: ...@@ -16,14 +15,12 @@ components:
type: string type: string
description: Docker image name description: Docker image name
x-walrus-ui: x-walrus-ui:
group: Basic
order: 1 order: 1
name: name:
title: Name title: Name
type: string type: string
description: Name of the deployment resource. Auto-generated if empty. description: Name of the deployment resource. Auto-generated if empty.
x-walrus-ui: x-walrus-ui:
group: Basic
order: 2 order: 2
port: port:
title: Port title: Port
...@@ -32,7 +29,6 @@ components: ...@@ -32,7 +29,6 @@ components:
default: "7777" default: "7777"
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Advanced
order: 3 order: 3
env: env:
title: Env title: Env
...@@ -44,7 +40,6 @@ components: ...@@ -44,7 +40,6 @@ components:
type: string type: string
x-walrus-ui: x-walrus-ui:
colSpan: 12 colSpan: 12
group: Advanced
order: 4 order: 4
replicas: replicas:
title: Replicas title: Replicas
...@@ -53,71 +48,38 @@ components: ...@@ -53,71 +48,38 @@ components:
default: 1 default: 1
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Advanced
order: 5 order: 5
request_cpu: request_cpu:
title: Request Cpu title: Request Cpu
type: string type: string
description: CPU request. e.g. 0.5, 1, 2 description: CPU request. e.g. 0.5, 1, 2
default: "0.1" default: "0.1"
enum:
- 0.1
- 0.2
- 0.3
- 0.5
- 1
- 2
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Resource
order: 6 order: 6
request_memory: request_memory:
title: Request Memory title: Request Memory
type: string type: string
description: Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi description: Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi
default: 128Mi default: 128Mi
enum:
- 128Mi
- 512Mi
- 1Gi
- 2Gi
- 3Gi
- 4Gi
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Resource
order: 7 order: 7
limit_cpu: limit_cpu:
title: Limit Cpu title: Limit Cpu
type: string type: string
description: CPU limit. e.g. 0.5, 1, 2 description: CPU limit. e.g. 0.5, 1, 2
default: "0.5" default: "0.5"
enum:
- 0.1
- 0.2
- 0.3
- 0.5
- 1
- 2
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Resource
order: 8 order: 8
limit_memory: limit_memory:
title: Limit Memory title: Limit Memory
type: string type: string
description: Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi description: Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi
default: 512Mi default: 512Mi
enum:
- 128Mi
- 512Mi
- 1Gi
- 2Gi
- 3Gi
- 4Gi
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Resource
order: 9 order: 9
probe_http_port: probe_http_port:
title: Probe Http Port title: Probe Http Port
...@@ -126,7 +88,6 @@ components: ...@@ -126,7 +88,6 @@ components:
default: "7777" default: "7777"
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Advanced
order: 10 order: 10
probe_http_path: probe_http_path:
title: Probe Http Path title: Probe Http Path
...@@ -135,7 +96,6 @@ components: ...@@ -135,7 +96,6 @@ components:
default: / default: /
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Advanced
order: 11 order: 11
restart_policy: restart_policy:
title: Restart Policy title: Restart Policy
...@@ -145,68 +105,51 @@ components: ...@@ -145,68 +105,51 @@ components:
default: Always default: Always
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Advanced
order: 12 order: 12
ingress_switch: ingress_switch:
title: Ingress Switch title: Ingress Switch
type: object type: object
description: choise ingress switch description: choise ingress switch
default:
domain_name: null
path: /
path_type: ImplementationSpecific
switch: "off"
nullable: true
properties: properties:
domain_name: domain_name:
nullable: true nullable: true
title: Domain Name title: Domain Name
type: string type: string
x-walrus-ui: x-walrus-ui:
colSpan: 12
order: 4 order: 4
showIf: switch=on
path: path:
default: /
description: 访问路径。例子:/,/aaa_project
nullable: true nullable: true
title: Path title: Path
type: string type: string
x-walrus-ui: x-walrus-ui:
colSpan: 12
group: Ingress
order: 3 order: 3
showIf: switch=on
path_type: path_type:
default: ImplementationSpecific
description: 一般选择 ImplementationSpecific
enum:
- ImplementationSpecific
- Exact
- Prefix
nullable: true nullable: true
title: Path Type title: Path Type
type: string type: string
x-walrus-ui: x-walrus-ui:
group: Ingress
order: 2 order: 2
showIf: switch=on
switch: switch:
default: "off"
enum:
- "off"
- "on"
nullable: true nullable: true
title: Switch title: Switch
type: string type: string
x-walrus-ui: x-walrus-ui:
group: Ingress
order: 1 order: 1
x-walrus-ui: x-walrus-ui:
colSpan: 12 colSpan: 12
group: Ingress
order: 13 order: 13
namespace: namespace:
title: Namespace title: Namespace
type: string type: string
description: Namespace to deploy. Auto-generated if empty. description: Namespace to deploy. Auto-generated if empty.
x-walrus-ui: x-walrus-ui:
group: Basic order: 14
order: 17
walrus_metadata_service_name: walrus_metadata_service_name:
title: Walrus Metadata Service Name title: Walrus Metadata Service Name
type: string type: string
...@@ -214,9 +157,7 @@ components: ...@@ -214,9 +157,7 @@ components:
default: "" default: ""
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Advanced order: 15
hidden: true
order: 18
walrus_metadata_namespace_name: walrus_metadata_namespace_name:
title: Walrus Metadata Namespace Name title: Walrus Metadata Namespace Name
type: string type: string
...@@ -224,12 +165,4 @@ components: ...@@ -224,12 +165,4 @@ components:
default: "" default: ""
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Advanced order: 16
hidden: true
order: 19
x-walrus-ui:
groupOrder:
- Basic
- Resource
- Advanced
- Ingress
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!