kestra-io / plugin-kubernetes

https://kestra.io/plugins/plugin-kubernetes/
Apache License 2.0
6 stars 7 forks source link

feat: support glob pattern in output files #146

Closed loicmathieu closed 3 months ago

loicmathieu commented 3 months ago

Fixes https://github.com/kestra-io/kestra/issues/4649

Example:

id: k8s
namespace: company.team

inputs:
  - id: file
    type: FILE

tasks:
  - id: podCreate
    type: io.kestra.plugin.kubernetes.PodCreate
    spec:
      containers:
      - name: unittest
        image: centos
        command:
          - cp
          - "{{workingDir}}/data.txt"
          - "{{workingDir}}/out.txt"
      restartPolicy: Never
    waitUntilRunning: PT3M
    inputFiles:
      data.txt: "{{inputs.file}}"
    outputFiles:
      - "*.txt"