Skip to content

Invalid value for name, must not be None #20

@tsadoklf

Description

@tsadoklf

Running the example code I keep getting Invalid value for name, must not be None

File "index.py", line 19, in <module>
    ret = handler.handle(st)
  File "/home/app/function/handler.py", line 106, in handle
    api_instance.create_namespaced_workflow(namespace, manifest)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api/v1alpha1_api.py", line 263, in create_namespaced_workflow
    (data) = self.create_namespaced_workflow_with_http_info(namespace, body, **kwargs)  # noqa: E501
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api/v1alpha1_api.py", line 330, in create_namespaced_workflow_with_http_info
    return self.api_client.call_api(
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 325, in call_api
    return self.__call_api(resource_path, method,
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 169, in __call_api
    return_data = self.deserialize(response_data, response_type)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 241, in deserialize
    return self.__deserialize(data, response_type)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 280, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 624, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 280, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 624, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 257, in __deserialize
    return [self.__deserialize(sub_data, sub_kls)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 257, in <listcomp>
    return [self.__deserialize(sub_data, sub_kls)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 280, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 624, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 280, in __deserialize
    return self.__deserialize_model(data, klass)
  File "/home/app/.local/lib/python3.8/site-packages/argo/workflows/client/api_client.py", line 626, in __deserialize_model
    instance = klass(**kwargs)
  File "/home/app/.local/lib/python3.8/site-packages/kubernetes/client/models/v1_container.py", line 125, in __init__
    self.name = name
  File "/home/app/.local/lib/python3.8/site-packages/kubernetes/client/models/v1_container.py", line 356, in name
    raise ValueError("Invalid value for `name`, must not be `None`")
ValueError: Invalid value for `name`, must not be `None`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions