diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 443b06241f053..8deef7d6bcbc8 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -2445,6 +2445,11 @@ "ImportPath": "github.com/liggitt/tabwriter", "Rev": "89fcab3d43de07060e4fd4c1547430ed57e87f24" }, + { + "ImportPath": "github.com/lithammer/dedent", + "Comment": "v1.1.0", + "Rev": "8478954c3bc893cf36c5ee7c822266b993a3b3ee" + }, { "ImportPath": "github.com/magiconair/properties", "Comment": "v1.7.0-4-g61b492c03cf472", @@ -3007,11 +3012,6 @@ "Comment": "v0.1.0-196-g09693a8743ba5e", "Rev": "09693a8743ba5ee58c58c1b1e8a4abd17af00d45" }, - { - "ImportPath": "github.com/renstrom/dedent", - "Comment": "v1.0.0-3-g020d11c3b9c0c7", - "Rev": "020d11c3b9c0c7a3c2efcc8e5cf5b9ef7bcea21f" - }, { "ImportPath": "github.com/robfig/cron", "Comment": "v1-53-gdf38d32658d878", diff --git a/Godeps/LICENSES b/Godeps/LICENSES index dc57e2adfb292..a1bac04fd562d 100644 --- a/Godeps/LICENSES +++ b/Godeps/LICENSES @@ -74779,6 +74779,35 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================================================ +================================================================================ += vendor/github.com/lithammer/dedent licensed under: = + +The MIT License (MIT) + +Copyright (c) 2018 Peter Lithammer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + += vendor/github.com/lithammer/dedent/LICENSE 2f1370f16b018459285c6972a934ba0e +================================================================================ + + ================================================================================ = vendor/github.com/magiconair/properties licensed under: = @@ -88519,35 +88548,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================================================ -================================================================================ -= vendor/github.com/renstrom/dedent licensed under: = - -The MIT License (MIT) - -Copyright (c) 2015 Peter Renström - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -= vendor/github.com/renstrom/dedent/LICENSE 285693e07a6e1fd790cb3f3b8b5127db -================================================================================ - - ================================================================================ = vendor/github.com/Rican7/retry licensed under: = diff --git a/cmd/kubeadm/.import-restrictions b/cmd/kubeadm/.import-restrictions index b2ceea03ec9fd..29b9bdae99515 100644 --- a/cmd/kubeadm/.import-restrictions +++ b/cmd/kubeadm/.import-restrictions @@ -163,7 +163,7 @@ "github.com/prometheus/procfs", "github.com/PuerkitoBio/purell", "github.com/PuerkitoBio/urlesc", - "github.com/renstrom/dedent", + "github.com/lithammer/dedent", "github.com/russross/blackfriday", "github.com/shurcooL/sanitized_anchor_name", "github.com/sirupsen/logrus", diff --git a/cmd/kubeadm/app/cmd/BUILD b/cmd/kubeadm/app/cmd/BUILD index 32f48674e529d..a7f0e206fddff 100644 --- a/cmd/kubeadm/app/cmd/BUILD +++ b/cmd/kubeadm/app/cmd/BUILD @@ -65,8 +65,8 @@ go_library( "//staging/src/k8s.io/client-go/util/cert:go_default_library", "//staging/src/k8s.io/cluster-bootstrap/token/api:go_default_library", "//staging/src/k8s.io/cluster-bootstrap/token/util:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", "//vendor/github.com/pkg/errors:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", "//vendor/github.com/spf13/cobra:go_default_library", "//vendor/github.com/spf13/pflag:go_default_library", "//vendor/k8s.io/klog:go_default_library", @@ -106,8 +106,8 @@ go_test( "//staging/src/k8s.io/client-go/kubernetes/fake:go_default_library", "//staging/src/k8s.io/client-go/testing:go_default_library", "//staging/src/k8s.io/client-go/tools/clientcmd:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", "//vendor/github.com/pkg/errors:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", "//vendor/github.com/spf13/cobra:go_default_library", "//vendor/k8s.io/utils/exec:go_default_library", "//vendor/k8s.io/utils/exec/testing:go_default_library", diff --git a/cmd/kubeadm/app/cmd/cmd.go b/cmd/kubeadm/app/cmd/cmd.go index c97f3166b1fb9..a80c30a2e923c 100644 --- a/cmd/kubeadm/app/cmd/cmd.go +++ b/cmd/kubeadm/app/cmd/cmd.go @@ -19,7 +19,7 @@ package cmd import ( "io" - "github.com/renstrom/dedent" + "github.com/lithammer/dedent" "github.com/spf13/cobra" "github.com/spf13/pflag" "k8s.io/kubernetes/cmd/kubeadm/app/cmd/alpha" diff --git a/cmd/kubeadm/app/cmd/completion.go b/cmd/kubeadm/app/cmd/completion.go index 43d27abf8515d..8a0429aa3ae56 100644 --- a/cmd/kubeadm/app/cmd/completion.go +++ b/cmd/kubeadm/app/cmd/completion.go @@ -20,8 +20,8 @@ import ( "bytes" "io" + "github.com/lithammer/dedent" "github.com/pkg/errors" - "github.com/renstrom/dedent" "github.com/spf13/cobra" "k8s.io/klog" @@ -50,7 +50,7 @@ var ( The shell code must be evaluated to provide interactive completion of kubeadm commands. This can be done by sourcing it from the .bash_profile. - + Note: this requires the bash-completion framework. To install it on Mac use homebrew: diff --git a/cmd/kubeadm/app/cmd/config.go b/cmd/kubeadm/app/cmd/config.go index e4545c9f5c2be..ca7d28c70b987 100644 --- a/cmd/kubeadm/app/cmd/config.go +++ b/cmd/kubeadm/app/cmd/config.go @@ -23,8 +23,8 @@ import ( "io/ioutil" "strings" + "github.com/lithammer/dedent" "github.com/pkg/errors" - "github.com/renstrom/dedent" "github.com/spf13/cobra" flag "github.com/spf13/pflag" "k8s.io/klog" diff --git a/cmd/kubeadm/app/cmd/config_test.go b/cmd/kubeadm/app/cmd/config_test.go index 0a7a9f8fc2e0d..cacf32d21010b 100644 --- a/cmd/kubeadm/app/cmd/config_test.go +++ b/cmd/kubeadm/app/cmd/config_test.go @@ -28,7 +28,7 @@ import ( "strings" "testing" - "github.com/renstrom/dedent" + "github.com/lithammer/dedent" "github.com/spf13/cobra" kubeadmapiv1beta1 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta1" "k8s.io/kubernetes/cmd/kubeadm/app/componentconfigs" diff --git a/cmd/kubeadm/app/cmd/init.go b/cmd/kubeadm/app/cmd/init.go index 9c6764d7f9119..6272382cb78c6 100644 --- a/cmd/kubeadm/app/cmd/init.go +++ b/cmd/kubeadm/app/cmd/init.go @@ -25,8 +25,8 @@ import ( "strings" "text/template" + "github.com/lithammer/dedent" "github.com/pkg/errors" - "github.com/renstrom/dedent" "github.com/spf13/cobra" flag "github.com/spf13/pflag" "k8s.io/apimachinery/pkg/util/sets" diff --git a/cmd/kubeadm/app/cmd/join.go b/cmd/kubeadm/app/cmd/join.go index 69034ccff46f9..1a90155c71910 100644 --- a/cmd/kubeadm/app/cmd/join.go +++ b/cmd/kubeadm/app/cmd/join.go @@ -24,8 +24,8 @@ import ( "path/filepath" "text/template" + "github.com/lithammer/dedent" "github.com/pkg/errors" - "github.com/renstrom/dedent" "github.com/spf13/cobra" flag "github.com/spf13/pflag" "k8s.io/apimachinery/pkg/util/sets" diff --git a/cmd/kubeadm/app/cmd/phases/BUILD b/cmd/kubeadm/app/cmd/phases/BUILD index ca17f2dc792ba..6313df275e860 100644 --- a/cmd/kubeadm/app/cmd/phases/BUILD +++ b/cmd/kubeadm/app/cmd/phases/BUILD @@ -48,8 +48,8 @@ go_library( "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library", "//staging/src/k8s.io/client-go/kubernetes:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", "//vendor/github.com/pkg/errors:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", "//vendor/github.com/spf13/pflag:go_default_library", "//vendor/k8s.io/klog:go_default_library", "//vendor/k8s.io/utils/exec:go_default_library", diff --git a/cmd/kubeadm/app/cmd/phases/waitcontrolplane.go b/cmd/kubeadm/app/cmd/phases/waitcontrolplane.go index b2983e17d8467..acf168606544f 100644 --- a/cmd/kubeadm/app/cmd/phases/waitcontrolplane.go +++ b/cmd/kubeadm/app/cmd/phases/waitcontrolplane.go @@ -23,8 +23,8 @@ import ( "text/template" "time" + "github.com/lithammer/dedent" "github.com/pkg/errors" - "github.com/renstrom/dedent" clientset "k8s.io/client-go/kubernetes" "k8s.io/klog" kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" diff --git a/cmd/kubeadm/app/cmd/reset.go b/cmd/kubeadm/app/cmd/reset.go index e8c9986e24c54..b90e8f7dd0528 100644 --- a/cmd/kubeadm/app/cmd/reset.go +++ b/cmd/kubeadm/app/cmd/reset.go @@ -25,8 +25,8 @@ import ( "path/filepath" "strings" + "github.com/lithammer/dedent" "github.com/pkg/errors" - "github.com/renstrom/dedent" "github.com/spf13/cobra" "k8s.io/apimachinery/pkg/util/sets" clientset "k8s.io/client-go/kubernetes" diff --git a/cmd/kubeadm/app/cmd/reset_test.go b/cmd/kubeadm/app/cmd/reset_test.go index d7e44cad57818..110f5591ac358 100644 --- a/cmd/kubeadm/app/cmd/reset_test.go +++ b/cmd/kubeadm/app/cmd/reset_test.go @@ -23,7 +23,7 @@ import ( "path/filepath" "testing" - "github.com/renstrom/dedent" + "github.com/lithammer/dedent" clientsetfake "k8s.io/client-go/kubernetes/fake" kubeadmapiv1beta1 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta1" diff --git a/cmd/kubeadm/app/cmd/token.go b/cmd/kubeadm/app/cmd/token.go index 9e28e9000d642..3af871ca9d523 100644 --- a/cmd/kubeadm/app/cmd/token.go +++ b/cmd/kubeadm/app/cmd/token.go @@ -24,8 +24,8 @@ import ( "text/tabwriter" "time" + "github.com/lithammer/dedent" "github.com/pkg/errors" - "github.com/renstrom/dedent" "github.com/spf13/cobra" "k8s.io/klog" diff --git a/cmd/kubeadm/app/phases/kubeconfig/BUILD b/cmd/kubeadm/app/phases/kubeconfig/BUILD index 8df7d1038ec2e..47cdcdd7baada 100644 --- a/cmd/kubeadm/app/phases/kubeconfig/BUILD +++ b/cmd/kubeadm/app/phases/kubeconfig/BUILD @@ -54,6 +54,6 @@ go_test( "//cmd/kubeadm/test/kubeconfig:go_default_library", "//staging/src/k8s.io/client-go/tools/clientcmd:go_default_library", "//staging/src/k8s.io/client-go/tools/clientcmd/api:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", ], ) diff --git a/cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go b/cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go index 2d278d990f3f9..3fe9751f4a383 100644 --- a/cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go +++ b/cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go @@ -27,7 +27,7 @@ import ( "reflect" "testing" - "github.com/renstrom/dedent" + "github.com/lithammer/dedent" "k8s.io/client-go/tools/clientcmd" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" diff --git a/cmd/kubeadm/app/preflight/BUILD b/cmd/kubeadm/app/preflight/BUILD index 39578e47cdc61..ca9ab7fea68d2 100644 --- a/cmd/kubeadm/app/preflight/BUILD +++ b/cmd/kubeadm/app/preflight/BUILD @@ -49,8 +49,8 @@ go_test( "//cmd/kubeadm/app/constants:go_default_library", "//cmd/kubeadm/app/util/runtime:go_default_library", "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", "//vendor/github.com/pkg/errors:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", "//vendor/k8s.io/utils/exec:go_default_library", "//vendor/k8s.io/utils/exec/testing:go_default_library", ], diff --git a/cmd/kubeadm/app/preflight/checks_test.go b/cmd/kubeadm/app/preflight/checks_test.go index 3ec7a790598a1..1198a0bd7605f 100644 --- a/cmd/kubeadm/app/preflight/checks_test.go +++ b/cmd/kubeadm/app/preflight/checks_test.go @@ -23,8 +23,8 @@ import ( "strings" "testing" + "github.com/lithammer/dedent" "github.com/pkg/errors" - "github.com/renstrom/dedent" "net/http" "os" diff --git a/cmd/kubeadm/app/util/config/BUILD b/cmd/kubeadm/app/util/config/BUILD index 738e33ab5809a..b7e20d9888b55 100644 --- a/cmd/kubeadm/app/util/config/BUILD +++ b/cmd/kubeadm/app/util/config/BUILD @@ -64,8 +64,8 @@ go_test( "//staging/src/k8s.io/apimachinery/pkg/util/version:go_default_library", "//staging/src/k8s.io/client-go/kubernetes:go_default_library", "//staging/src/k8s.io/client-go/kubernetes/fake:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", "//vendor/github.com/pmezard/go-difflib/difflib:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", ], ) diff --git a/cmd/kubeadm/app/util/config/common_test.go b/cmd/kubeadm/app/util/config/common_test.go index 08e0158cc5b80..405da847284ae 100644 --- a/cmd/kubeadm/app/util/config/common_test.go +++ b/cmd/kubeadm/app/util/config/common_test.go @@ -22,7 +22,7 @@ import ( "os" "testing" - "github.com/renstrom/dedent" + "github.com/lithammer/dedent" kubeadmapiv1beta1 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta1" "k8s.io/kubernetes/cmd/kubeadm/app/constants" diff --git a/cmd/kubeadm/test/BUILD b/cmd/kubeadm/test/BUILD index 53a4ff8911df6..4c040da8ec9b6 100644 --- a/cmd/kubeadm/test/BUILD +++ b/cmd/kubeadm/test/BUILD @@ -16,7 +16,7 @@ go_library( "//cmd/kubeadm/app/util/certs:go_default_library", "//cmd/kubeadm/app/util/config:go_default_library", "//cmd/kubeadm/app/util/pkiutil:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", ], ) diff --git a/cmd/kubeadm/test/cmd/BUILD b/cmd/kubeadm/test/cmd/BUILD index 50ed3737adac9..4d4644fa3d27d 100644 --- a/cmd/kubeadm/test/cmd/BUILD +++ b/cmd/kubeadm/test/cmd/BUILD @@ -37,8 +37,8 @@ go_test( "//cmd/kubeadm/app/phases/certs:go_default_library", "//cmd/kubeadm/app/util/pkiutil:go_default_library", "//cmd/kubeadm/test:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", "//vendor/github.com/pkg/errors:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", "//vendor/sigs.k8s.io/yaml:go_default_library", ], ) diff --git a/cmd/kubeadm/test/cmd/init_test.go b/cmd/kubeadm/test/cmd/init_test.go index 780d50a8ca71b..c96a21e3e52f7 100644 --- a/cmd/kubeadm/test/cmd/init_test.go +++ b/cmd/kubeadm/test/cmd/init_test.go @@ -21,8 +21,8 @@ import ( "strings" "testing" + "github.com/lithammer/dedent" "github.com/pkg/errors" - "github.com/renstrom/dedent" "k8s.io/kubernetes/cmd/kubeadm/app/constants" "k8s.io/kubernetes/cmd/kubeadm/app/phases/certs" "k8s.io/kubernetes/cmd/kubeadm/app/util/pkiutil" diff --git a/cmd/kubeadm/test/util.go b/cmd/kubeadm/test/util.go index 0bbe47a53f5d6..6425fa9c530ab 100644 --- a/cmd/kubeadm/test/util.go +++ b/cmd/kubeadm/test/util.go @@ -24,7 +24,7 @@ import ( "path/filepath" "testing" - "github.com/renstrom/dedent" + "github.com/lithammer/dedent" kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" kubeadmapiv1beta1 "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta1" diff --git a/pkg/kubectl/cmd/cp/BUILD b/pkg/kubectl/cmd/cp/BUILD index b20c5ace5fdc9..160688835ed24 100644 --- a/pkg/kubectl/cmd/cp/BUILD +++ b/pkg/kubectl/cmd/cp/BUILD @@ -13,7 +13,7 @@ go_library( "//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library", "//staging/src/k8s.io/client-go/kubernetes:go_default_library", "//staging/src/k8s.io/client-go/rest:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", "//vendor/github.com/spf13/cobra:go_default_library", ], ) diff --git a/pkg/kubectl/cmd/cp/cp.go b/pkg/kubectl/cmd/cp/cp.go index 93366db0aea52..d93d5a6a08326 100644 --- a/pkg/kubectl/cmd/cp/cp.go +++ b/pkg/kubectl/cmd/cp/cp.go @@ -37,7 +37,7 @@ import ( "bytes" - "github.com/renstrom/dedent" + "github.com/lithammer/dedent" "github.com/spf13/cobra" ) diff --git a/pkg/kubectl/cmd/rollout/BUILD b/pkg/kubectl/cmd/rollout/BUILD index 8f7c389c0d947..62d61b1d3b29c 100644 --- a/pkg/kubectl/cmd/rollout/BUILD +++ b/pkg/kubectl/cmd/rollout/BUILD @@ -42,7 +42,7 @@ go_library( "//staging/src/k8s.io/client-go/dynamic:go_default_library", "//staging/src/k8s.io/client-go/tools/cache:go_default_library", "//staging/src/k8s.io/client-go/tools/watch:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", "//vendor/github.com/spf13/cobra:go_default_library", ], ) diff --git a/pkg/kubectl/cmd/rollout/rollout.go b/pkg/kubectl/cmd/rollout/rollout.go index f724a3063d38b..f5d172a404d80 100644 --- a/pkg/kubectl/cmd/rollout/rollout.go +++ b/pkg/kubectl/cmd/rollout/rollout.go @@ -17,7 +17,7 @@ limitations under the License. package rollout import ( - "github.com/renstrom/dedent" + "github.com/lithammer/dedent" "github.com/spf13/cobra" "k8s.io/cli-runtime/pkg/genericclioptions" @@ -33,7 +33,7 @@ var ( rolloutExample = templates.Examples(` # Rollback to the previous deployment kubectl rollout undo deployment/abc - + # Check the rollout status of a daemonset kubectl rollout status daemonset/foo`) diff --git a/pkg/proxy/healthcheck/BUILD b/pkg/proxy/healthcheck/BUILD index f94de593ce05a..d136039b211f9 100644 --- a/pkg/proxy/healthcheck/BUILD +++ b/pkg/proxy/healthcheck/BUILD @@ -20,7 +20,7 @@ go_library( "//staging/src/k8s.io/apimachinery/pkg/util/clock:go_default_library", "//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library", "//staging/src/k8s.io/client-go/tools/record:go_default_library", - "//vendor/github.com/renstrom/dedent:go_default_library", + "//vendor/github.com/lithammer/dedent:go_default_library", "//vendor/k8s.io/klog:go_default_library", ], ) diff --git a/pkg/proxy/healthcheck/healthcheck.go b/pkg/proxy/healthcheck/healthcheck.go index 5dc3f009ecb65..2c0a8c369c64f 100644 --- a/pkg/proxy/healthcheck/healthcheck.go +++ b/pkg/proxy/healthcheck/healthcheck.go @@ -25,7 +25,7 @@ import ( "sync/atomic" "time" - "github.com/renstrom/dedent" + "github.com/lithammer/dedent" "k8s.io/klog" "k8s.io/api/core/v1" diff --git a/vendor/BUILD b/vendor/BUILD index b06fe8509ddc0..670020a6ea2fd 100644 --- a/vendor/BUILD +++ b/vendor/BUILD @@ -299,6 +299,7 @@ filegroup( "//vendor/github.com/libopenstorage/openstorage/pkg/units:all-srcs", "//vendor/github.com/libopenstorage/openstorage/volume:all-srcs", "//vendor/github.com/liggitt/tabwriter:all-srcs", + "//vendor/github.com/lithammer/dedent:all-srcs", "//vendor/github.com/magiconair/properties:all-srcs", "//vendor/github.com/mailru/easyjson/buffer:all-srcs", "//vendor/github.com/mailru/easyjson/jlexer:all-srcs", @@ -343,7 +344,6 @@ filegroup( "//vendor/github.com/prometheus/procfs:all-srcs", "//vendor/github.com/quobyte/api:all-srcs", "//vendor/github.com/rancher/go-rancher/client:all-srcs", - "//vendor/github.com/renstrom/dedent:all-srcs", "//vendor/github.com/robfig/cron:all-srcs", "//vendor/github.com/rubiojr/go-vhd/vhd:all-srcs", "//vendor/github.com/russross/blackfriday:all-srcs", diff --git a/vendor/github.com/lithammer/dedent/.travis.yml b/vendor/github.com/lithammer/dedent/.travis.yml new file mode 100644 index 0000000000000..bc035e5e20253 --- /dev/null +++ b/vendor/github.com/lithammer/dedent/.travis.yml @@ -0,0 +1,11 @@ +language: go + +go: + - "1.6" + - "1.7" + - "1.8" + - "1.9" + - "1.10" + - "1.11" + +sudo: false diff --git a/vendor/github.com/renstrom/dedent/BUILD b/vendor/github.com/lithammer/dedent/BUILD similarity index 78% rename from vendor/github.com/renstrom/dedent/BUILD rename to vendor/github.com/lithammer/dedent/BUILD index 05ba115fc6fc7..dc71f001713fb 100644 --- a/vendor/github.com/renstrom/dedent/BUILD +++ b/vendor/github.com/lithammer/dedent/BUILD @@ -3,8 +3,8 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["dedent.go"], - importmap = "k8s.io/kubernetes/vendor/github.com/renstrom/dedent", - importpath = "github.com/renstrom/dedent", + importmap = "k8s.io/kubernetes/vendor/github.com/lithammer/dedent", + importpath = "github.com/lithammer/dedent", visibility = ["//visibility:public"], ) diff --git a/vendor/github.com/renstrom/dedent/LICENSE b/vendor/github.com/lithammer/dedent/LICENSE similarity index 96% rename from vendor/github.com/renstrom/dedent/LICENSE rename to vendor/github.com/lithammer/dedent/LICENSE index 66a9870fcf7fc..5da0fc612a3fa 100644 --- a/vendor/github.com/renstrom/dedent/LICENSE +++ b/vendor/github.com/lithammer/dedent/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 Peter Renström +Copyright (c) 2018 Peter Lithammer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/vendor/github.com/renstrom/dedent/README.md b/vendor/github.com/lithammer/dedent/README.md similarity index 51% rename from vendor/github.com/renstrom/dedent/README.md rename to vendor/github.com/lithammer/dedent/README.md index 35b5aa1341dbb..34926a1ccdb36 100644 --- a/vendor/github.com/renstrom/dedent/README.md +++ b/vendor/github.com/lithammer/dedent/README.md @@ -1,7 +1,7 @@ # Dedent -[![Build Status](https://travis-ci.org/renstrom/dedent.svg?branch=master)](https://travis-ci.org/renstrom/dedent) -[![Godoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/renstrom/dedent) +[![Build Status](https://travis-ci.org/lithammer/dedent.svg?branch=master)](https://travis-ci.org/lithammer/dedent) +[![Godoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/lithammer/dedent) Removes common leading whitespace from multiline strings. Inspired by [`textwrap.dedent`](https://docs.python.org/3/library/textwrap.html#textwrap.dedent) in Python. @@ -13,19 +13,20 @@ Imagine the following snippet that prints a multiline string. You want the inden package main import ( - "fmt" + "fmt" - "github.com/renstrom/dedent" + "github.com/lithammer/dedent" ) func main() { - s := `Lorem ipsum dolor sit amet, - consectetur adipiscing elit. - Curabitur justo tellus, facilisis nec efficitur dictum, - fermentum vitae ligula. Sed eu convallis sapien.` - fmt.Println(dedent.Dedent(s)) - fmt.Println("-------------") - fmt.Println(s) + s := ` + Lorem ipsum dolor sit amet, + consectetur adipiscing elit. + Curabitur justo tellus, facilisis nec efficitur dictum, + fermentum vitae ligula. Sed eu convallis sapien.` + fmt.Println(Dedent(s)) + fmt.Println("-------------") + fmt.Println(s) } ``` @@ -39,10 +40,11 @@ consectetur adipiscing elit. Curabitur justo tellus, facilisis nec efficitur dictum, fermentum vitae ligula. Sed eu convallis sapien. ------------- -Lorem ipsum dolor sit amet, - consectetur adipiscing elit. - Curabitur justo tellus, facilisis nec efficitur dictum, - fermentum vitae ligula. Sed eu convallis sapien. + + Lorem ipsum dolor sit amet, + consectetur adipiscing elit. + Curabitur justo tellus, facilisis nec efficitur dictum, + fermentum vitae ligula. Sed eu convallis sapien. ``` ## License diff --git a/vendor/github.com/renstrom/dedent/dedent.go b/vendor/github.com/lithammer/dedent/dedent.go similarity index 100% rename from vendor/github.com/renstrom/dedent/dedent.go rename to vendor/github.com/lithammer/dedent/dedent.go diff --git a/vendor/github.com/lithammer/dedent/go.mod b/vendor/github.com/lithammer/dedent/go.mod new file mode 100644 index 0000000000000..9468fd10591ab --- /dev/null +++ b/vendor/github.com/lithammer/dedent/go.mod @@ -0,0 +1 @@ +module github.com/lithammer/dedent diff --git a/vendor/github.com/renstrom/dedent/.travis.yml b/vendor/github.com/renstrom/dedent/.travis.yml deleted file mode 100644 index e61f42b872486..0000000000000 --- a/vendor/github.com/renstrom/dedent/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: go - -go: - - 1.0 - - 1.1 - - 1.2 - - 1.3 - - 1.4 - - 1.5 - -sudo: false