Skip to content

Commit

Permalink
[meta] update checked in schemas (#3744)
Browse files Browse the repository at this point in the history
Changes to omicron that raced with #3715.
  • Loading branch information
sunshowers authored Jul 22, 2023
1 parent ee95245 commit d3c7d8d
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 9 deletions.
15 changes: 13 additions & 2 deletions schema/all-zone-requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,22 @@
{
"type": "object",
"required": [
"external_dns_servers",
"external_ip",
"external_tls",
"internal_address",
"nic",
"type"
],
"properties": {
"external_dns_servers": {
"description": "External DNS servers Nexus can use to resolve external hosts.",
"type": "array",
"items": {
"type": "string",
"format": "ip"
}
},
"external_ip": {
"description": "The address at which the external nexus server is reachable.",
"type": "string",
Expand Down Expand Up @@ -448,7 +457,8 @@
"dns_servers": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"format": "ip"
}
},
"domain": {
Expand Down Expand Up @@ -502,7 +512,8 @@
"dns_servers": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"format": "ip"
}
},
"domain": {
Expand Down
9 changes: 9 additions & 0 deletions schema/deployment-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "object",
"required": [
"database",
"external_dns_servers",
"id",
"internal_dns",
"rack_id"
Expand All @@ -17,6 +18,14 @@
}
]
},
"external_dns_servers": {
"description": "External DNS servers Nexus can use to resolve external hosts.",
"type": "array",
"items": {
"type": "string",
"format": "ip"
}
},
"id": {
"description": "Uuid of the Nexus instance",
"type": "string",
Expand Down
10 changes: 8 additions & 2 deletions schema/persistent-sled-agent-request.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@
"id",
"ntp_servers",
"rack_id",
"subnet"
"subnet",
"use_trust_quorum"
],
"properties": {
"dns_servers": {
"description": "The external DNS servers to use",
"type": "array",
"items": {
"type": "string"
"type": "string",
"format": "ip"
}
},
"id": {
Expand All @@ -74,6 +76,10 @@
"$ref": "#/definitions/Ipv6Subnet"
}
]
},
"use_trust_quorum": {
"description": "Use trust quorum for key generation",
"type": "boolean"
}
}
}
Expand Down
15 changes: 13 additions & 2 deletions schema/rss-service-plan.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,22 @@
{
"type": "object",
"required": [
"external_dns_servers",
"external_ip",
"external_tls",
"internal_address",
"nic",
"type"
],
"properties": {
"external_dns_servers": {
"description": "External DNS servers Nexus can use to resolve external hosts.",
"type": "array",
"items": {
"type": "string",
"format": "ip"
}
},
"external_ip": {
"description": "The address at which the external nexus server is reachable.",
"type": "string",
Expand Down Expand Up @@ -548,7 +557,8 @@
"dns_servers": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"format": "ip"
}
},
"domain": {
Expand Down Expand Up @@ -602,7 +612,8 @@
"dns_servers": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"format": "ip"
}
},
"domain": {
Expand Down
91 changes: 88 additions & 3 deletions schema/rss-sled-plan.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,74 @@
}
},
"definitions": {
"Baseboard": {
"description": "Describes properties that should uniquely identify a Gimlet.",
"oneOf": [
{
"type": "object",
"required": [
"identifier",
"model",
"revision",
"type"
],
"properties": {
"identifier": {
"type": "string"
},
"model": {
"type": "string"
},
"revision": {
"type": "integer",
"format": "int64"
},
"type": {
"type": "string",
"enum": [
"gimlet"
]
}
}
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"unknown"
]
}
}
},
{
"type": "object",
"required": [
"identifier",
"model",
"type"
],
"properties": {
"identifier": {
"type": "string"
},
"model": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"pc"
]
}
}
}
]
},
"BootstrapAddressDiscovery": {
"oneOf": [
{
Expand Down Expand Up @@ -222,7 +290,8 @@
"description": "The external DNS server addresses.",
"type": "array",
"items": {
"type": "string"
"type": "string",
"format": "ip"
}
},
"external_certificates": {
Expand Down Expand Up @@ -280,6 +349,16 @@
"$ref": "#/definitions/RecoverySiloConfig"
}
]
},
"trust_quorum_peers": {
"description": "The set of peer_ids required to initialize trust quorum\n\nThe value is `None` if we are not using trust quorum",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Baseboard"
}
}
}
},
Expand Down Expand Up @@ -338,14 +417,16 @@
"id",
"ntp_servers",
"rack_id",
"subnet"
"subnet",
"use_trust_quorum"
],
"properties": {
"dns_servers": {
"description": "The external DNS servers to use",
"type": "array",
"items": {
"type": "string"
"type": "string",
"format": "ip"
}
},
"id": {
Expand All @@ -372,6 +453,10 @@
"$ref": "#/definitions/Ipv6Subnet"
}
]
},
"use_trust_quorum": {
"description": "Use trust quorum for key generation",
"type": "boolean"
}
}
},
Expand Down

0 comments on commit d3c7d8d

Please sign in to comment.