-
Notifications
You must be signed in to change notification settings - Fork 39.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CollisionCount to StatefulSetStatus for collision avoidance #49909
Comments
@liyinan926
Note: Method 1 will trigger an email to the group. You can find the group list here and label list here. |
/sig apps |
/assign @liyinan926 |
This is the first step towards fixing kubernetes#49909. The field will be used for collision avoidance when the StatefulSet controller creates name for the newest ControllerRevision, which will be done in a subsequent PR.
This is the first step towards fixing kubernetes#49909. The field will be used for collision avoidance when the StatefulSet controller creates name for the newest ControllerRevision, which will be done in a subsequent PR.
Automatic merge from submit-queue Added field CollisionCount to StatefulSetStatus **What this PR does / why we need it**: This PR added a new field `CollisionCount` into `StatefulSetStatus`, similarly in terms of both name and semantics to the existing `CollisionCount` field in `DaemonSetStatus`. The field will be used for collision avoidance when the `StatefulSet` controller creates name for the newest ControllerRevision, which will be done in another PR. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: #49909. **Special notes for your reviewer**: A second PR will include logic that actually uses the field for collision avoidance. **Release note**: ```release-note Added field CollisionCount to StatefulSetStatus in both apps/v1beta1 and apps/v1beta2 ```
Automatic merge from submit-queue Use CollisionCount for collision avoidance in StatefulSet controller **What this PR does / why we need it**: This PR uses the newly added `CollisionCount` in `StatefulSetStatus` for name collision avoidance when the `StatefulSet` controller creates `ControllerRevision`s. The `CreateControllerRevision` method of the `ControllerHistory` interface was augmented to use a user-specified `collisionCount` instead of the internal probe that always starts with 0. The `StatefulSet` controller uses the `CreateControllerRevision` to create `ControllerRevision`s and when it calls it, it passes in the `CollisionCount` of the `StatefulSet` it manipulates. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #49909. **Special notes for your reviewer**: /assign @kow3ns **Release note**: ```release-note Use CollisionCount for collision avoidance when creating ControllerRevisions in StatefulSet controller ```
Automatic merge from submit-queue Added field CollisionCount to StatefulSetStatus **What this PR does / why we need it**: This PR added a new field `CollisionCount` into `StatefulSetStatus`, similarly in terms of both name and semantics to the existing `CollisionCount` field in `DaemonSetStatus`. The field will be used for collision avoidance when the `StatefulSet` controller creates name for the newest ControllerRevision, which will be done in another PR. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: kubernetes#49909. **Special notes for your reviewer**: A second PR will include logic that actually uses the field for collision avoidance. **Release note**: ```release-note Added field CollisionCount to StatefulSetStatus in both apps/v1beta1 and apps/v1beta2 ```
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
The
Deployment
controller uses the fieldCollisionCount
as a collision avoidance mechanism when it needs to create name for the newestReplicaSet
. Similarly, theDaemonSet
controller usesCollisionCount
as a collision avoidance mechanism when it needs to create name for the newestControllerRevision
. Like theDaemonSet
controller, theStatefulSet
controller also createsControllerRevision
, but does not useCollisionCount
for collision avoidance.What you expected to happen:
The field
CollisionCount
should be added toStatefulSetStatus
and used for collision avoidance like how theDaemonSet
controller uses the field when creating name for the newestControllerRevision
.How to reproduce it (as minimally and precisely as possible):
N/A.
Anything else we need to know?:
N/A.
Environment: N/A
kubectl version
):uname -a
):The text was updated successfully, but these errors were encountered: