• juanvallejo's avatar
    Add restclientconfig helper fn for parsing timeout · 885b7a6d
    juanvallejo authored
    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).
    885b7a6d
helpers.go 1.22 KB