Skip to content

Add CollisionCount to StatefulSetStatus for collision avoidance #49909

@liyinan926

Description

@liyinan926

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug

What happened:
The Deployment controller uses the field CollisionCount as a collision avoidance mechanism when it needs to create name for the newest ReplicaSet. Similarly, the DaemonSet controller uses CollisionCount as a collision avoidance mechanism when it needs to create name for the newest ControllerRevision. Like the DaemonSet controller, the StatefulSet controller also creates ControllerRevision, but does not use CollisionCount for collision avoidance.

What you expected to happen:
The field CollisionCount should be added to StatefulSetStatus and used for collision avoidance like how the DaemonSet controller uses the field when creating name for the newest ControllerRevision.

How to reproduce it (as minimally and precisely as possible):
N/A.

Anything else we need to know?:
N/A.

Environment: N/A

  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration**:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.sig/appsCategorizes an issue or PR as relevant to SIG Apps.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions