File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed
Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ the subchart is then configured with the following minimal values:
2222
2323` ` ` yaml filename=values.yaml
2424moduleUrl : " http://mod-x:80"
25+ moduleVersion : 0.1.0-main
2526moduleDescriptor : |
2627 {
2728 "id" : "mod-x-@version@",
Original file line number Diff line number Diff line change 1212{{- if not .Values.moduleDescriptor -}}
1313{{- fail " A valid .Values.moduleDescriptor is required!" -}}
1414{{- end -}}
15+ {{- if not .Values.moduleVersion -}}
16+ {{- fail " A valid .Values.moduleVersion is required!" -}}
17+ {{- end -}}
1518{{- if empty .Values.tenants -}}
1619{{- fail " A valid .Values.tenants is required!" -}}
1720{{- end -}}
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ metadata:
66 {{- include "..labels" . | nindent 4 }}
77data :
88 ModuleDescriptor : |
9- {{ .Values.moduleDescriptor | default "" | nindent 4 }}
9+ {{ .Values.moduleDescriptor | default "" | replace "@version@" .Values.moduleVersion | nindent 4 }}
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ okapiSecret: "okapi-secret"
1111moduleUrl : " "
1212# required, specify the ModuleDescriptor literal (JSON)
1313moduleDescriptor : " "
14+ # required, to be replaced in the ModuleDescriptor
15+ moduleVersion : " 0.1.0"
1416# required, specify the Okapi tenant(s) to be used
1517tenants : []
1618# required, specify the Okapi admin tenant(s) to be used
You can’t perform that action at this time.
0 commit comments