• k8s-merge-robot's avatar
    Merge pull request #29187 from soltysh/multiversion_kubectl · 0fbd60fa
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    Create client from API version passed in config or use default
    
    When creating a client read the `GroupVersion` value passed in the `restclient.Config`. If the passed `GroupVersion` does not match current group or is not enabled fallback to default `GroupVersion` for that group.
    
    This PR should allow accessing `ScheduledJob` properly in `batch/v2alpha1`.
    
    @smarterclayton @deads2k @caesarxuchao @lavalamp ptal
    0fbd60fa
extensions.go 3.42 KB