Skip to content

Commit e608e1c

Browse files
MichaluxPLleonardoce
authored andcommitted
feat: add sidecar resources definition to ObjectStore CRD
Modify ObjectStore CRD to enable resources specification for the plugin's sidecar container. Signed-off-by: MichaluxPL <[email protected]>
1 parent 28bc705 commit e608e1c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

config/crd/bases/barmancloud.cnpg.io_objectstores.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,37 @@ spec:
512512
The retentionCheckInterval defines the frequency at which the
513513
system checks and enforces retention policies.
514514
type: integer
515+
resources:
516+
description: |-
517+
Plugin's sidecar resources requirements. Please refer to
518+
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
519+
for more information.
520+
properties:
521+
limits:
522+
additionalProperties:
523+
anyOf:
524+
- type: integer
525+
- type: string
526+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
527+
x-kubernetes-int-or-string: true
528+
description: |-
529+
Limits describes the maximum amount of compute resources allowed.
530+
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
531+
type: object
532+
requests:
533+
additionalProperties:
534+
anyOf:
535+
- type: integer
536+
- type: string
537+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
538+
x-kubernetes-int-or-string: true
539+
description: |-
540+
Requests describes the minimum amount of compute resources required.
541+
If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
542+
otherwise to an implementation-defined value. Requests cannot exceed Limits.
543+
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
544+
type: object
545+
type: object
515546
type: object
516547
retentionPolicy:
517548
description: |-

0 commit comments

Comments
 (0)