Tadas Barzdžius
08/09/2021, 4:02 PMrex
08/09/2021, 5:25 PMTadas Barzdžius
08/09/2021, 5:49 PMrex
09/28/2021, 8:16 AMTadas Barzdžius
09/28/2021, 10:35 AMvolumes:
- name: storage
cephfs:
monitors:
- ip1
- ip2
- ip3
- ip4
- ip5
path: /storage
secretRef:
name: super-secret-secret
user: storage
volumeMounts:
- name: storage
mountPath: /mnt/storage
And I get:
AttributeError: module 'kubernetes.client.models' has no attribute 'list[str]'
File "/usr/local/lib/python3.7/site-packages/dagster/core/instance/__init__.py", line 1502, in launch_run
self._run_launcher.launch_run(LaunchRunContext(pipeline_run=run, workspace=workspace))
File "/usr/local/lib/python3.7/site-packages/dagster_k8s/launcher.py", line 312, in launch_run
user_defined_k8s_config=user_defined_k8s_config,
File "/usr/local/lib/python3.7/site-packages/dagster_k8s/job.py", line 587, in construct_dagster_k8s_job
volume,
File "/usr/local/lib/python3.7/site-packages/dagster_k8s/models.py", line 51, in k8s_model_from_dict
kwargs[attr] = _k8s_value(value, attr_type, mapped_attr)
File "/usr/local/lib/python3.7/site-packages/dagster_k8s/models.py", line 31, in _k8s_value
return k8s_model_from_dict(klass, data)
File "/usr/local/lib/python3.7/site-packages/dagster_k8s/models.py", line 51, in k8s_model_from_dict
kwargs[attr] = _k8s_value(value, attr_type, mapped_attr)
File "/usr/local/lib/python3.7/site-packages/dagster_k8s/models.py", line 15, in _k8s_value
klass = getattr(kubernetes.client.models, classname)
What am I doing incorrectly?