convert this sync from the container Deploy action...
# 🤖|ask-kapa
b
@microscopic-river-74022 convert this sync from the container Deploy action to something valid in the Helm Deploy action
Copy code
kind: Deploy
type: container
build: api-build
name: api
description: Golang API deployment
spec:
  sync:
    paths:
      - target: /app
        mode: "one-way-replica"
m
Please stand by @bright-policeman-43626 as I search the knowledge base. We are experiencing especially high traffic right now and might take longer than usual. :wave:
---------------------- To convert the sync configuration from a container Deploy action to a Helm Deploy action, you can follow this example:
Copy code
yaml
kind: Deploy
type: helm
name: api
description: Golang API deployment
spec:
  sync:
    paths:
      - containerPath: /app
        sourcePath: ${actions.build.api-build.sourcePath}
        mode: "one-way-replica"
In the Helm Deploy action, you need to use
containerPath
instead of
target
, and you also need to specify the
sourcePath
. You can use the
${actions.build.<name>.sourcePath}
template string to reference the source path of the corresponding build action. Sources: - Helm Deploy Action - Code Synchronization () - ConfigMap Helm - spec.sync.paths () ----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon: ----------------------
message has been deleted