Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix converted legacy bundle->remote resolver syntax to be case-insens…
…itive for kind fixes #6058 When we finished deprecating the legacy bundle resolution syntax, we recommended users change from: ``` taskRef: name: git-batch-merge bundle: gcr.io/tekton-releases/catalog/upstream/git-batch-merge:0.2 ``` to ``` taskRef: resolver: bundles params: - name: bundle value: gcr.io/tekton-releases/catalog/upstream/git-batch-merge:0.2 - name: name value: git-batch-merge - name: kind value: Task ``` But that created a problem - we have been comparing the `kind` parameter to the `dev.tekton.image.kind` annotation value in the bundle, which is generally all lower-case. Since we generally use `Task`, `Pipeline`, etc for `kind` values in our syntax, we've created a situation where the "normal" way to specify a `kind`, i.e., capitalized, is not going to work for most, if not all, bundles. To fix this, we're changing the check in the remote bundles resolver to do a case-insensitive comparison. Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
- Loading branch information