Skip to content

Commit

Permalink
Merge pull request #1 from Arau/resource_requests_limits
Browse files Browse the repository at this point in the history
Pass resources map to CR
  • Loading branch information
Arau authored Jan 21, 2022
2 parents df39e36 + f44bcc6 commit 0a2ce4c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/ondat-operator/templates/storageoscluster_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
tlsEtcdSecretRefNamespace: {{ .Values.cluster.kvBackend.tlsSecretNamespace }}
{{- end }}

resources:
{{ toYaml .Values.cluster.resources | indent 4 }}

{{- if .Values.cluster.nodeSelectorTerm.key }}
nodeSelectorTerms:
- matchExpressions:
Expand Down
8 changes: 8 additions & 0 deletions charts/ondat-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ cluster:
tlsSecretName:
tlsSecretNamespace:

# Resource requessts and limits for the node container
resources: {}
# requests:
# cpu: 1
# memory: 2Gi
# limits:
# cpu:
# memory:
# Node selector terms to install StorageOS on.
nodeSelectorTerm:
key:
Expand Down

0 comments on commit 0a2ce4c

Please sign in to comment.