• Kubernetes Submit Queue's avatar
    Merge pull request #68080 from caesarxuchao/deprecation-notice-storage-versions · ad1721e2
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.
    
    Deprecation notice of the storage-versions flag
    
    This PR deprecates the `--storage-versions` flag of kube-apiserver. The flag allows user to change the API version the content in etcd will be serialized to.
    
    The flag provides unnecessary flexibility, with the side-effect of making kube-apiserver upgrades/downgrades hard to reason about. Specifically, Kubernetes follows the 4-step API version deprecation [policy](https://kubernetes.io/docs/reference/using-api/deprecation-policy/), which makes upgrades/downgrades across minor versions safe as long as all the data in etcd is encoded to the default storage versions. However, if users can specify their own storage versions, then the safety of each upgrade/downgrade needs to be analyzed case-by-case.
    
    ```release-note
    Action required: The --storage-versions flag of kube-apiserver is deprecated. Please omit this flag to ensure the default storage versions are used. Otherwise the cluster is not safe to upgrade to a version newer than 1.12. This flag will be removed in 1.13.
    ```
    
    /assign @deads2k @liggitt @lavalamp @enj 
    /sig api-machinery
    ad1721e2
Name
Last commit
Last update
..
admission Loading commit data...
authenticator Loading commit data...
authorizer Loading commit data...
options Loading commit data...
server Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
default_storage_factory_builder.go Loading commit data...
doc.go Loading commit data...