Skip to content

Commit 6580971

Browse files
feat: make readinessProbe and livenessProbe initialDelaySeconds configurable (#18756)
Makes `initialDelaySeconds` configurable for both `readinessProbe` and `livenessProbe` in the Helm chart. **Changes:** - Added `coder.readinessProbe.initialDelaySeconds` and `coder.livenessProbe.initialDelaySeconds` to `values.yaml` - Updated `_coder.tpl` template to use these configurable values - Defaults to 0 seconds to maintain existing behavior **Testing:** - Verified template rendering with default values (0) - Verified template rendering with custom values (30, 60) - Both probes correctly use the configured `initialDelaySeconds` --------- Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com> Co-authored-by: kylecarbs <[email protected]>
1 parent a1c77e3 commit 6580971

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+106
-0
lines changed

helm/coder/templates/_coder.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ readinessProbe:
100100
path: /healthz
101101
port: "http"
102102
scheme: "HTTP"
103+
initialDelaySeconds: {{ .Values.coder.readinessProbe.initialDelaySeconds }}
103104
livenessProbe:
104105
httpGet:
105106
path: /healthz
106107
port: "http"
107108
scheme: "HTTP"
109+
initialDelaySeconds: {{ .Values.coder.livenessProbe.initialDelaySeconds }}
108110
{{- end }}

helm/coder/tests/testdata/auto_access_url_1.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ spec:
171171
path: /healthz
172172
port: http
173173
scheme: HTTP
174+
initialDelaySeconds: 0
174175
name: coder
175176
ports:
176177
- containerPort: 8080
@@ -181,6 +182,7 @@ spec:
181182
path: /healthz
182183
port: http
183184
scheme: HTTP
185+
initialDelaySeconds: 0
184186
resources:
185187
limits:
186188
cpu: 2000m

helm/coder/tests/testdata/auto_access_url_1_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ spec:
171171
path: /healthz
172172
port: http
173173
scheme: HTTP
174+
initialDelaySeconds: 0
174175
name: coder
175176
ports:
176177
- containerPort: 8080
@@ -181,6 +182,7 @@ spec:
181182
path: /healthz
182183
port: http
183184
scheme: HTTP
185+
initialDelaySeconds: 0
184186
resources:
185187
limits:
186188
cpu: 2000m

helm/coder/tests/testdata/auto_access_url_2.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ spec:
171171
path: /healthz
172172
port: http
173173
scheme: HTTP
174+
initialDelaySeconds: 0
174175
name: coder
175176
ports:
176177
- containerPort: 8080
@@ -181,6 +182,7 @@ spec:
181182
path: /healthz
182183
port: http
183184
scheme: HTTP
185+
initialDelaySeconds: 0
184186
resources:
185187
limits:
186188
cpu: 2000m

helm/coder/tests/testdata/auto_access_url_2_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ spec:
171171
path: /healthz
172172
port: http
173173
scheme: HTTP
174+
initialDelaySeconds: 0
174175
name: coder
175176
ports:
176177
- containerPort: 8080
@@ -181,6 +182,7 @@ spec:
181182
path: /healthz
182183
port: http
183184
scheme: HTTP
185+
initialDelaySeconds: 0
184186
resources:
185187
limits:
186188
cpu: 2000m

helm/coder/tests/testdata/auto_access_url_3.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ spec:
169169
path: /healthz
170170
port: http
171171
scheme: HTTP
172+
initialDelaySeconds: 0
172173
name: coder
173174
ports:
174175
- containerPort: 8080
@@ -179,6 +180,7 @@ spec:
179180
path: /healthz
180181
port: http
181182
scheme: HTTP
183+
initialDelaySeconds: 0
182184
resources:
183185
limits:
184186
cpu: 2000m

helm/coder/tests/testdata/auto_access_url_3_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ spec:
169169
path: /healthz
170170
port: http
171171
scheme: HTTP
172+
initialDelaySeconds: 0
172173
name: coder
173174
ports:
174175
- containerPort: 8080
@@ -179,6 +180,7 @@ spec:
179180
path: /healthz
180181
port: http
181182
scheme: HTTP
183+
initialDelaySeconds: 0
182184
resources:
183185
limits:
184186
cpu: 2000m

helm/coder/tests/testdata/command.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ spec:
169169
path: /healthz
170170
port: http
171171
scheme: HTTP
172+
initialDelaySeconds: 0
172173
name: coder
173174
ports:
174175
- containerPort: 8080
@@ -179,6 +180,7 @@ spec:
179180
path: /healthz
180181
port: http
181182
scheme: HTTP
183+
initialDelaySeconds: 0
182184
resources:
183185
limits:
184186
cpu: 2000m

helm/coder/tests/testdata/command_args.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ spec:
170170
path: /healthz
171171
port: http
172172
scheme: HTTP
173+
initialDelaySeconds: 0
173174
name: coder
174175
ports:
175176
- containerPort: 8080
@@ -180,6 +181,7 @@ spec:
180181
path: /healthz
181182
port: http
182183
scheme: HTTP
184+
initialDelaySeconds: 0
183185
resources:
184186
limits:
185187
cpu: 2000m

helm/coder/tests/testdata/command_args_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ spec:
170170
path: /healthz
171171
port: http
172172
scheme: HTTP
173+
initialDelaySeconds: 0
173174
name: coder
174175
ports:
175176
- containerPort: 8080
@@ -180,6 +181,7 @@ spec:
180181
path: /healthz
181182
port: http
182183
scheme: HTTP
184+
initialDelaySeconds: 0
183185
resources:
184186
limits:
185187
cpu: 2000m

helm/coder/tests/testdata/command_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ spec:
169169
path: /healthz
170170
port: http
171171
scheme: HTTP
172+
initialDelaySeconds: 0
172173
name: coder
173174
ports:
174175
- containerPort: 8080
@@ -179,6 +180,7 @@ spec:
179180
path: /healthz
180181
port: http
181182
scheme: HTTP
183+
initialDelaySeconds: 0
182184
resources:
183185
limits:
184186
cpu: 2000m

helm/coder/tests/testdata/custom_resources.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ spec:
169169
path: /healthz
170170
port: http
171171
scheme: HTTP
172+
initialDelaySeconds: 0
172173
name: coder
173174
ports:
174175
- containerPort: 8080
@@ -179,6 +180,7 @@ spec:
179180
path: /healthz
180181
port: http
181182
scheme: HTTP
183+
initialDelaySeconds: 0
182184
resources:
183185
limits:
184186
cpu: 4000m

helm/coder/tests/testdata/custom_resources_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ spec:
169169
path: /healthz
170170
port: http
171171
scheme: HTTP
172+
initialDelaySeconds: 0
172173
name: coder
173174
ports:
174175
- containerPort: 8080
@@ -179,6 +180,7 @@ spec:
179180
path: /healthz
180181
port: http
181182
scheme: HTTP
183+
initialDelaySeconds: 0
182184
resources:
183185
limits:
184186
cpu: 4000m

helm/coder/tests/testdata/default_values.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ spec:
169169
path: /healthz
170170
port: http
171171
scheme: HTTP
172+
initialDelaySeconds: 0
172173
name: coder
173174
ports:
174175
- containerPort: 8080
@@ -179,6 +180,7 @@ spec:
179180
path: /healthz
180181
port: http
181182
scheme: HTTP
183+
initialDelaySeconds: 0
182184
resources:
183185
limits:
184186
cpu: 2000m

helm/coder/tests/testdata/default_values_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ spec:
169169
path: /healthz
170170
port: http
171171
scheme: HTTP
172+
initialDelaySeconds: 0
172173
name: coder
173174
ports:
174175
- containerPort: 8080
@@ -179,6 +180,7 @@ spec:
179180
path: /healthz
180181
port: http
181182
scheme: HTTP
183+
initialDelaySeconds: 0
182184
resources:
183185
limits:
184186
cpu: 2000m

helm/coder/tests/testdata/env_from.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ spec:
181181
path: /healthz
182182
port: http
183183
scheme: HTTP
184+
initialDelaySeconds: 0
184185
name: coder
185186
ports:
186187
- containerPort: 8080
@@ -191,6 +192,7 @@ spec:
191192
path: /healthz
192193
port: http
193194
scheme: HTTP
195+
initialDelaySeconds: 0
194196
resources:
195197
limits:
196198
cpu: 2000m

helm/coder/tests/testdata/env_from_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ spec:
181181
path: /healthz
182182
port: http
183183
scheme: HTTP
184+
initialDelaySeconds: 0
184185
name: coder
185186
ports:
186187
- containerPort: 8080
@@ -191,6 +192,7 @@ spec:
191192
path: /healthz
192193
port: http
193194
scheme: HTTP
195+
initialDelaySeconds: 0
194196
resources:
195197
limits:
196198
cpu: 2000m

helm/coder/tests/testdata/extra_templates.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ spec:
178178
path: /healthz
179179
port: http
180180
scheme: HTTP
181+
initialDelaySeconds: 0
181182
name: coder
182183
ports:
183184
- containerPort: 8080
@@ -188,6 +189,7 @@ spec:
188189
path: /healthz
189190
port: http
190191
scheme: HTTP
192+
initialDelaySeconds: 0
191193
resources:
192194
limits:
193195
cpu: 2000m

helm/coder/tests/testdata/extra_templates_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ spec:
178178
path: /healthz
179179
port: http
180180
scheme: HTTP
181+
initialDelaySeconds: 0
181182
name: coder
182183
ports:
183184
- containerPort: 8080
@@ -188,6 +189,7 @@ spec:
188189
path: /healthz
189190
port: http
190191
scheme: HTTP
192+
initialDelaySeconds: 0
191193
resources:
192194
limits:
193195
cpu: 2000m

helm/coder/tests/testdata/labels_annotations.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ spec:
177177
path: /healthz
178178
port: http
179179
scheme: HTTP
180+
initialDelaySeconds: 0
180181
name: coder
181182
ports:
182183
- containerPort: 8080
@@ -187,6 +188,7 @@ spec:
187188
path: /healthz
188189
port: http
189190
scheme: HTTP
191+
initialDelaySeconds: 0
190192
resources:
191193
limits:
192194
cpu: 2000m

helm/coder/tests/testdata/labels_annotations_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ spec:
177177
path: /healthz
178178
port: http
179179
scheme: HTTP
180+
initialDelaySeconds: 0
180181
name: coder
181182
ports:
182183
- containerPort: 8080
@@ -187,6 +188,7 @@ spec:
187188
path: /healthz
188189
port: http
189190
scheme: HTTP
191+
initialDelaySeconds: 0
190192
resources:
191193
limits:
192194
cpu: 2000m

helm/coder/tests/testdata/partial_resources.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ spec:
169169
path: /healthz
170170
port: http
171171
scheme: HTTP
172+
initialDelaySeconds: 0
172173
name: coder
173174
ports:
174175
- containerPort: 8080
@@ -179,6 +180,7 @@ spec:
179180
path: /healthz
180181
port: http
181182
scheme: HTTP
183+
initialDelaySeconds: 0
182184
resources:
183185
requests:
184186
cpu: 1500m

helm/coder/tests/testdata/partial_resources_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ spec:
169169
path: /healthz
170170
port: http
171171
scheme: HTTP
172+
initialDelaySeconds: 0
172173
name: coder
173174
ports:
174175
- containerPort: 8080
@@ -179,6 +180,7 @@ spec:
179180
path: /healthz
180181
port: http
181182
scheme: HTTP
183+
initialDelaySeconds: 0
182184
resources:
183185
requests:
184186
cpu: 1500m

helm/coder/tests/testdata/prometheus.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ spec:
170170
path: /healthz
171171
port: http
172172
scheme: HTTP
173+
initialDelaySeconds: 0
173174
name: coder
174175
ports:
175176
- containerPort: 8080
@@ -183,6 +184,7 @@ spec:
183184
path: /healthz
184185
port: http
185186
scheme: HTTP
187+
initialDelaySeconds: 0
186188
resources:
187189
limits:
188190
cpu: 2000m

helm/coder/tests/testdata/prometheus_coder.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ spec:
170170
path: /healthz
171171
port: http
172172
scheme: HTTP
173+
initialDelaySeconds: 0
173174
name: coder
174175
ports:
175176
- containerPort: 8080
@@ -183,6 +184,7 @@ spec:
183184
path: /healthz
184185
port: http
185186
scheme: HTTP
187+
initialDelaySeconds: 0
186188
resources:
187189
limits:
188190
cpu: 2000m

0 commit comments

Comments
 (0)