code: def _kput(url, data):
      ''' put any object in kubernetes based on URL '''
  
      # Prepare headers
      headers = {"Content-Type": "application/json"}
      # Make request
      ret = http.query(url,
                       method='PUT',
                       header_dict=headers,
                       data=salt.utils.json.dumps(data))
      # Check requests status
      if ret.get('error'):
          return ret
      else:
          return salt.utils.json.loads(ret.get('body')f _kput(url, data):
      ''' put any object in kubernetes based on URL '''
  
      # Prepare headers
      headers = {"Content-Type": "application/json"}
      # Make request
      ret = http.query(url,
                       method='PUT',
                       header_dict=headers,
                       data=salt.utils.json.dumps(data))
      # Check requests status
      if ret.get('error'):
          return ret
      else:
          return salt.utils.json.loads(ret.get('body'))
docs: put any object in kubernetes based on URL