Skip to content

Commit 1541c5f

Browse files
wrn14897teeohhem
andauthored
feat: refactor image value + bump default tag to 2.0.1 (#37)
Ref: HDX-1839 Co-authored-by: Tom Alexander <[email protected]>
1 parent 7b964f1 commit 1541c5f

15 files changed

+220
-98
lines changed

.changeset/nasty-teeth-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"helm-charts": minor
3+
---
4+
5+
feat: refactor image value + bump default tag to 2.0.0

charts/hdx-oss-v2/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: hdx-oss-v2
33
description: A Helm chart for HyperDX OSS V2
44
type: application
55
version: 0.5.2
6-
appVersion: 1.0.0
6+
appVersion: 2.0.1

charts/hdx-oss-v2/templates/cronjobs/task-checkAlerts.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ spec:
2020
restartPolicy: OnFailure
2121
containers:
2222
- name: task
23-
image: "{{ .Values.hyperdx.image }}"
23+
image: "{{ .Values.hyperdx.image.repository }}:{{ .Values.hyperdx.image.tag | default .Chart.AppVersion }}"
24+
imagePullPolicy: {{ .Values.hyperdx.image.pullPolicy }}
2425
command: ["node", "/app/api/build/tasks/index.js", "check-alerts"]
2526
envFrom:
2627
- configMapRef:
@@ -32,4 +33,4 @@ spec:
3233
value: "hdx-oss-task-check-alerts"
3334
resources:
3435
{{- toYaml .Values.tasks.checkAlerts.resources | nindent 16 }}
35-
{{- end }}
36+
{{- end }}

charts/hdx-oss-v2/templates/hyperdx-deployment.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ spec:
3636
{{- end }}
3737
containers:
3838
- name: app
39-
image: "{{ .Values.hyperdx.image }}"
39+
image: "{{ .Values.hyperdx.image.repository }}:{{ .Values.hyperdx.image.tag | default .Chart.AppVersion }}"
40+
imagePullPolicy: {{ .Values.hyperdx.image.pullPolicy }}
4041
ports:
4142
- name: app-port
4243
containerPort: {{ .Values.hyperdx.appPort }}
@@ -63,4 +64,4 @@ spec:
6364
{{- end }}
6465
{{- with .Values.hyperdx.env }}
6566
{{- toYaml . | nindent 12 }}
66-
{{- end }}
67+
{{- end }}

charts/hdx-oss-v2/templates/otel-collector-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ spec:
2020
spec:
2121
containers:
2222
- name: otel-collector
23-
image: "{{ .Values.otel.image }}"
23+
image: "{{ .Values.otel.image.repository }}:{{ .Values.otel.image.tag | default .Chart.AppVersion }}"
24+
imagePullPolicy: {{ .Values.otel.image.pullPolicy }}
2425
ports:
2526
- containerPort: {{ .Values.otel.port }}
2627
- containerPort: {{ .Values.otel.nativePort }}

charts/hdx-oss-v2/tests/__snapshot__/ingress_test.yaml.snap

Lines changed: 0 additions & 60 deletions
This file was deleted.

charts/hdx-oss-v2/tests/app-deployment_test.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ tests:
55
- it: should render the app deployment correctly
66
set:
77
hyperdx:
8-
image: hyperdx/hyperdx:2-beta
8+
image:
9+
repository: hyperdx/hyperdx
10+
tag: 2-beta
911
apiKey: test-api-key
1012
appPort: 3000
1113
apiPort: 8000
@@ -38,7 +40,9 @@ tests:
3840
- it: should scale replicas when specified
3941
set:
4042
hyperdx:
41-
image: hyperdx/hyperdx:2-beta
43+
image:
44+
repository: hyperdx/hyperdx
45+
tag: 2-beta
4246
replicas: 3
4347
asserts:
4448
- equal:

charts/hdx-oss-v2/tests/default-env-vars_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ tests:
117117
hyperdx:
118118
env:
119119
- name: DEFAULT_SOURCES
120-
value: |
120+
value: |-
121121
[
122122
{
123123
"name": "HyperDX Logs",
@@ -134,7 +134,7 @@ tests:
134134
path: spec.template.spec.containers[0].env
135135
content:
136136
name: DEFAULT_SOURCES
137-
value: |
137+
value: |-
138138
[
139139
{
140140
"name": "HyperDX Logs",

charts/hdx-oss-v2/tests/helpers_test.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ tests:
4444

4545
- it: should render chart version in labels when available
4646
asserts:
47-
- isSubset:
48-
path: metadata.labels
49-
content:
50-
app.kubernetes.io/version: "1.0.0"
47+
- matchRegex:
48+
path: metadata.labels["app.kubernetes.io/version"]
49+
pattern: ^\d+\.\d+\.\d+$

charts/hdx-oss-v2/tests/hyperdx-deployment_test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ tests:
99
- equal:
1010
path: spec.replicas
1111
value: 1
12-
- equal:
12+
- matchRegex:
1313
path: spec.template.spec.containers[0].image
14-
value: hyperdx/hyperdx:2-beta
14+
pattern: ^docker\.hyperdx\.io/hyperdx/hyperdx:\d+\.\d+\.\d+$
1515
- equal:
1616
path: spec.template.spec.containers[0].ports[0].containerPort
1717
value: 3000
@@ -106,4 +106,4 @@ tests:
106106
asserts:
107107
- equal:
108108
path: spec.template.spec.containers[0].ports[2].containerPort
109-
value: 5320
109+
value: 5320

0 commit comments

Comments
 (0)