kubeclient 0.8.0 → 0.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c58fdcc763f33940a6827013a09ee5d6e6eaf89b
4
- data.tar.gz: e749e8956a3c52a92a6bca8924ec9b15d592acd7
3
+ metadata.gz: 89981c7be5cb927a6c04b5c8c40304476a21f56f
4
+ data.tar.gz: b81b39d1e30735371b0e2d74109541a38a7cacf0
5
5
  SHA512:
6
- metadata.gz: 56b1514eb727a55d5ee17f3d29503fd2438b6dc06fdcf4139a63f6010a791ec5d18076cc223f16abd14c5611e46b2cdb8a2b4ff756bc2f14063c6a83288357ac
7
- data.tar.gz: 8b1175e0133a4967eb39d186785d4c4ad2d2cb6747f20166902e093d30f00b525445c9d5c276cf341c8f2a3a7ecf4648f825791911bb6d267011d97e1ce665c1
6
+ metadata.gz: 2bbd52b20567a3c70eeb0a784a0e608e6adcbf451b0ba61b10565aaafd831f972f717902d62b3daeeef5ed2bc3297083e471a8f430c7142af2cf6e1581ab12b8
7
+ data.tar.gz: 2b549a7cbde4f56ec88c0a7ef5fd802718d40536549507d912e682026cebde0cc7a999e66f764cd0095a568e604a54304d87de7674dbb6b3eba3edd772a188f6
@@ -194,6 +194,7 @@ module Kubeclient
194
194
  # https://github.com/GoogleCloudPlatform/kubernetes/issues/6439
195
195
  hash['kind'] = entity_type
196
196
  hash['apiVersion'] = @api_version
197
+ @headers['Content-Type'] = 'application/json'
197
198
  response = handle_exception do
198
199
  rest_client[ns_prefix + resource_name(entity_type)]
199
200
  .post(hash.to_json, @headers)
@@ -208,6 +209,7 @@ module Kubeclient
208
209
  # struct
209
210
  hash = entity_config.to_hash
210
211
  ns_prefix = build_namespace_prefix(entity_config.metadata['table'][:namespace])
212
+ @headers['Content-Type'] = 'application/json'
211
213
  handle_exception do
212
214
  rest_client[ns_prefix + resource_name(entity_type) + "/#{name}"]
213
215
  .put(hash.to_json, @headers)
@@ -1,4 +1,4 @@
1
1
  # Kubernetes REST-API Client
2
2
  module Kubeclient
3
- VERSION = '0.8.0'
3
+ VERSION = '0.8.1'
4
4
  end
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: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alissa Bonas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-18 00:00:00.000000000 Z
11
+ date: 2016-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler