Skip to content

Commit

Permalink
Drop workaround for entity_type diverging from actual kind
Browse files Browse the repository at this point in the history
Workaround was also missing for SecurityContextConstraints,
which probably means create_security_context_constraint was broken.
  • Loading branch information
cben committed Nov 23, 2018
1 parent e728976 commit d38ca33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/kubeclient/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ def create_entity(entity_type, resource_name, entity_config)
# TODO: temporary solution to add "kind" and apiVersion to request
# until this issue is solved
# https://github.com/GoogleCloudPlatform/kubernetes/issues/6439
# TODO: #2 solution for
# https://github.com/kubernetes/kubernetes/issues/8115
hash[:kind] = (entity_type.eql?('Endpoint') ? 'Endpoints' : entity_type)
hash[:kind] = entity_type
hash[:apiVersion] = @api_group + @api_version
response = handle_exception do
rest_client[ns_prefix + resource_name]
Expand Down

0 comments on commit d38ca33

Please sign in to comment.