Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
K
k3s
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Registry
    • Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Jacklull
  • k3s
  • Repository

Switch branch/tag
  • k3s
  • pkg
  • controller
  • history
  • controller_history_test.go
Find file
BlameHistoryPermalink
  • Ryan McNamara's avatar
    Stably sort controllerrevisions · 0aae852a
    Ryan McNamara authored Aug 01, 2018
    Fixes https://github.com/kubernetes/kubernetes/issues/61998
    
    There are times when multiple "equal" controllerrevisions are created with
    the same revision number. When this happens and this is the case for the
    largest revision number, the statefulset controller will periodically
    select one of the maximal controllerrevisions to be the target of the
    underlying statefulset. The selection happens here: https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/statefulset/stateful_set_control.go#L212.
    Prior to this change this selection was random as the sort was not
    stable, which caused the pods of a stable set to continually roll.
    0aae852a
controller_history_test.go 48.9 KB
EditWeb IDE

Replace controller_history_test.go

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.