Skip to content

Commit

Permalink
[sophora-indexing-service] add extra deploy (#18)
Browse files Browse the repository at this point in the history
* [sophora-indexing-service]: add extraDeploy

* [sophora-indexing-service]: bump chart version
  • Loading branch information
muffl0n authored May 4, 2023
1 parent fbb6c8a commit 4389ea4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/sophora-indexing-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: sophora-indexing-service
description: Sophora Indexing Service (SISI)
type: application
version: 1.0.0
version: 1.1.0
appVersion: '4.4.6'
13 changes: 13 additions & 0 deletions charts/sophora-indexing-service/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,16 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

{{/*
Renders a value that contains template.
Usage:
{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
*/}}
{{- define "common.tplvalues.render" -}}
{{- if typeIs "string" .value }}
{{- tpl .value .context }}
{{- else }}
{{- tpl (.value | toYaml) .context }}
{{- end }}
{{- end -}}
5 changes: 5 additions & 0 deletions charts/sophora-indexing-service/templates/extra-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- range .Values.extraDeploy }}
---
{{ include "common.tplvalues.render" (dict "value" . "context" $) }}
{{- end }}

2 changes: 2 additions & 0 deletions charts/sophora-indexing-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

extreDeploy: []

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit 4389ea4

Please sign in to comment.