- 
                Notifications
    
You must be signed in to change notification settings  - Fork 4.2k
 
VPA: (InPlaceOrRecreate) Allow admission-controller to validate in-place spec #7961
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
VPA: (InPlaceOrRecreate) Allow admission-controller to validate in-place spec #7961
Conversation
| 
           Depends on #7934 to merge for unit tests to pass.  | 
    
| 
           /hold  | 
    
| 
           The one test failure seems to be legitimate  | 
    
6bff3ef    to
    8920984      
    Compare
  
    | 
           /cc @raywainman  | 
    
        
          
                vertical-pod-autoscaler/pkg/admission-controller/resource/vpa/handler_test.go
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                vertical-pod-autoscaler/pkg/admission-controller/resource/vpa/handler_test.go
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | 
           2 quick test nits and then this is good to go, thanks Max!  | 
    
Only allow VPA objects with InPlaceOrRecreate update mode to be created if InPlaceOrRecreate feature gate is enabled. If a VPA object already exists with this mode on, and the feature gate is disabled, this prevents further objects to be created with InPlaceOrRecreate, but this does not prevent the existing InPlaceOrRecreate VPA objects with from being modified. Signed-off-by: Max Cao <[email protected]>
8920984    to
    a0cf017      
    Compare
  
    | 
           /lgtm  | 
    
| 
           /approve  | 
    
| 
           [APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maxcao13, raywainman 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   | 
    
| 
           /unhold  | 
    
What type of PR is this?
/kind feature
What this PR does / why we need it:
Only allow VPA objects with
InPlaceOrRecreateupdate mode to be created ifInPlaceOrRecreatefeature gate is enabled. If a VPA object already exists with this mode on, and the feature gate is disabled, this prevents further objects to be created withInPlaceOrRecreate, but this does not prevent the existingInPlaceOrRecreateVPA objects with from being modified.Which issue(s) this PR fixes:
Part of AEP-4016 (InPlaceVerticalScaling/InPlaceOrRecreate)
This PR is part of the larger feature PR in #7673
Depends on: #7934
Note that this PR is merging into the in-place-updates feature branch, which will be merged when this feature is all reviewed and ready.
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: