Skip to content

Commit 715011e

Browse files
committed
Drop workaround for entity_type diverging from actual kind
Workaround was also missing for SecurityContextConstraints, which probably means create_security_context_constraint was broken.
1 parent 783c58b commit 715011e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/kubeclient/common.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,7 @@ def create_entity(entity_type, resource_name, entity_config)
338338
# TODO: temporary solution to add "kind" and apiVersion to request
339339
# until this issue is solved
340340
# https://github.com/GoogleCloudPlatform/kubernetes/issues/6439
341-
# TODO: #2 solution for
342-
# https://github.com/kubernetes/kubernetes/issues/8115
343-
hash[:kind] = (entity_type.eql?('Endpoint') ? 'Endpoints' : entity_type)
341+
hash[:kind] = entity_type
344342
hash[:apiVersion] = @api_group + @api_version
345343
response = handle_exception do
346344
rest_client[ns_prefix + resource_name]

0 commit comments

Comments
 (0)