Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Commit 44be167

Browse files
authored
Merge pull request #2 from ClickHouse/main
chore: sync fork with upstream
2 parents c2e49d5 + 8ed0963 commit 44be167

File tree

11 files changed

+101
-10
lines changed

11 files changed

+101
-10
lines changed

.github/workflows/chart-test-legacy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
6464
- name: Run Helm unit tests
6565
run: |
66-
helm plugin install https://github.com/helm-unittest/helm-unittest.git || true
66+
helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v1.0.3 ${{ runner.debug && '--debug' || ''}} || true
6767
helm unittest charts/hdx-oss-v2
6868
6969
- name: Deploy hdx-oss-v2 chart

.github/workflows/chart-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
6464
- name: Run Helm unit tests
6565
run: |
66-
helm plugin install https://github.com/helm-unittest/helm-unittest.git || true
66+
helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v1.0.3 ${{ runner.debug && '--debug' || ''}} || true
6767
helm unittest charts/clickstack
6868
6969
- name: Deploy ClickStack chart

.github/workflows/helm-test-legacy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Install helm-unittest plugin
3131
run: |
32-
helm plugin install https://github.com/helm-unittest/helm-unittest.git
32+
helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v1.0.2 ${{ runner.debug && '--debug' || ''}}
3333
3434
- name: Run helm-unittest
3535
run: |

.github/workflows/helm-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Install helm-unittest plugin
3131
run: |
32-
helm plugin install https://github.com/helm-unittest/helm-unittest.git
32+
helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v1.0.3 ${{ runner.debug && '--debug' || ''}}
3333
3434
- name: Run helm-unittest
3535
run: |

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# helm-charts
22

3+
## 1.1.0
4+
5+
### Minor Changes
6+
7+
- 8fcee9a: Supports passing additional arguments to the check-alerts task. This allows setting the concurrency and sourceTimeoutMs through helm.
8+
39
## 1.0.1
410

511
### Patch Changes

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Quick Start
66
```bash
7-
helm repo add clickstack https://hyperdxio.github.io/helm-charts
7+
helm repo add clickstack https://clickhouse.github.io/ClickStack-helm-charts
88
helm repo update
99
helm install my-clickstack clickstack/clickstack
1010
```
@@ -19,4 +19,4 @@ For configuration, cloud deployment, ingress setup, and troubleshooting, see the
1919
## Support
2020

2121
- **[Documentation](https://clickhouse.com/docs/use-cases/observability/clickstack)** - Installation, configuration, guides
22-
- **[Issues](https://github.com/hyperdxio/helm-charts/issues)** - Report bugs or request features
22+
- **[Issues](https://github.com/ClickHouse/ClickStack-helm-charts/issues)** - Report bugs or request features

charts/clickstack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ annotations:
1515
- name: Upstream Project
1616
url: https://github.com/hyperdxio/hyperdx
1717
type: application
18-
version: 1.0.1
18+
version: 1.1.0
1919
appVersion: 2.8.0

charts/clickstack/templates/cronjobs/task-checkAlerts.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,23 @@ spec:
2828
imagePullPolicy: {{ .Values.hyperdx.image.pullPolicy }}
2929
{{- $tag := .Values.hyperdx.image.tag | default .Chart.AppVersion -}}
3030
{{- if and (regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+" $tag) (semverCompare "< 2.7.0" $tag) }} # before esbuild revert
31-
command: ["node", "/app/packages/api/tasks/index", "check-alerts"]
31+
command:
32+
- "node"
33+
- "/app/packages/api/tasks/index"
34+
- "check-alerts"
35+
{{- range $key, $value := .Values.tasks.checkAlerts.additionalArgs }}
36+
- "--{{ $key }}"
37+
- "{{ $value }}"
38+
{{- end }}
3239
{{- else }}
33-
command: ["node", "/app/packages/api/build/tasks/index.js", "check-alerts"] # after esbuild revert
40+
command: # after esbuild revert
41+
- "node"
42+
- "/app/packages/api/build/tasks/index.js"
43+
- "check-alerts"
44+
{{- range $key, $value := .Values.tasks.checkAlerts.additionalArgs }}
45+
- "--{{ $key }}"
46+
- "{{ $value }}"
47+
{{- end }}
3448
{{- end }}
3549
envFrom:
3650
- configMapRef:

charts/clickstack/tests/task-checkAlerts_test.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,63 @@ tests:
154154
- equal:
155155
path: spec.jobTemplate.spec.template.spec.containers[0].command
156156
value: ["node", "/app/packages/api/build/tasks/index.js", "check-alerts"]
157+
158+
- it: should not include additionalArgs when empty
159+
set:
160+
tasks:
161+
enabled: true
162+
checkAlerts:
163+
additionalArgs: {}
164+
hyperdx:
165+
image:
166+
tag: "2.8.0"
167+
asserts:
168+
- equal:
169+
path: spec.jobTemplate.spec.template.spec.containers[0].command
170+
value: ["node", "/app/packages/api/build/tasks/index.js", "check-alerts"]
171+
172+
- it: should include additionalArgs with -- prefix in command
173+
set:
174+
tasks:
175+
enabled: true
176+
checkAlerts:
177+
additionalArgs:
178+
concurrency: 6
179+
sourceTimeoutMs: 90000
180+
hyperdx:
181+
image:
182+
tag: "2.8.0"
183+
asserts:
184+
- contains:
185+
path: spec.jobTemplate.spec.template.spec.containers[0].command
186+
content: "--concurrency"
187+
- contains:
188+
path: spec.jobTemplate.spec.template.spec.containers[0].command
189+
content: "6"
190+
- contains:
191+
path: spec.jobTemplate.spec.template.spec.containers[0].command
192+
content: "--sourceTimeoutMs"
193+
- contains:
194+
path: spec.jobTemplate.spec.template.spec.containers[0].command
195+
content: "90000"
196+
197+
- it: should include additionalArgs in pre-esbuild command path
198+
set:
199+
tasks:
200+
enabled: true
201+
checkAlerts:
202+
additionalArgs:
203+
concurrency: 4
204+
hyperdx:
205+
image:
206+
tag: "2.6.0"
207+
asserts:
208+
- contains:
209+
path: spec.jobTemplate.spec.template.spec.containers[0].command
210+
content: "/app/packages/api/tasks/index"
211+
- contains:
212+
path: spec.jobTemplate.spec.template.spec.containers[0].command
213+
content: "--concurrency"
214+
- contains:
215+
path: spec.jobTemplate.spec.template.spec.containers[0].command
216+
content: "4"

charts/clickstack/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,17 @@ tasks:
467467
enabled: false
468468
checkAlerts:
469469
schedule: "*/1 * * * *" # Runs every 1 minute
470+
471+
additionalArgs:
472+
{}
473+
# Additional command line arguments can be supplied to the check-alerts
474+
# task by defining the param as a key/value pair. These are passed to the
475+
# task without validation in the helm chart.
476+
#
477+
# Examples:
478+
# concurrency: 6
479+
# sourceTimeoutMs: 90000
480+
470481
resources:
471482
limits:
472483
cpu: 200m

0 commit comments

Comments
 (0)