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

InvalidMatrixParameterTypes for param which is not part of matrix #7070

Closed
Tracked by #5265
pritidesai opened this issue Aug 24, 2023 · 0 comments · Fixed by #7064
Closed
Tracked by #5265

InvalidMatrixParameterTypes for param which is not part of matrix #7070

pritidesai opened this issue Aug 24, 2023 · 0 comments · Fixed by #7064
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@pritidesai
Copy link
Member

pritidesai commented Aug 24, 2023

#7064 (comment)

The example pipelineRun fails with:

     status:
          completionTime: "2023-08-24T05:03:18Z"
          conditions:
          - lastTransitionTime: "2023-08-24T05:03:18Z"
            message: parameters of type array only are allowed, but param "browser" has type
              "string" in pipelineTask "matrix-and-params"
            reason: InvalidMatrixParameterTypes
            status: "False"
            type: Succeeded

The pipelineTask matrix-and-params does not have a param named browser as part of the matrix. Why is browser listed as a matrix param 🤔

- name: matrix-and-params
matrix:
params:
- name: platform
value:
- linux
- mac
- windows
params:
- name: browser
value: chrome
taskRef:
name: platform-browsers

Running it locally, results in the same corrupted data:

(v1.Params) (len=1 cap=1) {
 (v1.Param) {
  Name: (string) (len=7) "browser",
  Value: (v1.ParamValue) {
   Type: (v1.ParamType) (len=6) "string",
   StringVal: (string) (len=6) "chrome",
   ArrayVal: ([]string) <nil>,
   ObjectVal: (map[string]string) <nil>
  }
 }
}

/kind bug

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
2 participants