Skip to content

Commit e36bf12

Browse files
committed
add version check
1 parent 9fb8cd0 commit e36bf12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/k8s/utils.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ func EnsureComponent(
278278
return errors.Wrap(err, "failed to ensure statefulset")
279279
}
280280

281+
if cr.CompareVersion("0.12.0") < 0 {
282+
return nil
283+
}
284+
281285
podSpec := c.PodSpec()
282286
if podSpec == nil || podSpec.PodDisruptionBudget == nil {
283287
return nil

0 commit comments

Comments
 (0)