Skip to content

Commit 57654e4

Browse files
authored
[sophora-image-access-service] add extraDeploy (#160)
See ZUPUS-501
1 parent cfc8cfc commit 57654e4

File tree

5 files changed

+27
-1
lines changed

5 files changed

+27
-1
lines changed

charts/sophora-image-access-service/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.0.1
18+
version: 1.1.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/sophora-image-access-service/templates/_helpers.tpl

+13
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,16 @@ Create the name of the service account to use
6060
{{- default "default" .Values.serviceAccount.name }}
6161
{{- end }}
6262
{{- end }}
63+
64+
{{/*
65+
Renders a value that contains template.
66+
Usage:
67+
{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
68+
*/}}
69+
{{- define "common.tplvalues.render" -}}
70+
{{- if typeIs "string" .value }}
71+
{{- tpl .value .context }}
72+
{{- else }}
73+
{{- tpl (.value | toYaml) .context }}
74+
{{- end }}
75+
{{- end -}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{- range .Values.extraDeploy }}
2+
---
3+
{{ include "common.tplvalues.render" (dict "value" . "context" $) }}
4+
{{- end }}
5+

charts/sophora-image-access-service/test-values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ ingress:
3737
annotations: {}
3838
hosts:
3939
tls: []
40+
41+
extraDeploy:
42+
- apiVersion: subshell/v2

charts/sophora-image-access-service/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,8 @@ livenessProbe:
100100
initialDelaySeconds: 1
101101
timeoutSeconds: 3
102102
periodSeconds: 60
103+
104+
## @section Extra Deploy
105+
##
106+
## @param extraDeploy Allows to specify custom resources that should be deployed
107+
extraDeploy: []

0 commit comments

Comments
 (0)