Add hugepages-2Mi and 1Gi to ResourceDescription type and crd (#1549, #1788)

This commit is contained in:
Silas Della Contrada
2023-04-28 12:27:52 +02:00
parent af084a5a65
commit 33a70410ba
5 changed files with 56 additions and 7 deletions
+4
View File
@@ -14,6 +14,10 @@ spec:
foo_user: [] # role for application foo
databases:
foo: zalando # dbname: owner
resources:
limits:
hugepages-2Mi: 250Mi
memory: 250Mi
preparedDatabases:
bar: {}
postgresql:
+12
View File
@@ -439,6 +439,12 @@ spec:
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
# Note: the value specified here must not be zero or be higher
# than the corresponding limit.
hugepages-2Mi:
type: string
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
hugepages-1Gi:
type: string
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
requests:
type: object
properties:
@@ -448,6 +454,12 @@ spec:
memory:
type: string
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
hugepages-2Mi:
type: string
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
hugepages-1Gi:
type: string
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
schedulerName:
type: string
serviceAnnotations: