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

When a duplicate parameter name is encountered in the pipeline, there is an issue with inaccurate path reporting. #7650

Closed
l-qing opened this issue Feb 10, 2024 · 1 comment · Fixed by #7651
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@l-qing
Copy link
Contributor

l-qing commented Feb 10, 2024

Expected Behavior

admission webhook "validation.webhook.pipeline.tekton.dev" denied the request: validation failed: params names must be unique, the same param: abc is defined multiple times at:
spec.tasks[0].params[1].name

Actual Behavior

admission webhook "validation.webhook.pipeline.tekton.dev" denied the request: validation failed: parameter names must be unique, the parameter "abc" is also defined at:
spec.tasks.params[0][1].name, spec.tasks[0].params[1].name

Steps to Reproduce the Problem

  1. Create a pipeline
cat <<EOF | kubectl create -f -
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
  name: pipeline
spec:
  tasks:
    - name: name-1
      taskRef:
        name: hi
        kind: Task
      params:
        - name: "abc"
          value: ""
        - name: "abc"
          value: ""
EOF

Additional Info

  • Kubernetes version:
Client Version: v1.29.1
Server Version: v1.27.7
  • Tekton Pipeline version:
v0.56.0
@l-qing l-qing added the kind/bug Categorizes issue or PR as related to a bug. label Feb 10, 2024
@l-qing
Copy link
Contributor Author

l-qing commented Feb 10, 2024

/assign @l-qing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant