Skip to content

Commit c0cab2f

Browse files
committed
allow self-hosted resource_class
1 parent 9ff532e commit c0cab2f

File tree

1 file changed

+30
-21
lines changed

1 file changed

+30
-21
lines changed

schema.json

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,27 +1578,36 @@
15781578
"additionalProperties": false
15791579
},
15801580
"resource_class": {
1581-
"type": "string",
1582-
"default": "medium",
1583-
"enum": [
1584-
"small",
1585-
"medium",
1586-
"medium+",
1587-
"large",
1588-
"xlarge",
1589-
"2xlarge",
1590-
"2xlarge+",
1591-
"arm.medium",
1592-
"arm.large",
1593-
"arm.xlarge",
1594-
"arm.2xlarge",
1595-
"gpu.nvidia.small",
1596-
"gpu.nvidia.medium",
1597-
"windows.gpu.nvidia.medium",
1598-
"macos.m1.medium.gen1",
1599-
"macos.m1.large.gen1"
1581+
"oneOf": [
1582+
{
1583+
"type": "string",
1584+
"default": "medium",
1585+
"enum": [
1586+
"small",
1587+
"medium",
1588+
"medium+",
1589+
"large",
1590+
"xlarge",
1591+
"2xlarge",
1592+
"2xlarge+",
1593+
"arm.medium",
1594+
"arm.large",
1595+
"arm.xlarge",
1596+
"arm.2xlarge",
1597+
"gpu.nvidia.small",
1598+
"gpu.nvidia.medium",
1599+
"windows.gpu.nvidia.medium",
1600+
"macos.m1.medium.gen1",
1601+
"macos.m1.large.gen1"
1602+
]
1603+
},
1604+
{
1605+
"title": "Self-hosted runner",
1606+
"type": "string",
1607+
"pattern": "^[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+$"
1608+
}
16001609
],
1601-
"markdownDescription": "Amount of CPU and RAM allocated to each container in a job. Note: A performance plan is required to access this feature."
1610+
"markdownDescription": "https://circleci.com/docs/reference/configuration-reference/#resourceclass\n\nResource class for the job. Can be either a predefined resource class (e.g., `medium`, `large`) or a self-hosted runner in the format `<namespace>/<runner-name>`."
16021611
},
16031612
"docker": {
16041613
"type": "array",
@@ -2965,4 +2974,4 @@
29652974
"required": [
29662975
"version"
29672976
]
2968-
}
2977+
}

0 commit comments

Comments
 (0)