Skip to content

Commit dc6302b

Browse files
committed
add file extention .toml
1 parent 5d868c8 commit dc6302b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

run/src/main/kotlin/com/cosmotech/run/workflow/argo/WorkflowBuilders.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ internal fun buildTemplate(
7474
listOf(
7575
V1VolumeMount()
7676
.name("coal-config")
77-
.mountPath(VOLUME_COAL_PATH)
78-
.subPath(VOLUME_COAL_PATH + "/" + "${organizationId}-${workspaceId}-coal-config")
77+
.mountPath(VOLUME_COAL_PATH + "/coal-config.toml")
78+
.subPath("coal-config.toml")
7979
)
8080
val secretVolumeMount =
8181
csmPlatformProperties.argo.workflows.secrets.map { secret ->
@@ -208,8 +208,13 @@ internal fun buildWorkflowSpec(
208208
.name("coal-config")
209209
.configMap(
210210
V1ConfigMapVolumeSource()
211-
.name("${organizationId}-${workspaceId}-coal-config")
212211
.optional(true)
212+
.name("${organizationId}-${workspaceId}-coal-config")
213+
.addItemsItem(
214+
V1KeyToPath()
215+
.key("coal-config.toml")
216+
.path("coal-config.toml")
217+
)
213218
)
214219
)
215220

0 commit comments

Comments
 (0)