- 
                Notifications
    You must be signed in to change notification settings 
- Fork 41.6k
Remove ability to re-enable serving deprecated policyv1beta1 APIs #117666
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
Conversation
| This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. | 
| /test pull-kubernetes-integration | 
    
      
        1 similar comment
      
    
  
    | /test pull-kubernetes-integration | 
| removal of serving lgtm, integration test failures are related. some of those are testing compatibility with v1beta1 data, which we can still encounter reading from etcd. | 
3bc5cf3    to
    91e1fd9      
    Compare
  
    | /retest-required | 
| /remove-sig api-machinery | 
| /triage accepted | 
| val, _ := json.Marshal(betaPDB) | ||
| _, err := etcdClient.Put(ctx, key, string(val)) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to match actual API server behavior, this should marshal to protobuf to persist in etcd, not json.
something like this could work:
protoSerializer := protobuf.NewSerializer(legacyscheme.Scheme, legacyscheme.Scheme)
buffer := bytes.NewBuffer()
if err := protoSerializer.Encode(betaPDB, buffer); err != nil {
  return err
}
... etcdClient.Put(ctx, key, string(buffer.String()))a1c2cf6    to
    c8f4cf0      
    Compare
  
    | /test pull-kubernetes-unit | 
| /test pull-kubernetes-e2e-kind-ipv6 | 
| /lgtm | 
| LGTM label has been added. Git tree hash: b539854f046d1e9cea00275010d553f4c3395a61 | 
| @deads2k it's ready for review. can you take a quick look? | 
| /approve | 
| [APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carlory, liggitt The full list of commands accepted by this bot can be found here. The pull request process is described here 
Needs approval from an approver in each of these files:
 
 Approvers can indicate their approval by writing  | 
| Is this change right? Even if it's a bug fix, we might need to update that deprecation guide to clarify what happened. | 
| @sftim sorry, I forgot to update doc. I will raise a website pr to fix later. | 
| 
 This is cleaning up dead code that was already disabled and announced as removed in 1.25 (https://kubernetes.io/docs/reference/using-api/deprecation-guide/#poddisruptionbudget-v125) This change is not user-facing, so I dropped the release note | 
What type of PR is this?
/kind cleanup
/kind api-change
What this PR does / why we need it:
Removes ability to re-enable serving deprecated policyv1beta1 types
FYI: https://kubernetes.io/docs/reference/using-api/#api-versioning
Which issue(s) this PR fixes:
ref #117659
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: