kubeclient 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of kubeclient might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/kubeclient.gemspec +0 -1
- data/lib/kubeclient/common.rb +2 -0
- data/lib/kubeclient/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec12a4dcb163b81ca8da0db77cf08752f41177a
|
4
|
+
data.tar.gz: 0a57e47650e7ee368b3d554842a26d982c86896a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57fa63930a3ea9e626076806c1ec24528a0f21e1a60fff77f48edb12ea607a7ec2e35b8c5d70912af2a5116e648b7ee9ad531af4a2c99dcb4f5262fb98ba19d3
|
7
|
+
data.tar.gz: dbab4feff7832d392057430c11301e79ee2d2d3ff827ee471fabb74cb3ef08394579e11c6bd464577f3d36fa838e29c13360bf9307b506c7641cc63cb6de4f61
|
data/kubeclient.gemspec
CHANGED
@@ -27,7 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency 'rubocop', '= 0.30.0'
|
28
28
|
spec.add_dependency 'rest-client'
|
29
29
|
spec.add_dependency 'activesupport'
|
30
|
-
spec.add_dependency 'json'
|
31
30
|
spec.add_dependency 'recursive-open-struct', '= 1.0.0'
|
32
31
|
spec.add_dependency 'http', '= 0.9.8'
|
33
32
|
end
|
data/lib/kubeclient/common.rb
CHANGED
@@ -224,6 +224,7 @@ module Kubeclient
|
|
224
224
|
hash[:kind] = entity_type
|
225
225
|
end
|
226
226
|
hash[:apiVersion] = @api_version
|
227
|
+
@headers['Content-Type'] = 'application/json'
|
227
228
|
response = handle_exception do
|
228
229
|
rest_client[ns_prefix + resource_name(entity_type)]
|
229
230
|
.post(hash.to_json, @headers)
|
@@ -235,6 +236,7 @@ module Kubeclient
|
|
235
236
|
def update_entity(entity_type, entity_config)
|
236
237
|
name = entity_config[:metadata][:name]
|
237
238
|
ns_prefix = build_namespace_prefix(entity_config[:metadata][:namespace])
|
239
|
+
@headers['Content-Type'] = 'application/json'
|
238
240
|
handle_exception do
|
239
241
|
rest_client[ns_prefix + resource_name(entity_type) + "/#{name}"]
|
240
242
|
.put(entity_config.to_h.to_json, @headers)
|
data/lib/kubeclient/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubeclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alissa Bonas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: json
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: recursive-open-struct
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|