Skip to content

Commit

Permalink
Add resource limits regex
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelldls committed Jun 4, 2024
1 parent a66f745 commit 366a0df
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Schemas/ioc-instance.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,15 @@
"properties":{
"cpu": {
"type": "string",
"default": "500m"
"default": "500m",
"description": "Resource limits e.g. 121M, 120Mi, 2G, 1Gi",
"pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
},
"memory": {
"type": "string",
"default": "256Mi"
"default": "256Mi",
"description": "Resource limits e.g. 121M, 120Mi, 2G, 1Gi",
"pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
}
}
},
Expand All @@ -137,11 +141,15 @@
"properties":{
"cpu": {
"type": "string",
"default": "100m"
"default": "100m",
"description": "Resource limits e.g. 121M, 120Mi, 2G, 1Gi",
"pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
},
"memory": {
"type": "string",
"default": "64Mi"
"default": "64Mi",
"description": "Resource limits e.g. 121M, 120Mi, 2G, 1Gi",
"pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
}
}
}
Expand Down

0 comments on commit 366a0df

Please sign in to comment.