File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ kind : Fixed
2
+ body : panic when create object with .spec.pause is true
3
+ time : 2025-01-27T14:10:03.497565+08:00
Original file line number Diff line number Diff line change @@ -359,8 +359,8 @@ func (r *Reconciler) waitForStatefulSetToScale(
359
359
360
360
func shouldIgnoreDatabaseChange (database * resources.DatabaseBuilder ) resources.IgnoreChangesFunction {
361
361
return func (oldObj , newObj runtime.Object ) bool {
362
- if _ , ok := newObj .(* appsv1.StatefulSet ); ok {
363
- if database .Spec .Pause && * oldObj .( * appsv1. StatefulSet ) .Spec .Replicas == 0 {
362
+ if statefulSet , ok := oldObj .(* appsv1.StatefulSet ); ok {
363
+ if database .Spec .Pause && * statefulSet .Spec .Replicas == 0 {
364
364
return true
365
365
}
366
366
}
Original file line number Diff line number Diff line change @@ -292,8 +292,8 @@ func (r *Reconciler) waitForNodeSetsToProvisioned(
292
292
293
293
func shouldIgnoreStorageChange (storage * resources.StorageClusterBuilder ) resources.IgnoreChangesFunction {
294
294
return func (oldObj , newObj runtime.Object ) bool {
295
- if _ , ok := newObj .(* appsv1.StatefulSet ); ok {
296
- if storage .Spec .Pause && * oldObj .( * appsv1. StatefulSet ) .Spec .Replicas == 0 {
295
+ if statefulSet , ok := oldObj .(* appsv1.StatefulSet ); ok {
296
+ if storage .Spec .Pause && * statefulSet .Spec .Replicas == 0 {
297
297
return true
298
298
}
299
299
}
You can’t perform that action at this time.
0 commit comments