Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/code-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: Static code analysis and unit testing
permissions:
contents: read
on:
push:
paths-ignore:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

name: E2E tests
permissions:
contents: read

on:
pull_request:
Expand Down
5 changes: 5 additions & 0 deletions controllers/redis_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ func (r *RedkeyClusterReconciler) doSlowUpgradeResharding(ctx context.Context, r

// RollingUpdate
r.logInfo(redkeyCluster.NamespacedName(), "Executing partition Rolling Update", "partition", currentPartition)
if currentPartition < 0 || currentPartition > math.MaxInt32 {
err = fmt.Errorf("invalid partition index %d: must be between 0 and %d", currentPartition, int(math.MaxInt32))
r.logError(redkeyCluster.NamespacedName(), err, "Partition value out of int32 range")
return err
}
localPartition := int32(currentPartition)
existingStatefulSet.Spec.UpdateStrategy = v1.StatefulSetUpdateStrategy{
Type: v1.RollingUpdateStatefulSetStrategyType,
Expand Down
Loading