• Kubernetes Submit Queue's avatar
    Merge pull request #37708 from… · 4d467de5
    Kubernetes Submit Queue authored
    Merge pull request #37708 from juanvallejo/jvallejo/add-restclient-config-helper-for-parsing-global-timeout
    
    Automatic merge from submit-queue (batch tested with PRs 37708, 34410)
    
    Add restclientconfig helper fn for parsing timeout
    
    Related downstream PR: https://github.com/openshift/origin/pull/12062 (example of use-case for this patch)
    
    **Release note**:
    ```release-note
    release-note-none
    ```
    
    This patch adds a package `pkg/client/unversioned/clientcmd/util` and
    defines a `ParseTimeout` helper function for parsing time from a
    user-defined string. This allows code re-use in other packages that
    require the creation of a new restclient (and therefore must set the
    `--global-timeout` flag value manually).
    
    @fabianofranz @kubernetes/cli-review
    4d467de5
Name
Last commit
Last update
..
cache Loading commit data...
chaosclient Loading commit data...
clientset_generated Loading commit data...
conditions Loading commit data...
informers/informers_generated Loading commit data...
leaderelection Loading commit data...
listers Loading commit data...
metrics Loading commit data...
record Loading commit data...
restclient Loading commit data...
retry Loading commit data...
testdata Loading commit data...
testing Loading commit data...
transport Loading commit data...
typed Loading commit data...
unversioned Loading commit data...
OWNERS Loading commit data...