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

Fix the declarations for compareSecret. #658

Merged
merged 1 commit into from
Jul 6, 2020

Conversation

bigkevmcd
Copy link
Member

Changes

compareSecret in both its forms was declared as returning a String not a
Bool.

This fixes both of these.

Fixes: #644

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Release Notes

The CEL function compareSecret now returns a boolean value, which makes it work in multiple logical comparisons in a filter.

@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 2, 2020
compareSecret in both its forms was declared as returning a String not a
Bool.

This fixes both of these.
Copy link
Member

@dibyom dibyom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/kind bug
/lgtm

@bigkevmcd Do you think we need to do a patch v0.6.1 with this?

@tekton-robot tekton-robot added kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. labels Jul 6, 2020
@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dibyom

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 6, 2020
@tekton-robot tekton-robot merged commit 69e02ea into tektoncd:master Jul 6, 2020
@dibyom dibyom added this to the Triggers v0.6.1 milestone Jul 7, 2020
@bigkevmcd bigkevmcd deleted the compare-secret-bool branch July 29, 2020 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.6.0: CEL: compareSecrets error:found no matching overload for '_&&_' applied to '(bool, string)'\n
3 participants