Skip to content

Commit b8d04d5

Browse files
committed
permit specifying trident-operator resources
closes #927 Signed-off-by: Clément Nussbaumer <clement.nussbaumer@postfinance.ch>
1 parent 77449b3 commit b8d04d5

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

helm/trident-operator/templates/deployment.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,7 @@ spec:
6868
imagePullPolicy: {{ .Values.imagePullPolicy }}
6969
name: trident-operator
7070
resources:
71-
requests:
72-
cpu: "10m"
73-
memory: "40Mi"
74-
limits:
75-
cpu: "20m"
76-
memory: "80Mi"
71+
{{- toYaml .Values.operatorResources | nindent 10 }}
7772
{{- if and (eq .Values.cloudProvider "Azure") (eq .Values.cloudIdentity "") }}
7873
volumes:
7974
- name: azure-cred

helm/trident-operator/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ operatorImage: ""
7474
# operatorImageTag allows overriding the tag of the trident-operator image.
7575
operatorImageTag: ""
7676

77+
# operatorResources permits configuring the trident-operator resources.
78+
operatorResources:
79+
requests:
80+
cpu: "10m"
81+
memory: "40Mi"
82+
limits:
83+
cpu: "20m"
84+
memory: "80Mi"
85+
7786

7887
# tridentIPv6 allows enabling Trident to work in IPv6 clusters.
7988
tridentIPv6: false

0 commit comments

Comments
 (0)