You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
t.Run("Probes are overridden", func(t*testing.T) {
203
+
t.Run("Liveness probe", func(t*testing.T) {
204
+
livenessProbe:=mergedContainer.LivenessProbe
205
+
206
+
assert.NotNil(t, livenessProbe)
207
+
assert.Equal(t, int32(15), livenessProbe.InitialDelaySeconds, "value is specified in override and so should be used.")
208
+
assert.Equal(t, int32(20), livenessProbe.FailureThreshold, "value is not specified in override so the original should be used.")
209
+
assert.Equal(t, []string{"exec", "command", "override"}, livenessProbe.Exec.Command, "value is not specified in override so the original should be used.")
210
+
})
211
+
t.Run("Readiness probe", func(t*testing.T) {
212
+
readinessProbe:=mergedContainer.ReadinessProbe
213
+
assert.NotNil(t, readinessProbe)
214
+
assert.Equal(t, int32(5), readinessProbe.InitialDelaySeconds, "value is specified in override and so should be used.")
215
+
assert.Equal(t, int32(6), readinessProbe.FailureThreshold, "value is not specified in override so the original should be used.")
216
+
assert.Equal(t, []string{"exec", "command", "readiness", "override"}, readinessProbe.Exec.Command, "value is not specified in override so the original should be used.")
217
+
})
218
+
})
219
+
183
220
t.Run("Volume Devices are overridden", func(t*testing.T) {
t.Run("Probes are not overridden", func(t*testing.T) {
283
+
t.Run("Liveness probe", func(t*testing.T) {
284
+
livenessProbe:=mergedContainer.LivenessProbe
285
+
286
+
assert.NotNil(t, livenessProbe)
287
+
assert.Equal(t, int32(10), livenessProbe.InitialDelaySeconds, "value is not specified in override so the original should be used.")
288
+
assert.Equal(t, int32(20), livenessProbe.FailureThreshold, "value is not specified in override so the original should be used.")
289
+
assert.Equal(t, []string{"exec", "command", "liveness"}, livenessProbe.Exec.Command, "value is not specified in override so the original should be used.")
290
+
})
291
+
t.Run("Readiness probe", func(t*testing.T) {
292
+
readinessProbe:=mergedContainer.ReadinessProbe
293
+
assert.NotNil(t, readinessProbe)
294
+
assert.Equal(t, int32(20), readinessProbe.InitialDelaySeconds, "value is not specified in override so the original should be used.")
295
+
assert.Equal(t, int32(30), readinessProbe.FailureThreshold, "value is not specified in override so the original should be used.")
296
+
assert.Equal(t, []string{"exec", "command", "readiness"}, readinessProbe.Exec.Command, "value is not specified in override so the original should be used.")
297
+
})
298
+
})
299
+
245
300
t.Run("Volume Devices are not overridden", func(t*testing.T) {
0 commit comments