Skip to content

Commit d6eb543

Browse files
authored
Merge pull request #110 from kubernetes-sigs/revert-108-update-k8s-1.11
Revert "Updating to k8s 1.11."
2 parents 3b338eb + b8d347e commit d6eb543

File tree

1,192 files changed

+18265
-26524
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,192 files changed

+18265
-26524
lines changed

Gopkg.lock

Lines changed: 48 additions & 295 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,19 @@ required = ["sigs.k8s.io/testing_frameworks/integration",
3232

3333
[[constraint]]
3434
name = "k8s.io/api"
35-
version = "kubernetes-1.11.0"
35+
version = "kubernetes-1.10.1"
3636

3737
[[constraint]]
3838
name = "k8s.io/apiextensions-apiserver"
39-
version = "kubernetes-1.11.0"
39+
version = "kubernetes-1.10.1"
4040

4141
[[constraint]]
4242
name = "k8s.io/apimachinery"
43-
version = "kubernetes-1.11.0"
43+
version = "kubernetes-1.10.1"
4444

4545
[[constraint]]
4646
name = "k8s.io/client-go"
47-
version = "kubernetes-1.11.0"
48-
49-
[[override]]
50-
name = "github.com/json-iterator/go"
51-
# This is the commit at which k8s depends on this in 1.11
52-
# It seems to be broken at HEAD.
53-
revision = "f2b4162afba35581b6d4a50d3b8f34e33c144682"
47+
version = "kubernetes-1.10.1"
5448

5549
[prune]
5650
go-tests = true

pkg/admission/cert/writer/secret.go

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (s *SecretCertWriter) parseAnnotations(annotations map[string]string, secre
101101
if strings.HasPrefix(k, SecretCertProvisionAnnotationKeyPrefix) {
102102
webhookName := strings.TrimPrefix(k, SecretCertProvisionAnnotationKeyPrefix)
103103
secretWebhookMap[webhookName] = &webhookAndSecret{
104-
secret: newNamespacedNameFromString(v),
104+
secret: types.NewNamespacedNameFromString(v),
105105
}
106106
}
107107
}
@@ -182,24 +182,6 @@ func (s *secretReadWriter) read(webhookName string) (*generator.Artifacts, error
182182
return secretToCerts(secret), err
183183
}
184184

185-
// newNamespacedNameFromString parses the provided string and returns a NamespacedName.
186-
// The expected format is as per String() above.
187-
// If the input string is invalid, the returned NamespacedName has all empty string field values.
188-
// This allows a single-value return from this function, while still allowing error checks in the caller.
189-
// Note that an input string which does not include exactly one Separator is not a valid input (as it could never
190-
// have neem returned by String() )
191-
// NOTE: https://github.com/kubernetes/apimachinery/commit/2b167bb262168a225efe64d1fdc40ea97870ca9e removed this from
192-
// "k8s.io/apimachinery/pkg/types". Code copied here.
193-
func newNamespacedNameFromString(s string) types.NamespacedName {
194-
nn := types.NamespacedName{}
195-
result := strings.Split(s, string(types.Separator))
196-
if len(result) == 2 {
197-
nn.Namespace = result[0]
198-
nn.Name = result[1]
199-
}
200-
return nn
201-
}
202-
203185
func secretToCerts(secret *corev1.Secret) *generator.Artifacts {
204186
if secret.Data == nil {
205187
return nil

pkg/cache/internal/informers_map.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,14 @@ func (ip *InformersMap) newListWatch(gvk schema.GroupVersionKind) (*cache.ListWa
217217
return &cache.ListWatch{
218218
ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) {
219219
res := listObj.DeepCopyObject()
220-
err := client.Get().Resource(mapping.Resource.Resource).VersionedParams(&opts, ip.paramCodec).Do().Into(res)
220+
err := client.Get().Resource(mapping.Resource).VersionedParams(&opts, ip.paramCodec).Do().Into(res)
221221
return res, err
222222
},
223223
// Setup the watch function
224224
WatchFunc: func(opts metav1.ListOptions) (watch.Interface, error) {
225225
// Watch needs to be set to true separately
226226
opts.Watch = true
227-
return client.Get().Resource(mapping.Resource.Resource).VersionedParams(&opts, ip.paramCodec).Watch()
227+
return client.Get().Resource(mapping.Resource).VersionedParams(&opts, ip.paramCodec).Watch()
228228
},
229229
}, nil
230230
}

pkg/client/apiutil/apimachinery.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ import (
88
"k8s.io/apimachinery/pkg/runtime/schema"
99
"k8s.io/apimachinery/pkg/runtime/serializer"
1010
"k8s.io/client-go/discovery"
11+
"k8s.io/client-go/dynamic"
1112
"k8s.io/client-go/rest"
12-
"k8s.io/client-go/restmapper"
1313
)
1414

1515
// NewDiscoveryRESTMapper constructs a new RESTMapper based on discovery
1616
// information fetched by a new client with the given config.
1717
func NewDiscoveryRESTMapper(c *rest.Config) (meta.RESTMapper, error) {
1818
// Get a mapper
1919
dc := discovery.NewDiscoveryClientForConfigOrDie(c)
20-
gr, err := restmapper.GetAPIGroupResources(dc)
20+
gr, err := discovery.GetAPIGroupResources(dc)
2121
if err != nil {
2222
return nil, err
2323
}
24-
return restmapper.NewDiscoveryRESTMapper(gr), nil
24+
return discovery.NewRESTMapper(gr, dynamic.VersionInterfaces), nil
2525
}
2626

2727
// GVKForObject finds the GroupVersionKind associated with the given object, if there is only a single such GVK.

pkg/client/client_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (r *resourceMeta) isNamespaced() bool {
132132

133133
// resource returns the resource name of the type
134134
func (r *resourceMeta) resource() string {
135-
return r.mapping.Resource.Resource
135+
return r.mapping.Resource
136136
}
137137

138138
// objMeta stores type and object information about a Kubernetes type

vendor/github.com/google/btree/.travis.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

vendor/github.com/google/btree/LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

vendor/github.com/google/btree/README.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)