Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/answer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: answer
description: Apache Answer Q&A platform with SQLite, MySQL, or PostgreSQL support
type: application
version: 1.4.16
appVersion: "2.0.1"
appVersion: "2.0.2"
kubeVersion: ">=1.26.0-0"
maintainers:
- name: helmforgedev
Expand Down
2 changes: 2 additions & 0 deletions charts/answer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ database:
| `answer.externalContentDisplay` | `ask_before_display` | External content display policy used by auto-install |
| `answer.autoInstall` | `true` | Enable unattended setup |
| `answer.logLevel` | `INFO` | Log level (DEBUG, INFO, WARN, ERROR) |
| `answer.notifications.newQuestionEmail.queueSize` | `1024` | Maximum buffered new-question email tasks |
| `answer.notifications.newQuestionEmail.sendIntervalSeconds` | `0` | Delay between new-question email attempts; 0 disables throttling |
| `admin.name` | `admin` | Admin username |
| `admin.password` | `""` | Admin password (auto-generated) |
| `admin.email` | `admin@example.com` | Admin email |
Expand Down
6 changes: 6 additions & 0 deletions charts/answer/ci/new-question-email-worker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
answer:
notifications:
newQuestionEmail:
queueSize: 2048
sendIntervalSeconds: 15
4 changes: 4 additions & 0 deletions charts/answer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ spec:
{{- end }}
- name: LOG_LEVEL
value: {{ .Values.answer.logLevel | quote }}
- name: NEW_QUESTION_NOTIFICATION_EMAIL_QUEUE_SIZE
value: {{ .Values.answer.notifications.newQuestionEmail.queueSize | quote }}
- name: NEW_QUESTION_NOTIFICATION_EMAIL_SEND_INTERVAL_SECONDS
value: {{ .Values.answer.notifications.newQuestionEmail.sendIntervalSeconds | quote }}
{{- with .Values.answer.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
19 changes: 18 additions & 1 deletion charts/answer/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tests:
asserts:
- equal:
path: spec.template.spec.containers[0].image
value: "docker.io/apache/answer:2.0.1"
value: "docker.io/apache/answer:2.0.2"

- it: should allow custom image tag
template: templates/deployment.yaml
Expand Down Expand Up @@ -358,6 +358,23 @@ tests:
name: TIMEZONE
value: "UTC"

- it: should configure the new question email worker
template: templates/deployment.yaml
set:
answer.notifications.newQuestionEmail.queueSize: 2048
answer.notifications.newQuestionEmail.sendIntervalSeconds: 15
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: NEW_QUESTION_NOTIFICATION_EMAIL_QUEUE_SIZE
value: "2048"
- contains:
path: spec.template.spec.containers[0].env
content:
name: NEW_QUESTION_NOTIFICATION_EMAIL_SEND_INTERVAL_SECONDS
value: "15"

- it: should set pod labels
template: templates/deployment.yaml
set:
Expand Down
28 changes: 28 additions & 0 deletions charts/answer/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,34 @@
"description": "Log level: DEBUG, INFO, WARN, ERROR.",
"enum": ["DEBUG", "INFO", "WARN", "ERROR"]
},
"notifications": {
"type": "object",
"description": "Answer notification worker configuration.",
"additionalProperties": false,
"required": ["newQuestionEmail"],
"properties": {
"newQuestionEmail": {
"type": "object",
"description": "New-question email worker settings introduced in Answer 2.0.2.",
"additionalProperties": false,
"required": ["queueSize", "sendIntervalSeconds"],
"properties": {
"queueSize": {
"type": "integer",
"minimum": 1,
"maximum": 65536,
"description": "Maximum number of new-question email tasks buffered by the Answer worker."
},
"sendIntervalSeconds": {
"type": "integer",
"minimum": 0,
"maximum": 300,
"description": "Delay in seconds between new-question email attempts; 0 disables throttling."
}
}
}
}
},
"extraEnv": {
"type": "array",
"description": "Additional environment variables for the Answer container.",
Expand Down
9 changes: 8 additions & 1 deletion charts/answer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image:
# -- Container image repository
repository: docker.io/apache/answer
# -- Container image tag
tag: "2.0.1"
tag: "2.0.2"
# -- Image pull policy
pullPolicy: IfNotPresent

Expand Down Expand Up @@ -60,6 +60,13 @@ answer:
# -- Log level: DEBUG, INFO, WARN, ERROR
logLevel: INFO

notifications:
newQuestionEmail:
# -- Maximum number of new-question email tasks buffered by the Answer worker
queueSize: 1024
# -- Delay in seconds between new-question email attempts (0 disables throttling)
sendIntervalSeconds: 0

# -- Additional environment variables for the Answer container
# extraEnv:
# - name: TIMEZONE
Expand Down