Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
2b43ecd4
Unverified
Commit
2b43ecd4
authored
Oct 11, 2017
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(*): kubernetes v1.8 support
parent
3410a690
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
392 additions
and
208 deletions
+392
-208
helm.go
cmd/helm/helm.go
+4
-4
init_test.go
cmd/helm/init_test.go
+2
-2
install.go
cmd/helm/installer/install.go
+2
-2
install_test.go
cmd/helm/installer/install_test.go
+2
-2
options.go
cmd/helm/installer/options.go
+1
-1
uninstall.go
cmd/helm/installer/uninstall.go
+1
-1
reset.go
cmd/helm/reset.go
+1
-1
glide.lock
glide.lock
+332
-115
glide.yaml
glide.yaml
+1
-31
pod.go
pkg/helm/portforwarder/pod.go
+1
-1
portforwarder.go
pkg/helm/portforwarder/portforwarder.go
+1
-1
portforwarder_test.go
pkg/helm/portforwarder/portforwarder_test.go
+1
-1
client.go
pkg/kube/client.go
+15
-13
client_test.go
pkg/kube/client_test.go
+1
-1
tunnel.go
pkg/kube/tunnel.go
+4
-2
wait.go
pkg/kube/wait.go
+23
-30
No files found.
cmd/helm/helm.go
View file @
2b43ecd4
...
@@ -239,16 +239,16 @@ func getKubeClient(context string) (*rest.Config, kubernetes.Interface, error) {
...
@@ -239,16 +239,16 @@ func getKubeClient(context string) (*rest.Config, kubernetes.Interface, error) {
// getInternalKubeClient creates a Kubernetes config and an "internal" client for a given kubeconfig context.
// getInternalKubeClient creates a Kubernetes config and an "internal" client for a given kubeconfig context.
//
//
// Prefer the similar getKubeClient if you don't need to use such an internal client.
// Prefer the similar getKubeClient if you don't need to use such an internal client.
func
getInternalKubeClient
(
context
string
)
(
*
rest
.
Config
,
internalclientset
.
Interface
,
error
)
{
func
getInternalKubeClient
(
context
string
)
(
internalclientset
.
Interface
,
error
)
{
config
,
err
:=
configForContext
(
context
)
config
,
err
:=
configForContext
(
context
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
nil
,
err
return
nil
,
err
}
}
client
,
err
:=
internalclientset
.
NewForConfig
(
config
)
client
,
err
:=
internalclientset
.
NewForConfig
(
config
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
nil
,
fmt
.
Errorf
(
"could not get Kubernetes client: %s"
,
err
)
return
nil
,
fmt
.
Errorf
(
"could not get Kubernetes client: %s"
,
err
)
}
}
return
c
onfig
,
c
lient
,
nil
return
client
,
nil
}
}
// ensureHelmClient returns a new helm client impl. if h is not nil.
// ensureHelmClient returns a new helm client impl. if h is not nil.
...
...
cmd/helm/init_test.go
View file @
2b43ecd4
...
@@ -27,12 +27,12 @@ import (
...
@@ -27,12 +27,12 @@ import (
"github.com/ghodss/yaml"
"github.com/ghodss/yaml"
"k8s.io/api/core/v1"
"k8s.io/api/extensions/v1beta1"
apierrors
"k8s.io/apimachinery/pkg/api/errors"
apierrors
"k8s.io/apimachinery/pkg/api/errors"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/apis/extensions/v1beta1"
testcore
"k8s.io/client-go/testing"
testcore
"k8s.io/client-go/testing"
"encoding/json"
"encoding/json"
...
...
cmd/helm/installer/install.go
View file @
2b43ecd4
...
@@ -22,14 +22,14 @@ import (
...
@@ -22,14 +22,14 @@ import (
"strings"
"strings"
"github.com/ghodss/yaml"
"github.com/ghodss/yaml"
"k8s.io/api/core/v1"
"k8s.io/api/extensions/v1beta1"
apierrors
"k8s.io/apimachinery/pkg/api/errors"
apierrors
"k8s.io/apimachinery/pkg/api/errors"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes"
corev1
"k8s.io/client-go/kubernetes/typed/core/v1"
corev1
"k8s.io/client-go/kubernetes/typed/core/v1"
extensionsclient
"k8s.io/client-go/kubernetes/typed/extensions/v1beta1"
extensionsclient
"k8s.io/client-go/kubernetes/typed/extensions/v1beta1"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/apis/extensions/v1beta1"
"k8s.io/helm/pkg/chartutil"
"k8s.io/helm/pkg/chartutil"
)
)
...
...
cmd/helm/installer/install_test.go
View file @
2b43ecd4
...
@@ -23,11 +23,11 @@ import (
...
@@ -23,11 +23,11 @@ import (
"testing"
"testing"
"github.com/ghodss/yaml"
"github.com/ghodss/yaml"
"k8s.io/api/core/v1"
"k8s.io/api/extensions/v1beta1"
apierrors
"k8s.io/apimachinery/pkg/api/errors"
apierrors
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/apis/extensions/v1beta1"
testcore
"k8s.io/client-go/testing"
testcore
"k8s.io/client-go/testing"
"k8s.io/helm/pkg/chartutil"
"k8s.io/helm/pkg/chartutil"
...
...
cmd/helm/installer/options.go
View file @
2b43ecd4
...
@@ -19,7 +19,7 @@ package installer // import "k8s.io/helm/cmd/helm/installer"
...
@@ -19,7 +19,7 @@ package installer // import "k8s.io/helm/cmd/helm/installer"
import
(
import
(
"fmt"
"fmt"
"k8s.io/
client-go/pkg/api
/v1"
"k8s.io/
api/core
/v1"
"k8s.io/helm/pkg/strvals"
"k8s.io/helm/pkg/strvals"
"k8s.io/helm/pkg/version"
"k8s.io/helm/pkg/version"
)
)
...
...
cmd/helm/installer/uninstall.go
View file @
2b43ecd4
...
@@ -19,7 +19,7 @@ package installer // import "k8s.io/helm/cmd/helm/installer"
...
@@ -19,7 +19,7 @@ package installer // import "k8s.io/helm/cmd/helm/installer"
import
(
import
(
apierrors
"k8s.io/apimachinery/pkg/api/errors"
apierrors
"k8s.io/apimachinery/pkg/api/errors"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/
client-go
/pkg/apis/extensions"
"k8s.io/
kubernetes
/pkg/apis/extensions"
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
coreclient
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/internalversion"
coreclient
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/core/internalversion"
"k8s.io/kubernetes/pkg/kubectl"
"k8s.io/kubernetes/pkg/kubectl"
...
...
cmd/helm/reset.go
View file @
2b43ecd4
...
@@ -86,7 +86,7 @@ func newResetCmd(client helm.Interface, out io.Writer) *cobra.Command {
...
@@ -86,7 +86,7 @@ func newResetCmd(client helm.Interface, out io.Writer) *cobra.Command {
// runReset uninstalls tiller from Kubernetes Cluster and deletes local config
// runReset uninstalls tiller from Kubernetes Cluster and deletes local config
func
(
d
*
resetCmd
)
run
()
error
{
func
(
d
*
resetCmd
)
run
()
error
{
if
d
.
kubeClient
==
nil
{
if
d
.
kubeClient
==
nil
{
_
,
c
,
err
:=
getInternalKubeClient
(
settings
.
KubeContext
)
c
,
err
:=
getInternalKubeClient
(
settings
.
KubeContext
)
if
err
!=
nil
{
if
err
!=
nil
{
return
fmt
.
Errorf
(
"could not get kubernetes client: %s"
,
err
)
return
fmt
.
Errorf
(
"could not get kubernetes client: %s"
,
err
)
}
}
...
...
glide.lock
View file @
2b43ecd4
hash:
0759b118eb4017d612af767460cdec467d6f78013ad1efff1c82676f1df84a75
hash:
f5e472b397d20aaa131c8eada3966fdbbf65457073bd1ee8fb8b349bf39c522a
updated: 2017-
09-26T15:21:30.833774
-07:00
updated: 2017-
10-09T13:32:53.067503253
-07:00
imports:
imports:
- name: cloud.google.com/go
- name: cloud.google.com/go
version: 3b1ae45394a234c385be014e9a488f2bb6eef821
version: 3b1ae45394a234c385be014e9a488f2bb6eef821
subpackages:
- compute/metadata
- internal
- name: github.com/aokoli/goutils
- name: github.com/aokoli/goutils
version: 9c37978a95bd5c709a15883b6242714ea6709e64
version: 9c37978a95bd5c709a15883b6242714ea6709e64
- name: github.com/asaskevich/govalidator
- name: github.com/asaskevich/govalidator
version: 7664702784775e51966f0885f5cd27435916517b
version: 7664702784775e51966f0885f5cd27435916517b
- name: github.com/Azure/go-autorest
- name: github.com/Azure/go-autorest
version: 58f6f26e200fa5dfb40c9cd1c83f3e2c860d779d
version: 58f6f26e200fa5dfb40c9cd1c83f3e2c860d779d
subpackages:
- autorest
- autorest/adal
- autorest/azure
- autorest/date
- name: github.com/beorn7/perks
- name: github.com/beorn7/perks
version: 3ac7bf7a47d159a033b107610db8a1b6575507a4
version: 3ac7bf7a47d159a033b107610db8a1b6575507a4
subpackages:
subpackages:
...
@@ -22,42 +30,59 @@ imports:
...
@@ -22,42 +30,59 @@ imports:
subpackages:
subpackages:
- md2man
- md2man
- name: github.com/davecgh/go-spew
- name: github.com/davecgh/go-spew
version:
5215b55f46b2b919f50a1df0eaa5886afe4e3b3d
version:
782f4967f2dc4564575ca782fe2d04090b5faca8
subpackages:
subpackages:
- spew
- spew
- name: github.com/dgrijalva/jwt-go
- name: github.com/dgrijalva/jwt-go
version: 01aeca54ebda6e0fbfafd0a524d234159c05ec20
version: 01aeca54ebda6e0fbfafd0a524d234159c05ec20
- name: github.com/docker/distribution
- name: github.com/docker/distribution
version:
03efb43768979f4d2ea5187bef995656441829e5
version:
edc3ab29cdff8694dd6feb85cfeb4b5f1b38ed9c
subpackages:
subpackages:
- digest
- digest
set
- reference
- reference
- name: github.com/docker/engine-api
- name: github.com/docker/docker
version: dea108d3aa0c67d7162a3fd8aa65f38a430019fd
version: 4f3616fb1c112e206b88cb7a9922bf49067a7756
subpackages:
subpackages:
- api
- api/types
- api/types/blkiodev
- api/types/container
- api/types/events
- api/types/filters
- api/types/image
- api/types/mount
- api/types/network
- api/types/registry
- api/types/strslice
- api/types/swarm
- api/types/swarm/runtime
- api/types/time
- api/types/versions
- api/types/volume
- client
- client
- client/transport
- pkg/ioutils
- client/transport/cancellable
- pkg/jsonlog
- types
- pkg/jsonmessage
- types/blkiodev
- pkg/longpath
- types/container
- pkg/mount
- types/filters
- pkg/stdcopy
- types/network
- pkg/symlink
- types/reference
- pkg/system
- types/registry
- pkg/term
- types/strslice
- pkg/term/windows
- types/time
- pkg/tlsconfig
- types/versions
- name: github.com/docker/go-connections
- name: github.com/docker/go-connections
version:
f549a9393d05688dff0992ef3efd8bbe6c628aeb
version:
3ede32e2033de7505e6500d6c868c2b9ed9f169d
subpackages:
subpackages:
- nat
- nat
- sockets
- sockets
- tlsconfig
- tlsconfig
- name: github.com/docker/go-units
- name: github.com/docker/go-units
version:
e30f1e79f3cd72542f2026ceec18d3bd67ab859c
version:
9e638d38cf6977a37a8ea0078f3ee75a7cdb2dd1
- name: github.com/docker/spdystream
- name: github.com/docker/spdystream
version: 449fdfce4d962303d702fec724ef0ad181c92528
version: 449fdfce4d962303d702fec724ef0ad181c92528
subpackages:
- spdy
- name: github.com/emicklei/go-restful
- name: github.com/emicklei/go-restful
version: ff4f55a206334ef123e4f79bbf348980da81ca46
version: ff4f55a206334ef123e4f79bbf348980da81ca46
subpackages:
subpackages:
...
@@ -65,27 +90,19 @@ imports:
...
@@ -65,27 +90,19 @@ imports:
- name: github.com/emicklei/go-restful-swagger12
- name: github.com/emicklei/go-restful-swagger12
version: dcef7f55730566d41eae5db10e7d6981829720f6
version: dcef7f55730566d41eae5db10e7d6981829720f6
- name: github.com/evanphx/json-patch
- name: github.com/evanphx/json-patch
version:
ba18e35c5c1b36ef6334cad706eb681153d2d379
version:
944e07253867aacae43c04b2e6a239005443f33a
- name: github.com/exponent-io/jsonpath
- name: github.com/exponent-io/jsonpath
version: d6023ce2651d8eafb5c75bb0c7167536102ec9f5
version: d6023ce2651d8eafb5c75bb0c7167536102ec9f5
- name: github.com/fatih/camelcase
- name: github.com/fatih/camelcase
version: f6a740d52f961c60348ebb109adde9f4635d7540
version: f6a740d52f961c60348ebb109adde9f4635d7540
- name: github.com/ghodss/yaml
- name: github.com/ghodss/yaml
version: 73d445a93680fa1a78ae23a5839bad48f32ba1ee
version: 73d445a93680fa1a78ae23a5839bad48f32ba1ee
- name: github.com/go-openapi/analysis
version: b44dc874b601d9e4e2f6e19140e794ba24bead3b
- name: github.com/go-openapi/errors
version: d24ebc2075bad502fac3a8ae27aa6dd58e1952dc
- name: github.com/go-openapi/jsonpointer
- name: github.com/go-openapi/jsonpointer
version: 46af16f9f7b149af66e5d1bd010e3574dc06de98
version: 46af16f9f7b149af66e5d1bd010e3574dc06de98
- name: github.com/go-openapi/jsonreference
- name: github.com/go-openapi/jsonreference
version: 13c6e3589ad90f49bd3e3bbe2c2cb3d7a4142272
version: 13c6e3589ad90f49bd3e3bbe2c2cb3d7a4142272
- name: github.com/go-openapi/loads
version: 18441dfa706d924a39a030ee2c3b1d8d81917b38
- name: github.com/go-openapi/spec
- name: github.com/go-openapi/spec
version: 6aced65f8501fe1217321abf0749d354824ba2ff
version: 6aced65f8501fe1217321abf0749d354824ba2ff
- name: github.com/go-openapi/strfmt
version: d65c7fdb29eca313476e529628176fe17e58c488
- name: github.com/go-openapi/swag
- name: github.com/go-openapi/swag
version: 1d0bd113de87027671077d3c71eb3ac5d7dbba72
version: 1d0bd113de87027671077d3c71eb3ac5d7dbba72
- name: github.com/gobwas/glob
- name: github.com/gobwas/glob
...
@@ -101,31 +118,8 @@ imports:
...
@@ -101,31 +118,8 @@ imports:
- name: github.com/gogo/protobuf
- name: github.com/gogo/protobuf
version: c0656edd0d9eab7c66d1eb0c568f9039345796f7
version: c0656edd0d9eab7c66d1eb0c568f9039345796f7
subpackages:
subpackages:
- gogoproto
- plugin/compare
- plugin/defaultcheck
- plugin/description
- plugin/embedcheck
- plugin/enumstringer
- plugin/equal
- plugin/face
- plugin/gostring
- plugin/marshalto
- plugin/oneofcheck
- plugin/populate
- plugin/size
- plugin/stringer
- plugin/testgen
- plugin/union
- plugin/unmarshal
- proto
- proto
- protoc-gen-gogo/descriptor
- protoc-gen-gogo/generator
- protoc-gen-gogo/grpc
- protoc-gen-gogo/plugin
- sortkeys
- sortkeys
- vanity
- vanity/command
- name: github.com/golang/glog
- name: github.com/golang/glog
version: 44145f04b68cf362d9c4df2182967c2275eaefed
version: 44145f04b68cf362d9c4df2182967c2275eaefed
- name: github.com/golang/groupcache
- name: github.com/golang/groupcache
...
@@ -136,27 +130,54 @@ imports:
...
@@ -136,27 +130,54 @@ imports:
version: 4bd1920723d7b7c925de087aa32e2187708897f7
version: 4bd1920723d7b7c925de087aa32e2187708897f7
subpackages:
subpackages:
- proto
- proto
- ptypes
- ptypes/any
- ptypes/any
- ptypes/duration
- ptypes/timestamp
- ptypes/timestamp
- name: github.com/google/btree
version: 7d79101e329e5a3adf994758c578dab82b90c017
- name: github.com/google/gofuzz
- name: github.com/google/gofuzz
version: 44d81051d367757e1c7c6a5a86423ece9afcf63c
version: 44d81051d367757e1c7c6a5a86423ece9afcf63c
- name: github.com/googleapis/gnostic
version: 0c5108395e2debce0d731cf0287ddf7242066aba
subpackages:
- OpenAPIv2
- compiler
- extensions
- name: github.com/gophercloud/gophercloud
version: 2bf16b94fdd9b01557c4d076e567fe5cbbe5a961
subpackages:
- openstack
- openstack/identity/v2/tenants
- openstack/identity/v2/tokens
- openstack/identity/v3/tokens
- openstack/utils
- pagination
- name: github.com/gosuri/uitable
- name: github.com/gosuri/uitable
version: 36ee7e946282a3fb1cfecd476ddc9b35d8847e42
version: 36ee7e946282a3fb1cfecd476ddc9b35d8847e42
subpackages:
subpackages:
- util/strutil
- util/strutil
- util/wordwrap
- util/wordwrap
- name: github.com/gregjones/httpcache
version: 787624de3eb7bd915c329cba748687a3b22666a6
subpackages:
- diskcache
- name: github.com/grpc-ecosystem/go-grpc-prometheus
- name: github.com/grpc-ecosystem/go-grpc-prometheus
version:
2500245aa6110c562d17020fb31a2c133d737799
version:
0c1b191dbfe51efdabe3c14b9f6f3b96429e0722
- name: github.com/hashicorp/golang-lru
- name: github.com/hashicorp/golang-lru
version: a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4
version: a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4
subpackages:
- simplelru
- name: github.com/howeyc/gopass
- name: github.com/howeyc/gopass
version:
3ca23474a7c7203e0a0a070fd33508f6efdb9b3d
version:
bf9dde6d0d2c004a008c27aaee91170c786f6db8
- name: github.com/huandu/xstrings
- name: github.com/huandu/xstrings
version: 3959339b333561bf62a38b424fd41517c2c90f40
version: 3959339b333561bf62a38b424fd41517c2c90f40
- name: github.com/imdario/mergo
- name: github.com/imdario/mergo
version: 6633656539c1639d9d78127b7d47c622b5d7b6dc
version: 6633656539c1639d9d78127b7d47c622b5d7b6dc
- name: github.com/inconshreveable/mousetrap
- name: github.com/inconshreveable/mousetrap
version: 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
version: 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
- name: github.com/json-iterator/go
version: 36b14963da70d11297d313183d7e6388c8510e1e
- name: github.com/juju/ratelimit
- name: github.com/juju/ratelimit
version: 5b9ff866471762aa2ab2dced63c9fb6f53921342
version: 5b9ff866471762aa2ab2dced63c9fb6f53921342
- name: github.com/mailru/easyjson
- name: github.com/mailru/easyjson
...
@@ -168,7 +189,7 @@ imports:
...
@@ -168,7 +189,7 @@ imports:
- name: github.com/Masterminds/semver
- name: github.com/Masterminds/semver
version: 517734cc7d6470c0d07130e40fd40bdeb9bcd3fd
version: 517734cc7d6470c0d07130e40fd40bdeb9bcd3fd
- name: github.com/Masterminds/sprig
- name: github.com/Masterminds/sprig
version:
4c164950cd0a8d3724ddb78982e2c56dc7f47112
version:
efda631a76d70875162cdc25ffa0d0164bf69758
- name: github.com/Masterminds/vcs
- name: github.com/Masterminds/vcs
version: 3084677c2c188840777bff30054f2b553729d329
version: 3084677c2c188840777bff30054f2b553729d329
- name: github.com/mattn/go-runewidth
- name: github.com/mattn/go-runewidth
...
@@ -177,12 +198,19 @@ imports:
...
@@ -177,12 +198,19 @@ imports:
version: fc2b8d3a73c4867e51861bbdd5ae3c1f0869dd6a
version: fc2b8d3a73c4867e51861bbdd5ae3c1f0869dd6a
subpackages:
subpackages:
- pbutil
- pbutil
- name: github.com/mitchellh/mapstructure
version: 740c764bc6149d3f1806231418adb9f52c11bcbf
- name: github.com/naoina/go-stringutil
- name: github.com/naoina/go-stringutil
version: 6b638e95a32d0c1131db0e7fe83775cbea4a0d0b
version: 6b638e95a32d0c1131db0e7fe83775cbea4a0d0b
- name: github.com/opencontainers/go-digest
version: a6d0ee40d4207ea02364bd3b9e8e77b9159ba1eb
- name: github.com/opencontainers/image-spec
version: 372ad780f63454fbbbbcc7cf80e5b90245c13e13
subpackages:
- specs-go
- specs-go/v1
- name: github.com/pborman/uuid
- name: github.com/pborman/uuid
version: ca53cad383cad2479bbba7f7a1a05797ec1386e4
version: ca53cad383cad2479bbba7f7a1a05797ec1386e4
- name: github.com/peterbourgon/diskv
version: 5f041e8faa004a95c88a202771f4cc3e991971e6
- name: github.com/prometheus/client_golang
- name: github.com/prometheus/client_golang
version: c5b7fccd204277076155f10851dad72b76a49317
version: c5b7fccd204277076155f10851dad72b76a49317
subpackages:
subpackages:
...
@@ -219,14 +247,13 @@ imports:
...
@@ -219,14 +247,13 @@ imports:
- name: github.com/spf13/pflag
- name: github.com/spf13/pflag
version: 9ff6c6923cfffbcd502984b8e0c80539a94968b7
version: 9ff6c6923cfffbcd502984b8e0c80539a94968b7
- name: github.com/technosophos/moniker
- name: github.com/technosophos/moniker
version:
9f956786b91d9786ca11aa5be6104542fa911546
version:
ab470f5e105a44d0c87ea21bacd6a335c4816d83
- name: github.com/ugorji/go
- name: github.com/ugorji/go
version: ded73eae5db7e7a0ef6f55aace87a2873c5d2b74
version: ded73eae5db7e7a0ef6f55aace87a2873c5d2b74
subpackages:
subpackages:
- codec
- codec
- codec/codecgen
- name: golang.org/x/crypto
- name: golang.org/x/crypto
version:
d172538b2cfce0c13cee31e647d0367aa8cd2486
version:
81e90905daefcd6fd217b62423c0908922eadb30
subpackages:
subpackages:
- cast5
- cast5
- openpgp
- openpgp
...
@@ -240,9 +267,10 @@ imports:
...
@@ -240,9 +267,10 @@ imports:
- scrypt
- scrypt
- ssh/terminal
- ssh/terminal
- name: golang.org/x/net
- name: golang.org/x/net
version:
f2499483f923065a842d38eb4c7f1927e6fc6e6d
version:
1c05540f6879653db88113bc4a2b70aec4bd491f
subpackages:
subpackages:
- context
- context
- context/ctxhttp
- http2
- http2
- http2/hpack
- http2/hpack
- idna
- idna
...
@@ -251,18 +279,25 @@ imports:
...
@@ -251,18 +279,25 @@ imports:
- trace
- trace
- name: golang.org/x/oauth2
- name: golang.org/x/oauth2
version: a6bd8cefa1811bd24b86f8902872e4e8225f74c4
version: a6bd8cefa1811bd24b86f8902872e4e8225f74c4
subpackages:
- google
- internal
- jws
- jwt
- name: golang.org/x/sys
- name: golang.org/x/sys
version: 8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9
version: 8f0908ab3b2457e2e15403d3697c9ef5cb4b57a9
subpackages:
subpackages:
- unix
- unix
- windows
- name: golang.org/x/text
- name: golang.org/x/text
version:
2910a502d2bf9e43193af9d68ca516529614eed3
version:
b19bf474d317b857955b12035d2c5acb57ce8b01
subpackages:
subpackages:
- cases
- cases
- encoding
- encoding
- encoding/internal
- encoding/internal
- encoding/internal/identifier
- encoding/internal/identifier
- encoding/unicode
- encoding/unicode
- internal
- internal/tag
- internal/tag
- internal/utf8internal
- internal/utf8internal
- language
- language
...
@@ -273,6 +308,18 @@ imports:
...
@@ -273,6 +308,18 @@ imports:
- unicode/bidi
- unicode/bidi
- unicode/norm
- unicode/norm
- width
- width
- name: google.golang.org/appengine
version: 12d5545dc1cfa6047a286d5e853841b6471f4c19
subpackages:
- internal
- internal/app_identity
- internal/base
- internal/datastore
- internal/log
- internal/modules
- internal/remote_api
- internal/urlfetch
- urlfetch
- name: google.golang.org/grpc
- name: google.golang.org/grpc
version: 8050b9cbc271307e5a716a9d782803d09b0d6f2d
version: 8050b9cbc271307e5a716a9d782803d09b0d6f2d
subpackages:
subpackages:
...
@@ -289,23 +336,105 @@ imports:
...
@@ -289,23 +336,105 @@ imports:
- transport
- transport
- name: gopkg.in/inf.v0
- name: gopkg.in/inf.v0
version: 3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4
version: 3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4
- name: gopkg.in/mgo.v2
version: 3f83fa5005286a7fe593b055f0d7771a7dce4655
subpackages:
- bson
- name: gopkg.in/yaml.v2
- name: gopkg.in/yaml.v2
version: 53feefa2559fb8dfa8d81baad31be332c97d6c77
version: 53feefa2559fb8dfa8d81baad31be332c97d6c77
- name: k8s.io/api
- name: k8s.io/api
version: 4fe9229aaa9d704f8a2a21cdcd50de2bbb6e1b57
version: cadaf100c0a3dd6b254f320d6d651df079ec8e0a
subpackages:
subpackages:
- admission/v1alpha1
- admissionregistration/v1alpha1
- apps/v1beta1
- apps/v1beta2
- authentication/v1
- authentication/v1beta1
- authorization/v1
- authorization/v1beta1
- autoscaling/v1
- autoscaling/v2beta1
- batch/v1
- batch/v1beta1
- batch/v2alpha1
- certificates/v1beta1
- core/v1
- core/v1
- extensions/v1beta1
- imagepolicy/v1alpha1
- networking/v1
- policy/v1beta1
- rbac/v1
- rbac/v1alpha1
- rbac/v1beta1
- scheduling/v1alpha1
- settings/v1alpha1
- storage/v1
- storage/v1beta1
- name: k8s.io/apiextensions-apiserver
version: a5bbfd114a9b122acd741c61d88c84812375d9e1
subpackages:
- pkg/features
- name: k8s.io/apimachinery
version: 3b05bbfa0a45413bfa184edbf9af617e277962fb
subpackages:
- pkg/api/equality
- pkg/api/errors
- pkg/api/meta
- pkg/api/resource
- pkg/api/validation
- pkg/apimachinery
- pkg/apimachinery/announced
- pkg/apimachinery/registered
- pkg/apis/meta/internalversion
- pkg/apis/meta/v1
- pkg/apis/meta/v1/unstructured
- pkg/apis/meta/v1/validation
- pkg/apis/meta/v1alpha1
- pkg/conversion
- pkg/conversion/queryparams
- pkg/conversion/unstructured
- pkg/fields
- pkg/labels
- pkg/runtime
- pkg/runtime/schema
- pkg/runtime/serializer
- pkg/runtime/serializer/json
- pkg/runtime/serializer/protobuf
- pkg/runtime/serializer/recognizer
- pkg/runtime/serializer/streaming
- pkg/runtime/serializer/versioning
- pkg/selection
- pkg/types
- pkg/util/cache
- pkg/util/clock
- pkg/util/diff
- pkg/util/errors
- pkg/util/framer
- pkg/util/httpstream
- pkg/util/httpstream/spdy
- pkg/util/intstr
- pkg/util/json
- pkg/util/mergepatch
- pkg/util/net
- pkg/util/rand
- pkg/util/runtime
- pkg/util/sets
- pkg/util/strategicpatch
- pkg/util/uuid
- pkg/util/validation
- pkg/util/validation/field
- pkg/util/wait
- pkg/util/yaml
- pkg/version
- pkg/watch
- third_party/forked/golang/json
- third_party/forked/golang/netutil
- third_party/forked/golang/reflect
- name: k8s.io/apiserver
- name: k8s.io/apiserver
version:
2308857ad3b8b18abf74ff734853973eda9da94d
version:
c1e53d745d0fe45bf7d5d44697e6eface25fceca
subpackages:
subpackages:
- pkg/admission
- pkg/admission
- pkg/apis/apiserver
- pkg/apis/apiserver
- pkg/apis/apiserver/install
- pkg/apis/apiserver/install
- pkg/apis/apiserver/v1alpha1
- pkg/apis/apiserver/v1alpha1
- pkg/apis/audit
- pkg/authentication/authenticator
- pkg/authentication/authenticator
- pkg/authentication/serviceaccount
- pkg/authentication/serviceaccount
- pkg/authentication/user
- pkg/authentication/user
...
@@ -313,20 +442,118 @@ imports:
...
@@ -313,20 +442,118 @@ imports:
- pkg/features
- pkg/features
- pkg/util/feature
- pkg/util/feature
- pkg/util/flag
- pkg/util/flag
- name: k8s.io/client-go
version: 82aa063804cf055e16e8911250f888bc216e8b61
subpackages:
- discovery
- discovery/fake
- dynamic
- informers/apps/v1beta1
- informers/core/v1
- informers/extensions/v1beta1
- informers/internalinterfaces
- kubernetes
- kubernetes/fake
- kubernetes/scheme
- kubernetes/typed/admissionregistration/v1alpha1
- kubernetes/typed/admissionregistration/v1alpha1/fake
- kubernetes/typed/apps/v1beta1
- kubernetes/typed/apps/v1beta1/fake
- kubernetes/typed/apps/v1beta2
- kubernetes/typed/apps/v1beta2/fake
- kubernetes/typed/authentication/v1
- kubernetes/typed/authentication/v1/fake
- kubernetes/typed/authentication/v1beta1
- kubernetes/typed/authentication/v1beta1/fake
- kubernetes/typed/authorization/v1
- kubernetes/typed/authorization/v1/fake
- kubernetes/typed/authorization/v1beta1
- kubernetes/typed/authorization/v1beta1/fake
- kubernetes/typed/autoscaling/v1
- kubernetes/typed/autoscaling/v1/fake
- kubernetes/typed/autoscaling/v2beta1
- kubernetes/typed/autoscaling/v2beta1/fake
- kubernetes/typed/batch/v1
- kubernetes/typed/batch/v1/fake
- kubernetes/typed/batch/v1beta1
- kubernetes/typed/batch/v1beta1/fake
- kubernetes/typed/batch/v2alpha1
- kubernetes/typed/batch/v2alpha1/fake
- kubernetes/typed/certificates/v1beta1
- kubernetes/typed/certificates/v1beta1/fake
- kubernetes/typed/core/v1
- kubernetes/typed/core/v1/fake
- kubernetes/typed/extensions/v1beta1
- kubernetes/typed/extensions/v1beta1/fake
- kubernetes/typed/networking/v1
- kubernetes/typed/networking/v1/fake
- kubernetes/typed/policy/v1beta1
- kubernetes/typed/policy/v1beta1/fake
- kubernetes/typed/rbac/v1
- kubernetes/typed/rbac/v1/fake
- kubernetes/typed/rbac/v1alpha1
- kubernetes/typed/rbac/v1alpha1/fake
- kubernetes/typed/rbac/v1beta1
- kubernetes/typed/rbac/v1beta1/fake
- kubernetes/typed/scheduling/v1alpha1
- kubernetes/typed/scheduling/v1alpha1/fake
- kubernetes/typed/settings/v1alpha1
- kubernetes/typed/settings/v1alpha1/fake
- kubernetes/typed/storage/v1
- kubernetes/typed/storage/v1/fake
- kubernetes/typed/storage/v1beta1
- kubernetes/typed/storage/v1beta1/fake
- listers/apps/v1beta1
- listers/core/v1
- listers/extensions/v1beta1
- pkg/version
- plugin/pkg/client/auth
- plugin/pkg/client/auth/azure
- plugin/pkg/client/auth/gcp
- plugin/pkg/client/auth/oidc
- plugin/pkg/client/auth/openstack
- rest
- rest/fake
- rest/watch
- testing
- third_party/forked/golang/template
- tools/auth
- tools/cache
- tools/clientcmd
- tools/clientcmd/api
- tools/clientcmd/api/latest
- tools/clientcmd/api/v1
- tools/metrics
- tools/pager
- tools/portforward
- tools/record
- tools/reference
- transport
- transport/spdy
- util/cert
- util/flowcontrol
- util/homedir
- util/integer
- util/jsonpath
- util/retry
- util/workqueue
- name: k8s.io/kube-openapi
version: 868f2f29720b192240e18284659231b440f9cda5
subpackages:
- pkg/common
- name: k8s.io/kubernetes
- name: k8s.io/kubernetes
version:
d3faa3f8f2e85c8089e80a661955626ae24abf80
version:
0b9efaeb34a2fc51ff8e4d34ad9bc6375459c4a4
subpackages:
subpackages:
- cmd/kubeadm/app/apis/kubeadm
- federation/apis/federation
- federation/apis/federation
- federation/apis/federation/install
- federation/apis/federation/install
- federation/apis/federation/v1beta1
- federation/apis/federation/v1beta1
- federation/client/clientset_generated/federation_
internal
clientset
- federation/client/clientset_generated/federation_clientset
- federation/client/clientset_generated/federation_
internal
clientset/scheme
- federation/client/clientset_generated/federation_clientset/scheme
- federation/client/clientset_generated/federation_
internalclientset/typed/autoscaling/internalversion
- federation/client/clientset_generated/federation_
clientset/typed/autoscaling/v1
- federation/client/clientset_generated/federation_
internalclientset/typed/batch/internalversion
- federation/client/clientset_generated/federation_
clientset/typed/batch/v1
- federation/client/clientset_generated/federation_
internalclientset/typed/core/internalversion
- federation/client/clientset_generated/federation_
clientset/typed/core/v1
- federation/client/clientset_generated/federation_
internalclientset/typed/extensions/internalversion
- federation/client/clientset_generated/federation_
clientset/typed/extensions/v1beta1
- federation/client/clientset_generated/federation_
internalclientset/typed/federation/internalversion
- federation/client/clientset_generated/federation_
clientset/typed/federation/v1beta1
- pkg/api
- pkg/api
- pkg/api/events
- pkg/api/events
- pkg/api/helper
- pkg/api/helper
...
@@ -342,7 +569,6 @@ imports:
...
@@ -342,7 +569,6 @@ imports:
- pkg/api/v1/helper
- pkg/api/v1/helper
- pkg/api/v1/helper/qos
- pkg/api/v1/helper/qos
- pkg/api/v1/pod
- pkg/api/v1/pod
- pkg/api/v1/ref
- pkg/api/validation
- pkg/api/validation
- pkg/apis/admission
- pkg/apis/admission
- pkg/apis/admission/install
- pkg/apis/admission/install
...
@@ -353,6 +579,7 @@ imports:
...
@@ -353,6 +579,7 @@ imports:
- pkg/apis/apps
- pkg/apis/apps
- pkg/apis/apps/install
- pkg/apis/apps/install
- pkg/apis/apps/v1beta1
- pkg/apis/apps/v1beta1
- pkg/apis/apps/v1beta2
- pkg/apis/authentication
- pkg/apis/authentication
- pkg/apis/authentication/install
- pkg/apis/authentication/install
- pkg/apis/authentication/v1
- pkg/apis/authentication/v1
...
@@ -364,10 +591,11 @@ imports:
...
@@ -364,10 +591,11 @@ imports:
- pkg/apis/autoscaling
- pkg/apis/autoscaling
- pkg/apis/autoscaling/install
- pkg/apis/autoscaling/install
- pkg/apis/autoscaling/v1
- pkg/apis/autoscaling/v1
- pkg/apis/autoscaling/v2
alph
a1
- pkg/apis/autoscaling/v2
bet
a1
- pkg/apis/batch
- pkg/apis/batch
- pkg/apis/batch/install
- pkg/apis/batch/install
- pkg/apis/batch/v1
- pkg/apis/batch/v1
- pkg/apis/batch/v1beta1
- pkg/apis/batch/v2alpha1
- pkg/apis/batch/v2alpha1
- pkg/apis/certificates
- pkg/apis/certificates
- pkg/apis/certificates/install
- pkg/apis/certificates/install
...
@@ -389,8 +617,12 @@ imports:
...
@@ -389,8 +617,12 @@ imports:
- pkg/apis/policy/v1beta1
- pkg/apis/policy/v1beta1
- pkg/apis/rbac
- pkg/apis/rbac
- pkg/apis/rbac/install
- pkg/apis/rbac/install
- pkg/apis/rbac/v1
- pkg/apis/rbac/v1alpha1
- pkg/apis/rbac/v1alpha1
- pkg/apis/rbac/v1beta1
- pkg/apis/rbac/v1beta1
- pkg/apis/scheduling
- pkg/apis/scheduling/install
- pkg/apis/scheduling/v1alpha1
- pkg/apis/settings
- pkg/apis/settings
- pkg/apis/settings/install
- pkg/apis/settings/install
- pkg/apis/settings/v1alpha1
- pkg/apis/settings/v1alpha1
...
@@ -400,28 +632,6 @@ imports:
...
@@ -400,28 +632,6 @@ imports:
- pkg/apis/storage/v1
- pkg/apis/storage/v1
- pkg/apis/storage/v1beta1
- pkg/apis/storage/v1beta1
- pkg/capabilities
- pkg/capabilities
- pkg/client/clientset_generated/clientset
- pkg/client/clientset_generated/clientset/scheme
- pkg/client/clientset_generated/clientset/typed/admissionregistration/v1alpha1
- pkg/client/clientset_generated/clientset/typed/apps/v1beta1
- pkg/client/clientset_generated/clientset/typed/authentication/v1
- pkg/client/clientset_generated/clientset/typed/authentication/v1beta1
- pkg/client/clientset_generated/clientset/typed/authorization/v1
- pkg/client/clientset_generated/clientset/typed/authorization/v1beta1
- pkg/client/clientset_generated/clientset/typed/autoscaling/v1
- pkg/client/clientset_generated/clientset/typed/autoscaling/v2alpha1
- pkg/client/clientset_generated/clientset/typed/batch/v1
- pkg/client/clientset_generated/clientset/typed/batch/v2alpha1
- pkg/client/clientset_generated/clientset/typed/certificates/v1beta1
- pkg/client/clientset_generated/clientset/typed/core/v1
- pkg/client/clientset_generated/clientset/typed/extensions/v1beta1
- pkg/client/clientset_generated/clientset/typed/networking/v1
- pkg/client/clientset_generated/clientset/typed/policy/v1beta1
- pkg/client/clientset_generated/clientset/typed/rbac/v1alpha1
- pkg/client/clientset_generated/clientset/typed/rbac/v1beta1
- pkg/client/clientset_generated/clientset/typed/settings/v1alpha1
- pkg/client/clientset_generated/clientset/typed/storage/v1
- pkg/client/clientset_generated/clientset/typed/storage/v1beta1
- pkg/client/clientset_generated/internalclientset
- pkg/client/clientset_generated/internalclientset
- pkg/client/clientset_generated/internalclientset/fake
- pkg/client/clientset_generated/internalclientset/fake
- pkg/client/clientset_generated/internalclientset/scheme
- pkg/client/clientset_generated/internalclientset/scheme
...
@@ -449,24 +659,19 @@ imports:
...
@@ -449,24 +659,19 @@ imports:
- pkg/client/clientset_generated/internalclientset/typed/policy/internalversion/fake
- pkg/client/clientset_generated/internalclientset/typed/policy/internalversion/fake
- pkg/client/clientset_generated/internalclientset/typed/rbac/internalversion
- pkg/client/clientset_generated/internalclientset/typed/rbac/internalversion
- pkg/client/clientset_generated/internalclientset/typed/rbac/internalversion/fake
- pkg/client/clientset_generated/internalclientset/typed/rbac/internalversion/fake
- pkg/client/clientset_generated/internalclientset/typed/scheduling/internalversion
- pkg/client/clientset_generated/internalclientset/typed/scheduling/internalversion/fake
- pkg/client/clientset_generated/internalclientset/typed/settings/internalversion
- pkg/client/clientset_generated/internalclientset/typed/settings/internalversion
- pkg/client/clientset_generated/internalclientset/typed/settings/internalversion/fake
- pkg/client/clientset_generated/internalclientset/typed/settings/internalversion/fake
- pkg/client/clientset_generated/internalclientset/typed/storage/internalversion
- pkg/client/clientset_generated/internalclientset/typed/storage/internalversion
- pkg/client/clientset_generated/internalclientset/typed/storage/internalversion/fake
- pkg/client/clientset_generated/internalclientset/typed/storage/internalversion/fake
- pkg/client/informers/informers_generated/externalversions/apps/v1beta1
- pkg/client/informers/informers_generated/externalversions/core/v1
- pkg/client/informers/informers_generated/externalversions/extensions/v1beta1
- pkg/client/informers/informers_generated/externalversions/internalinterfaces
- pkg/client/leaderelection/resourcelock
- pkg/client/listers/apps/v1beta1
- pkg/client/listers/core/v1
- pkg/client/listers/extensions/v1beta1
- pkg/client/retry
- pkg/client/unversioned
- pkg/client/unversioned
- pkg/controller
- pkg/controller
- pkg/controller/daemon
- pkg/controller/daemon
- pkg/controller/daemon/util
- pkg/controller/daemon/util
- pkg/controller/deployment/util
- pkg/controller/deployment/util
- pkg/controller/history
- pkg/controller/statefulset
- pkg/credentialprovider
- pkg/credentialprovider
- pkg/features
- pkg/features
- pkg/fieldpath
- pkg/fieldpath
...
@@ -474,9 +679,13 @@ imports:
...
@@ -474,9 +679,13 @@ imports:
- pkg/kubectl/cmd/testing
- pkg/kubectl/cmd/testing
- pkg/kubectl/cmd/util
- pkg/kubectl/cmd/util
- pkg/kubectl/cmd/util/openapi
- pkg/kubectl/cmd/util/openapi
- pkg/kubectl/cmd/util/openapi/validation
- pkg/kubectl/plugins
- pkg/kubectl/plugins
- pkg/kubectl/resource
- pkg/kubectl/resource
- pkg/kubectl/util
- pkg/kubectl/util
- pkg/kubectl/util/hash
- pkg/kubectl/util/slice
- pkg/kubectl/validation
- pkg/kubelet/apis
- pkg/kubelet/apis
- pkg/kubelet/qos
- pkg/kubelet/qos
- pkg/kubelet/types
- pkg/kubelet/types
...
@@ -486,16 +695,18 @@ imports:
...
@@ -486,16 +695,18 @@ imports:
- pkg/registry/rbac/validation
- pkg/registry/rbac/validation
- pkg/security/apparmor
- pkg/security/apparmor
- pkg/serviceaccount
- pkg/serviceaccount
- pkg/util
- pkg/util/file
- pkg/util/exec
- pkg/util/hash
- pkg/util/hash
- pkg/util/io
- pkg/util/labels
- pkg/util/labels
- pkg/util/metrics
- pkg/util/metrics
- pkg/util/mount
- pkg/util/mount
- pkg/util/net/sets
- pkg/util/net/sets
- pkg/util/node
- pkg/util/node
- pkg/util/parsers
- pkg/util/parsers
- pkg/util/pointer
- pkg/util/slice
- pkg/util/slice
- pkg/util/taints
- pkg/version
- pkg/version
- pkg/volume/util
- pkg/volume/util
- pkg/watch/json
- pkg/watch/json
...
@@ -505,6 +716,7 @@ imports:
...
@@ -505,6 +716,7 @@ imports:
- plugin/pkg/scheduler/api
- plugin/pkg/scheduler/api
- plugin/pkg/scheduler/schedulercache
- plugin/pkg/scheduler/schedulercache
- plugin/pkg/scheduler/util
- plugin/pkg/scheduler/util
- staging/src/k8s.io/apimachinery/pkg/util/rand
- name: k8s.io/metrics
- name: k8s.io/metrics
version: 8efbc8e22d00b9c600afec5f1c14073fd2412fce
version: 8efbc8e22d00b9c600afec5f1c14073fd2412fce
subpackages:
subpackages:
...
@@ -513,6 +725,11 @@ imports:
...
@@ -513,6 +725,11 @@ imports:
- pkg/client/clientset_generated/clientset
- pkg/client/clientset_generated/clientset
- pkg/client/clientset_generated/clientset/scheme
- pkg/client/clientset_generated/clientset/scheme
- pkg/client/clientset_generated/clientset/typed/metrics/v1alpha1
- pkg/client/clientset_generated/clientset/typed/metrics/v1alpha1
- name: k8s.io/utils
version: 9fdc871a36f37980dd85f96d576b20d564cc0784
subpackages:
- exec
- exec/testing
- name: vbom.ml/util
- name: vbom.ml/util
version: db5cfe13f5cc80a4990d98e2e1b0707a4d1a5394
version: db5cfe13f5cc80a4990d98e2e1b0707a4d1a5394
repo: https://github.com/fvbommel/util.git
repo: https://github.com/fvbommel/util.git
...
...
glide.yaml
View file @
2b43ecd4
...
@@ -28,7 +28,7 @@ import:
...
@@ -28,7 +28,7 @@ import:
-
package
:
google.golang.org/grpc
-
package
:
google.golang.org/grpc
version
:
1.2.1
version
:
1.2.1
-
package
:
k8s.io/kubernetes
-
package
:
k8s.io/kubernetes
version
:
~1.
7
.0
version
:
~1.
8
.0
-
package
:
github.com/gosuri/uitable
-
package
:
github.com/gosuri/uitable
-
package
:
github.com/asaskevich/govalidator
-
package
:
github.com/asaskevich/govalidator
version
:
^4.0.0
version
:
^4.0.0
...
@@ -48,37 +48,7 @@ import:
...
@@ -48,37 +48,7 @@ import:
-
package
:
vbom.ml/util
-
package
:
vbom.ml/util
repo
:
https://github.com/fvbommel/util.git
repo
:
https://github.com/fvbommel/util.git
vcs
:
git
vcs
:
git
-
package
:
github.com/docker/distribution
version
:
~2.4.0
# hacks for kubernetes v1.7
-
package
:
cloud.google.com/go
-
package
:
github.com/Azure/go-autorest
version
:
v8.0.0
-
package
:
github.com/dgrijalva/jwt-go
-
package
:
github.com/docker/spdystream
-
package
:
github.com/go-openapi/analysis
version
:
b44dc874b601d9e4e2f6e19140e794ba24bead3b
-
package
:
github.com/go-openapi/errors
version
:
d24ebc2075bad502fac3a8ae27aa6dd58e1952dc
-
package
:
github.com/go-openapi/loads
version
:
18441dfa706d924a39a030ee2c3b1d8d81917b38
-
package
:
github.com/go-openapi/spec
version
:
6aced65f8501fe1217321abf0749d354824ba2ff
-
package
:
github.com/google/gofuzz
-
package
:
github.com/hashicorp/golang-lru
-
package
:
github.com/howeyc/gopass
-
package
:
github.com/juju/ratelimit
version
:
5b9ff866471762aa2ab2dced63c9fb6f53921342
-
package
:
github.com/pborman/uuid
-
package
:
golang.org/x/oauth2
-
package
:
gopkg.in/inf.v0
-
package
:
github.com/go-openapi/strfmt
-
package
:
github.com/mitchellh/mapstructure
-
package
:
gopkg.in/mgo.v2/bson
ignore
:
-
k8s.io/client-go
-
k8s.io/apimachinery
testImports
:
testImports
:
-
package
:
github.com/stretchr/testify
-
package
:
github.com/stretchr/testify
version
:
^1.1.4
version
:
^1.1.4
...
...
pkg/helm/portforwarder/pod.go
View file @
2b43ecd4
...
@@ -17,7 +17,7 @@ limitations under the License.
...
@@ -17,7 +17,7 @@ limitations under the License.
package
portforwarder
package
portforwarder
import
(
import
(
"k8s.io/
client-go/pkg/api
/v1"
"k8s.io/
api/core
/v1"
)
)
// These functions are adapted from the "kubernetes" repository's file
// These functions are adapted from the "kubernetes" repository's file
...
...
pkg/helm/portforwarder/portforwarder.go
View file @
2b43ecd4
...
@@ -19,11 +19,11 @@ package portforwarder
...
@@ -19,11 +19,11 @@ package portforwarder
import
(
import
(
"fmt"
"fmt"
"k8s.io/api/core/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes"
corev1
"k8s.io/client-go/kubernetes/typed/core/v1"
corev1
"k8s.io/client-go/kubernetes/typed/core/v1"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/rest"
"k8s.io/client-go/rest"
"k8s.io/helm/pkg/kube"
"k8s.io/helm/pkg/kube"
...
...
pkg/helm/portforwarder/portforwarder_test.go
View file @
2b43ecd4
...
@@ -19,9 +19,9 @@ package portforwarder
...
@@ -19,9 +19,9 @@ package portforwarder
import
(
import
(
"testing"
"testing"
"k8s.io/api/core/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/pkg/api/v1"
)
)
func
mockTillerPod
()
v1
.
Pod
{
func
mockTillerPod
()
v1
.
Pod
{
...
...
pkg/kube/client.go
View file @
2b43ecd4
...
@@ -27,6 +27,10 @@ import (
...
@@ -27,6 +27,10 @@ import (
"time"
"time"
jsonpatch
"github.com/evanphx/json-patch"
jsonpatch
"github.com/evanphx/json-patch"
apps
"k8s.io/api/apps/v1beta2"
batch
"k8s.io/api/batch/v1"
"k8s.io/api/core/v1"
"k8s.io/api/extensions/v1beta1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
...
@@ -40,15 +44,12 @@ import (
...
@@ -40,15 +44,12 @@ import (
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/helper"
"k8s.io/kubernetes/pkg/api/helper"
"k8s.io/kubernetes/pkg/api/v1"
apps
"k8s.io/kubernetes/pkg/apis/apps/v1beta1"
batchinternal
"k8s.io/kubernetes/pkg/apis/batch"
batchinternal
"k8s.io/kubernetes/pkg/apis/batch"
batch
"k8s.io/kubernetes/pkg/apis/batch/v1"
"k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
conditions
"k8s.io/kubernetes/pkg/client/unversioned"
conditions
"k8s.io/kubernetes/pkg/client/unversioned"
"k8s.io/kubernetes/pkg/kubectl"
"k8s.io/kubernetes/pkg/kubectl"
cmdutil
"k8s.io/kubernetes/pkg/kubectl/cmd/util"
cmdutil
"k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/kubectl/resource"
"k8s.io/kubernetes/pkg/kubectl/resource"
"k8s.io/kubernetes/pkg/kubectl/validation"
"k8s.io/kubernetes/pkg/printers"
"k8s.io/kubernetes/pkg/printers"
)
)
...
@@ -103,13 +104,9 @@ func (c *Client) Create(namespace string, reader io.Reader, timeout int64, shoul
...
@@ -103,13 +104,9 @@ func (c *Client) Create(namespace string, reader io.Reader, timeout int64, shoul
}
}
func
(
c
*
Client
)
newBuilder
(
namespace
string
,
reader
io
.
Reader
)
*
resource
.
Result
{
func
(
c
*
Client
)
newBuilder
(
namespace
string
,
reader
io
.
Reader
)
*
resource
.
Result
{
schema
,
err
:=
c
.
Validator
(
true
,
c
.
SchemaCacheDir
)
if
err
!=
nil
{
c
.
Log
(
"warning: failed to load schema: %s"
,
err
)
}
return
c
.
NewBuilder
(
true
)
.
return
c
.
NewBuilder
(
true
)
.
ContinueOnError
()
.
ContinueOnError
()
.
Schema
(
schema
)
.
Schema
(
c
.
validator
()
)
.
NamespaceParam
(
namespace
)
.
NamespaceParam
(
namespace
)
.
DefaultNamespace
()
.
DefaultNamespace
()
.
Stream
(
reader
,
""
)
.
Stream
(
reader
,
""
)
.
...
@@ -117,20 +114,25 @@ func (c *Client) newBuilder(namespace string, reader io.Reader) *resource.Result
...
@@ -117,20 +114,25 @@ func (c *Client) newBuilder(namespace string, reader io.Reader) *resource.Result
Do
()
Do
()
}
}
// BuildUnstructured validates for Kubernetes objects and returns unstructured infos.
func
(
c
*
Client
)
validator
()
validation
.
Schema
{
func
(
c
*
Client
)
BuildUnstructured
(
namespace
string
,
reader
io
.
Reader
)
(
Result
,
error
)
{
const
openapi
=
false
// only works on v1.8 clusters
schema
,
err
:=
c
.
Validator
(
true
,
c
.
SchemaCacheDir
)
schema
,
err
:=
c
.
Validator
(
true
,
openapi
,
c
.
SchemaCacheDir
)
if
err
!=
nil
{
if
err
!=
nil
{
c
.
Log
(
"warning: failed to load schema: %s"
,
err
)
c
.
Log
(
"warning: failed to load schema: %s"
,
err
)
}
}
return
schema
}
// BuildUnstructured validates for Kubernetes objects and returns unstructured infos.
func
(
c
*
Client
)
BuildUnstructured
(
namespace
string
,
reader
io
.
Reader
)
(
Result
,
error
)
{
var
result
Result
var
result
Result
b
,
err
:=
c
.
NewUnstructuredBuilder
(
true
)
b
,
err
:=
c
.
NewUnstructuredBuilder
(
true
)
if
err
!=
nil
{
if
err
!=
nil
{
return
result
,
err
return
result
,
err
}
}
result
,
err
=
b
.
ContinueOnError
()
.
result
,
err
=
b
.
ContinueOnError
()
.
Schema
(
schema
)
.
Schema
(
c
.
validator
()
)
.
NamespaceParam
(
namespace
)
.
NamespaceParam
(
namespace
)
.
DefaultNamespace
()
.
DefaultNamespace
()
.
Stream
(
reader
,
""
)
.
Stream
(
reader
,
""
)
.
...
...
pkg/kube/client_test.go
View file @
2b43ecd4
...
@@ -35,11 +35,11 @@ import (
...
@@ -35,11 +35,11 @@ import (
"k8s.io/client-go/rest/fake"
"k8s.io/client-go/rest/fake"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/testapi"
"k8s.io/kubernetes/pkg/api/testapi"
"k8s.io/kubernetes/pkg/api/validation"
"k8s.io/kubernetes/pkg/kubectl"
"k8s.io/kubernetes/pkg/kubectl"
cmdtesting
"k8s.io/kubernetes/pkg/kubectl/cmd/testing"
cmdtesting
"k8s.io/kubernetes/pkg/kubectl/cmd/testing"
cmdutil
"k8s.io/kubernetes/pkg/kubectl/cmd/util"
cmdutil
"k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/kubectl/resource"
"k8s.io/kubernetes/pkg/kubectl/resource"
"k8s.io/kubernetes/pkg/kubectl/validation"
"k8s.io/kubernetes/pkg/printers"
"k8s.io/kubernetes/pkg/printers"
watchjson
"k8s.io/kubernetes/pkg/watch/json"
watchjson
"k8s.io/kubernetes/pkg/watch/json"
)
)
...
...
pkg/kube/tunnel.go
View file @
2b43ecd4
...
@@ -21,11 +21,12 @@ import (
...
@@ -21,11 +21,12 @@ import (
"io"
"io"
"io/ioutil"
"io/ioutil"
"net"
"net"
"net/http"
"strconv"
"strconv"
"k8s.io/client-go/rest"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/portforward"
"k8s.io/client-go/tools/portforward"
"k8s.io/client-go/t
ools/remotecommand
"
"k8s.io/client-go/t
ransport/spdy
"
)
)
// Tunnel describes a ssh-like tunnel to a kubernetes pod
// Tunnel describes a ssh-like tunnel to a kubernetes pod
...
@@ -71,10 +72,11 @@ func (t *Tunnel) ForwardPort() error {
...
@@ -71,10 +72,11 @@ func (t *Tunnel) ForwardPort() error {
Name
(
t
.
PodName
)
.
Name
(
t
.
PodName
)
.
SubResource
(
"portforward"
)
.
URL
()
SubResource
(
"portforward"
)
.
URL
()
dialer
,
err
:=
remotecommand
.
NewExecutor
(
t
.
config
,
"POST"
,
u
)
transport
,
upgrader
,
err
:=
spdy
.
RoundTripperFor
(
t
.
config
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
dialer
:=
spdy
.
NewDialer
(
upgrader
,
&
http
.
Client
{
Transport
:
transport
},
"POST"
,
u
)
local
,
err
:=
getAvailablePort
()
local
,
err
:=
getAvailablePort
()
if
err
!=
nil
{
if
err
!=
nil
{
...
...
pkg/kube/wait.go
View file @
2b43ecd4
...
@@ -19,20 +19,18 @@ package kube // import "k8s.io/helm/pkg/kube"
...
@@ -19,20 +19,18 @@ package kube // import "k8s.io/helm/pkg/kube"
import
(
import
(
"time"
"time"
appsv1beta1
"k8s.io/api/apps/v1beta1"
appsv1beta2
"k8s.io/api/apps/v1beta2"
"k8s.io/api/core/v1"
extensions
"k8s.io/api/extensions/v1beta1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/
kubernetes/pkg/api/v1
"
"k8s.io/
client-go/kubernetes
"
"k8s.io/kubernetes/pkg/api/v1/helper"
"k8s.io/kubernetes/pkg/api/v1/helper"
podutil
"k8s.io/kubernetes/pkg/api/v1/pod"
podutil
"k8s.io/kubernetes/pkg/api/v1/pod"
apps
"k8s.io/kubernetes/pkg/apis/apps/v1beta1"
extensions
"k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset"
core
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/core/v1"
extensionsclient
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/extensions/v1beta1"
internalclientset
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
deploymentutil
"k8s.io/kubernetes/pkg/controller/deployment/util"
deploymentutil
"k8s.io/kubernetes/pkg/controller/deployment/util"
)
)
...
@@ -47,11 +45,10 @@ type deployment struct {
...
@@ -47,11 +45,10 @@ type deployment struct {
func
(
c
*
Client
)
waitForResources
(
timeout
time
.
Duration
,
created
Result
)
error
{
func
(
c
*
Client
)
waitForResources
(
timeout
time
.
Duration
,
created
Result
)
error
{
c
.
Log
(
"beginning wait for %d resources with timeout of %v"
,
len
(
created
),
timeout
)
c
.
Log
(
"beginning wait for %d resources with timeout of %v"
,
len
(
created
),
timeout
)
cs
,
err
:=
c
.
ClientSet
()
kcs
,
err
:=
c
.
Kubernetes
ClientSet
()
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
client
:=
versionedClientsetForDeployment
(
cs
)
return
wait
.
Poll
(
2
*
time
.
Second
,
timeout
,
func
()
(
bool
,
error
)
{
return
wait
.
Poll
(
2
*
time
.
Second
,
timeout
,
func
()
(
bool
,
error
)
{
pods
:=
[]
v1
.
Pod
{}
pods
:=
[]
v1
.
Pod
{}
services
:=
[]
v1
.
Service
{}
services
:=
[]
v1
.
Service
{}
...
@@ -64,24 +61,24 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
...
@@ -64,24 +61,24 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
}
}
switch
value
:=
obj
.
(
type
)
{
switch
value
:=
obj
.
(
type
)
{
case
(
*
v1
.
ReplicationController
)
:
case
(
*
v1
.
ReplicationController
)
:
list
,
err
:=
getPods
(
client
,
value
.
Namespace
,
value
.
Spec
.
Selector
)
list
,
err
:=
getPods
(
kcs
,
value
.
Namespace
,
value
.
Spec
.
Selector
)
if
err
!=
nil
{
if
err
!=
nil
{
return
false
,
err
return
false
,
err
}
}
pods
=
append
(
pods
,
list
...
)
pods
=
append
(
pods
,
list
...
)
case
(
*
v1
.
Pod
)
:
case
(
*
v1
.
Pod
)
:
pod
,
err
:=
client
.
Core
()
.
Pods
(
value
.
Namespace
)
.
Get
(
value
.
Name
,
metav1
.
GetOptions
{})
pod
,
err
:=
kcs
.
Core
()
.
Pods
(
value
.
Namespace
)
.
Get
(
value
.
Name
,
metav1
.
GetOptions
{})
if
err
!=
nil
{
if
err
!=
nil
{
return
false
,
err
return
false
,
err
}
}
pods
=
append
(
pods
,
*
pod
)
pods
=
append
(
pods
,
*
pod
)
case
(
*
extensions
.
Deployment
)
:
case
(
*
extensions
.
Deployment
)
:
currentDeployment
,
err
:=
client
.
Extensions
()
.
Deployments
(
value
.
Namespace
)
.
Get
(
value
.
Name
,
metav1
.
GetOptions
{})
currentDeployment
,
err
:=
kcs
.
Extensions
()
.
Deployments
(
value
.
Namespace
)
.
Get
(
value
.
Name
,
metav1
.
GetOptions
{})
if
err
!=
nil
{
if
err
!=
nil
{
return
false
,
err
return
false
,
err
}
}
// Find RS associated with deployment
// Find RS associated with deployment
newReplicaSet
,
err
:=
deploymentutil
.
GetNewReplicaSet
(
currentDeployment
,
client
)
newReplicaSet
,
err
:=
deploymentutil
.
GetNewReplicaSet
(
currentDeployment
,
kcs
.
ExtensionsV1beta1
()
)
if
err
!=
nil
||
newReplicaSet
==
nil
{
if
err
!=
nil
||
newReplicaSet
==
nil
{
return
false
,
err
return
false
,
err
}
}
...
@@ -91,31 +88,37 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
...
@@ -91,31 +88,37 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
}
}
deployments
=
append
(
deployments
,
newDeployment
)
deployments
=
append
(
deployments
,
newDeployment
)
case
(
*
extensions
.
DaemonSet
)
:
case
(
*
extensions
.
DaemonSet
)
:
list
,
err
:=
getPods
(
client
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
list
,
err
:=
getPods
(
kcs
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
if
err
!=
nil
{
if
err
!=
nil
{
return
false
,
err
return
false
,
err
}
}
pods
=
append
(
pods
,
list
...
)
pods
=
append
(
pods
,
list
...
)
case
(
*
apps
.
StatefulSet
)
:
case
(
*
appsv1beta1
.
StatefulSet
)
:
list
,
err
:=
getPods
(
client
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
list
,
err
:=
getPods
(
kcs
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
if
err
!=
nil
{
return
false
,
err
}
pods
=
append
(
pods
,
list
...
)
case
(
*
appsv1beta2
.
StatefulSet
)
:
list
,
err
:=
getPods
(
kcs
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
if
err
!=
nil
{
if
err
!=
nil
{
return
false
,
err
return
false
,
err
}
}
pods
=
append
(
pods
,
list
...
)
pods
=
append
(
pods
,
list
...
)
case
(
*
extensions
.
ReplicaSet
)
:
case
(
*
extensions
.
ReplicaSet
)
:
list
,
err
:=
getPods
(
client
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
list
,
err
:=
getPods
(
kcs
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
if
err
!=
nil
{
if
err
!=
nil
{
return
false
,
err
return
false
,
err
}
}
pods
=
append
(
pods
,
list
...
)
pods
=
append
(
pods
,
list
...
)
case
(
*
v1
.
PersistentVolumeClaim
)
:
case
(
*
v1
.
PersistentVolumeClaim
)
:
claim
,
err
:=
client
.
Core
()
.
PersistentVolumeClaims
(
value
.
Namespace
)
.
Get
(
value
.
Name
,
metav1
.
GetOptions
{})
claim
,
err
:=
kcs
.
Core
()
.
PersistentVolumeClaims
(
value
.
Namespace
)
.
Get
(
value
.
Name
,
metav1
.
GetOptions
{})
if
err
!=
nil
{
if
err
!=
nil
{
return
false
,
err
return
false
,
err
}
}
pvc
=
append
(
pvc
,
*
claim
)
pvc
=
append
(
pvc
,
*
claim
)
case
(
*
v1
.
Service
)
:
case
(
*
v1
.
Service
)
:
svc
,
err
:=
client
.
Core
()
.
Services
(
value
.
Namespace
)
.
Get
(
value
.
Name
,
metav1
.
GetOptions
{})
svc
,
err
:=
kcs
.
Core
()
.
Services
(
value
.
Namespace
)
.
Get
(
value
.
Name
,
metav1
.
GetOptions
{})
if
err
!=
nil
{
if
err
!=
nil
{
return
false
,
err
return
false
,
err
}
}
...
@@ -178,20 +181,10 @@ func (c *Client) deploymentsReady(deployments []deployment) bool {
...
@@ -178,20 +181,10 @@ func (c *Client) deploymentsReady(deployments []deployment) bool {
return
true
return
true
}
}
func
getPods
(
client
clientset
.
Interface
,
namespace
string
,
selector
map
[
string
]
string
)
([]
v1
.
Pod
,
error
)
{
func
getPods
(
client
kubernetes
.
Interface
,
namespace
string
,
selector
map
[
string
]
string
)
([]
v1
.
Pod
,
error
)
{
list
,
err
:=
client
.
Core
()
.
Pods
(
namespace
)
.
List
(
metav1
.
ListOptions
{
list
,
err
:=
client
.
Core
()
.
Pods
(
namespace
)
.
List
(
metav1
.
ListOptions
{
FieldSelector
:
fields
.
Everything
()
.
String
(),
FieldSelector
:
fields
.
Everything
()
.
String
(),
LabelSelector
:
labels
.
Set
(
selector
)
.
AsSelector
()
.
String
(),
LabelSelector
:
labels
.
Set
(
selector
)
.
AsSelector
()
.
String
(),
})
})
return
list
.
Items
,
err
return
list
.
Items
,
err
}
}
func
versionedClientsetForDeployment
(
internalClient
internalclientset
.
Interface
)
clientset
.
Interface
{
if
internalClient
==
nil
{
return
&
clientset
.
Clientset
{}
}
return
&
clientset
.
Clientset
{
CoreV1Client
:
core
.
New
(
internalClient
.
Core
()
.
RESTClient
()),
ExtensionsV1beta1Client
:
extensionsclient
.
New
(
internalClient
.
Extensions
()
.
RESTClient
()),
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment