Skip to content

Commit 8857c3c

Browse files
authored
Promoted Helm chart version to v1.1.0
1 parent 38191a4 commit 8857c3c

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ To install the Chart with custom dictionaries feature enabled and the local path
101101
```shell
102102
helm install --create-namespace --namespace wsc wproofreader-app wproofreader --set nodeAffinityLabel=wproofreader.domain-name.com/app --set dictionaries.enabled=true --set dictionaries.localPath=/dictionaries
103103
```
104+
For testing and development purposes, if neither `dictionaries.localPath` nor `dictionaries.existingClaim` is set when `dictionaries.enabled` is `true`, the Helm Chart will automatically create an `emptyDir` volume for dictionaries. This ensures that the deployment can proceed without requiring a predefined storage location.
105+
```shell
106+
helm install --create-namespace --namespace wsc wproofreader-app wproofreader --set dictionaries.enabled=true
107+
```
104108
The dictionary files can be uploaded after the chart installation, but the `dictionaries.localPath`
105109
folder must exist on the node beforehand.
106110
Dictionaries can be uploaded to the node VM using standard methods (`scp`, `rsync`, `FTP` etc) or

wproofreader/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ description: A Helm chart for deploying webspellchecker/wproofreader in Kubernet
44

55
type: application
66

7-
version: 1.0.0
7+
version: 1.1.0
88

9-
appVersion: "5.34.3"
9+
appVersion: "5.38.1.0"

wproofreader/templates/deployment.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ spec:
7878
value: {{ .Values.webPort | default (include "wproofreader.defaultWebPort" .) | quote }}
7979
- name: VIRTUAL_DIR
8080
value: {{ .Values.virtualDir }}
81+
{{- with .Values.extraEnv }}
82+
{{- toYaml . | nindent 12 }}
83+
{{- end }}
8184
- name: LICENSE_TICKET_ID
8285
valueFrom:
8386
secretKeyRef:
@@ -90,10 +93,17 @@ spec:
9093
secret:
9194
secretName: {{ include "wproofreader.fullname" . }}-cert
9295
{{- end }}
93-
{{- if or .Values.dictionaries.localPath .Values.dictionaries.existingClaim }}
96+
{{- if .Values.dictionaries.enabled }}
9497
- name: dictionaries-volume
98+
{{- if .Values.dictionaries.existingClaim }}
9599
persistentVolumeClaim:
96-
claimName: {{ default (include "wproofreader.pvcName" .) .Values.dictionaries.existingClaim }}
100+
claimName: {{ .Values.dictionaries.existingClaim }}
101+
{{- else if .Values.dictionaries.localPath }}
102+
hostPath:
103+
path: {{ .Values.dictionaries.localPath }}
104+
{{- else }}
105+
emptyDir: {}
106+
{{- end }}
97107
{{- end }}
98108
{{- end }}
99109
{{- if and .Values.dictionaries.enabled .Values.dictionaries.localPath }}

wproofreader/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ webPort: ""
1313
# note: Helm does not allow its templates to read environment variables directly
1414
licenseTicketID: ""
1515

16+
# extra environment variables to pass to the container
17+
extraEnv: []
18+
# extraEnv:
19+
# - name: DOMAIN_NAME
20+
# value: "wproofreader.domain-name.com"
21+
1622
# directory of the service for web and API requests, e.g. http://localhost/wscservice/api?cmd=ver
1723
virtualDir: wscservice
1824

0 commit comments

Comments
 (0)