Skip to content

Commit

Permalink
remove bytes unit from regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Sharma committed Jul 23, 2024
1 parent 8287ba6 commit 6b178e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions paasta_tools/cli/schemas/tron_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,18 +383,18 @@
},
"spark.executor.memory": {
"type": "string",
"pattern": "^[1-9]+[0-9]*[bkmgt]$"
"pattern": "^[1-9]+[0-9]*[kmgt]$"
},
"spark.driver.memory": {
"type": "string",
"pattern": "^[1-9]+[0-9]*[bkmgt]$"
"pattern": "^[1-9]+[0-9]*[kmgt]$"
},
"spark.driver.memoryOverhead": {
"$comment": "we still need to validate this in code since there's a spark-enforced minimum of 384mb",
"oneOf": [
{
"type": "string",
"pattern": "^[1-9]+[0-9]*[bkmgt]$"
"pattern": "^[1-9]+[0-9]*[kmgt]$"
},
{
"type": "number",
Expand All @@ -408,7 +408,7 @@
"oneOf": [
{
"type": "string",
"pattern": "^[1-9]+[0-9]*[bkmgt]$"
"pattern": "^[1-9]+[0-9]*[kmgt]$"
},
{
"type": "number",
Expand All @@ -419,7 +419,7 @@
},
"spark.driver.maxResultSize": {
"type": "string",
"pattern": "^[1-9]+[0-9]*[bkmgt]$"
"pattern": "^[1-9]+[0-9]*[kmgt]$"
},
"spark.scheduler.minRegisteredResourcesRatio": {
"type": "number",
Expand Down

0 comments on commit 6b178e4

Please sign in to comment.