Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Support for Object Parameters in Tekton Pipelines #116

Open
luismafra opened this issue Jul 24, 2024 · 0 comments · May be fixed by #117
Open

Feat: Support for Object Parameters in Tekton Pipelines #116

luismafra opened this issue Jul 24, 2024 · 0 comments · May be fixed by #117

Comments

@luismafra
Copy link

Is your feature request related to a problem? Please describe.

Currently, the tekton-lint tool does not properly handle parameters of type object in Tekton pipeline definitions. This causes issues when parameters of this type are used in tasks, resulting in incorrect warnings and errors.

For example, given a parameter defined as:

- name: gitRepository
  description: Git Repository.
  type: object
  properties:
    defaultBranch:
      type: string
    name:
      type: string
    owner:
      type: string

And its usage in a task:

- name: repositoryName
  value: $(params.gitRepository.name)

The tool incorrectly reports:

Undefined param 'gitRepository.name' at .spec.tasks[2].params[8].value in 'git-clone'

Describe the solution you'd like
The tool should correctly recognize and handle parameters of type object and their properties, without reporting them as undefined.

Describe alternatives you've considered

Additional context
https://tekton.dev/docs/pipelines/tasks/#object-type

@luismafra luismafra linked a pull request Jul 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant