Skip to content

Templating args passed to klio-cli are not transmitted to klioexec #175

@pomdtr

Description

@pomdtr

Environment

  • klio* version(s):
    • klio-cli: v1.0.5

Description of the bug

When running the klio job run command with template args:

klio job run --config-file config/streaming/klio-job-stage.yaml \
  --template dailymotion_api_key=$DAILYMOTION_API_KEY \
  --template dailymotion_api_secret=$DAILYMOTION_API_SECRET \
  --direct-runner --force-build

The template args are not passed to klioexec entrypoint:

'command': ['run',
             '--image-tag',
             '1c6edd0a-dirty',
             '--direct-runner',
             '--config-file',
             '/usr/src/config/materialized_config.yaml']

Causing the following exception

klio_core.exceptions.KlioConfigTemplatingException: 'dailymotion_api_key' missing in key template overrides.

What you expected to happen

Template args should be passed to the klioexec command

How to reproduce (as minimally and precisely as possible)

Run any command involving the template args.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions