json-schema: add some examples and defaults
This commit is contained in:
parent
a1ebb447b0
commit
70a00bed1d
@ -11,13 +11,15 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"k3d.io/v1alpha2"
|
"k3d.io/v1alpha2"
|
||||||
]
|
],
|
||||||
|
"default": "k3d.io/v1alpha2"
|
||||||
},
|
},
|
||||||
"kind": {
|
"kind": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"Simple"
|
"Simple"
|
||||||
]
|
],
|
||||||
|
"default": "Simple"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"description": "Name of the cluster (must be a valid hostname and will be prefixed with 'k3d-'). Example: 'mycluster'.",
|
"description": "Name of the cluster (must be a valid hostname and will be prefixed with 'k3d-'). Example: 'mycluster'.",
|
||||||
@ -41,16 +43,26 @@
|
|||||||
},
|
},
|
||||||
"hostIP": {
|
"hostIP": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "ipv4"
|
"format": "ipv4",
|
||||||
|
"examples": [
|
||||||
|
"0.0.0.0",
|
||||||
|
"192.168.178.55"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"hostPort": {
|
"hostPort": {
|
||||||
"type":"string"
|
"type":"string",
|
||||||
|
"examples": [
|
||||||
|
"6443"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"image": {
|
"image": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"examples": [
|
||||||
|
"rancher/k3s:latest"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -114,7 +126,12 @@
|
|||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
"timeout": {
|
"timeout": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"examples": [
|
||||||
|
"60s",
|
||||||
|
"1m",
|
||||||
|
"1m30s"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"disableLoadbalancer": {
|
"disableLoadbalancer": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@ -209,7 +226,14 @@
|
|||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
},
|
||||||
|
"examples": [
|
||||||
|
"loadbalancer",
|
||||||
|
"server[*]",
|
||||||
|
"server[0]",
|
||||||
|
"agent[1]",
|
||||||
|
"all"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user