Skip to content

Commit dd07898

Browse files
CatalogSource: add configurations for gRPC server memory footprint
Signed-off-by: Steve Kuznetsov <[email protected]>
1 parent 92e4341 commit dd07898

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

Diff for: crds/operators.coreos.com_catalogsources.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,13 @@ spec:
532532
topologyKey:
533533
description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
534534
type: string
535+
memoryTarget:
536+
description: "MemoryTarget configures the $GOMEMLIMIT value for the gRPC catalog Pod. This is a soft memory limit for the server, which the runtime will attempt to meet but makes no guarantees that it will do so. If this value is set, the Pod will have the following modifications made to the container running the server: - the $GOMEMLIMIT environment variable will be set to this value in bytes - the memory request will be set to this value - the memory limit will be set to 200% of this value \n If unset, a default value of 10MiB will be used."
537+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
538+
anyOf:
539+
- type: integer
540+
- type: string
541+
x-kubernetes-int-or-string: true
535542
nodeSelector:
536543
description: NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node.
537544
type: object

0 commit comments

Comments
 (0)