Skip to content

Local Resolver - param substitution of default value inherited from another param #8862

@valAndre07

Description

@valAndre07

Feature request

Using local resolution, the param substitution is not well applied when using default value inherited from another param value as a fallback.

Use case

In some case, I need to use default value inherited from another param value as a fallback (overridable by a PipelineRun).

apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
  name: pipeline-with-default-value-from-param
  namespace: jx
spec:
  params:
    - name: fallback-param
      type: string
      default: "fallback value"
    - name: param
      type: string
      default: $(params.fallback-param)

We also have the same use case with task.

It's working well with remote resolver when then passing param to task, but not with local resolver. The result value is the litteral $(params.fallback-param). Could this substitution be backported to local resolver ?

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions