Skip to content

Commit

Permalink
chore(helm): add initHelper struct in values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeoki committed Aug 13, 2024
1 parent 32fe6f7 commit eaad80a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
19 changes: 1 addition & 18 deletions charts/opensearch-cluster/templates/opensearch-cluster-cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,7 @@ spec:
{{- end }}
{{- if .Values.opensearchCluster.initHelper.resources }}
resources:
{{- if .Values.opensearchCluster.initHelper.resources.requests }}
requests:
{{- if .Values.opensearchCluster.initHelper.resources.requests.memory }}
memory: {{ .Values.opensearchCluster.initHelper.resources.requests.memory }}
{{- end }}
{{- if .Values.opensearchCluster.initHelper.resources.requests.cpu }}
cpu: {{ .Values.opensearchCluster.initHelper.resources.requests.cpu }}
{{- end }}
{{- end }}
{{- if .Values.opensearchCluster.initHelper.resources.limits }}
limits:
{{- if .Values.opensearchCluster.initHelper.resources.limits.memory }}
memory: {{ .Values.opensearchCluster.initHelper.resources.limits.memory }}
{{- end }}
{{- if .Values.opensearchCluster.initHelper.resources.limits.cpu }}
cpu: {{ .Values.opensearchCluster.initHelper.resources.limits.cpu }}
{{- end }}
{{- end }}
{{- toYaml .Values.opensearchCluster.initHelper.resources | nindent 6 }}
{{- end }}
{{- end }}
general:
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 eaad80a

Please sign in to comment.