Skip to content

Commit

Permalink
feat(helm): add option to set resources for initHelper (opensearch-pr…
Browse files Browse the repository at this point in the history
…oject#865)

### Description

This PR adds an option to define resources for initHelper container.

### Issues Resolved

Closes this issue
opensearch-project#866

### Check List
- [X] Commits are signed per the DCO using --signoff
- [X] Unittest added for the new/changed functionality and all unit
tests are successful
- [X] Customer-visible features documented
- [X] No linter warnings (`make lint`)

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

---------

Signed-off-by: Guilherme Oki <[email protected]>
Signed-off-by: rkthtrifork <[email protected]>
  • Loading branch information
guilhermeoki authored and rkthtrifork committed Aug 21, 2024
1 parent b2e12b1 commit cdc52d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
imagePullSecrets:
{{ toYaml .Values.opensearchCluster.initHelper.imagePullSecrets | nindent 6 }}
{{- end }}
{{- if .Values.opensearchCluster.initHelper.resources }}
resources:
{{- toYaml .Values.opensearchCluster.initHelper.resources | nindent 6 }}
{{- end }}
{{- end }}
general:
{{- if .Values.opensearchCluster.general.version }}
Expand Down
11 changes: 11 additions & 0 deletions charts/opensearch-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ opensearchCluster:
limits:
memory: "1Gi"
cpu: "500m"
initHelper:
imagePullSecrets: []
# - registryKeySecretName
imagePullPolicy: IfNotPresent
resources: {}
# requests:
# memory: "1Gi"
# cpu: "500m"
# limits:
# memory: "1Gi"
# cpu: "500m"
nodePools:
- component: masters
diskSize: "30Gi"
Expand Down

0 comments on commit cdc52d5

Please sign in to comment.