Skip to content

Commit

Permalink
fix: nil pointer dereference in conversion webhook (OT-CONTAINER-KIT#787
Browse files Browse the repository at this point in the history
)

Signed-off-by: drivebyer <[email protected]>
Signed-off-by: Matt Robinson <[email protected]>
  • Loading branch information
drivebyer authored and mattrobinsonsre committed Jul 11, 2024
1 parent 6a91273 commit acabf06
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 acabf06

Please sign in to comment.