Skip to content

Commit

Permalink
fix: nil pointer dereference in conversion webhook
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer committed Feb 26, 2024
1 parent df2df6d commit 697c4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1beta1/redissentinel_conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (dst *RedisSentinel) ConvertFrom(srcRaw conversion.Hub) error {
}
// LivenessProbe
if src.Spec.LivenessProbe != nil {
dst.Spec.ReadinessProbe = &Probe{}
dst.Spec.LivenessProbe = &Probe{}
dst.Spec.LivenessProbe.Probe = src.Spec.LivenessProbe.Probe
}
// Sidecars
Expand Down

0 comments on commit 697c4f9

Please sign in to comment.