Quy
03/11/2022, 2:32 PMdownload_host_fe_job_stg = download.to_job(
name='download_firebase_fe',
config=partitioned_config,
tags={"dagster-k8s/config": {
'job_config': {
"volumes": [
{"name": "volume1", "secret": {"secret_name": "dagster-gcp-secret"}},
],
"volume_mounts": [
{"name": "volume1", "mountPath": "/tmp"},
]}
}}
)
But i got incorrect TypeError: __init__() got an unexpected keyword argument ‘volumes’
I was wondering if you can help me out? Actually, I follow code snipset in construct_dagster_k8s_job
Quy
03/11/2022, 2:35 PMdaniel
03/11/2022, 3:32 PM"dagster-k8s/config": {
"container_config": {
"volume_mounts": [
{"name": "volume1", "mountPath": "/tmp"},
],
},
"pod_spec_config": {
"volumes": [{"name": "volume1", "secret": {"secretName": "dagster-gcp-secret"}},],
},
(note secret_name changed to secretName). We're going to improve the docs and examples around this in the release next Thursday, and allow snake case keys (secret_name) in addition to camel case keys (secretName).Andrea Giardini
03/11/2022, 5:13 PMdagster-k8s/config
is used to add certain specifications to a dagster Job / Op but, depending on which executor you are using, those tags might be ignored. Tags for Jobs are always picked up, but tags for ops will be used only if the job executor is the k8s_job_executor
otherwise they will be ignored silently.
Am I missing something here?daniel
03/11/2022, 5:17 PMAndrea Giardini
03/11/2022, 5:18 PMdaniel
03/11/2022, 5:25 PMAndrea Giardini
03/11/2022, 5:30 PMdaniel
03/11/2022, 5:36 PMQuy
03/12/2022, 1:39 PM