-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Pipelines is incorrectly removing Tekton Chains annotations #7291
Comments
Yes. We need to remove filter for chains. We removed for results also. If chains required some annotation, then it should either write k8s CEL admission policy or webhook. |
@wlynch question, should it be on |
I believe either? My expectation would be the annotations trickle down PipelineRun > Pipeline > TaskRun > Task. |
Kind of, but ideally, |
I wanted to raise this discussion again since at this point, Chains e2e tests only run with very old versions of Tekton Pipelines. It is challenging to test against newer features like StepActions etc. |
@chitrangpatel do you agree with the above sentence:
Today, this is messed up, #6127 is trying to remove this behavior, but it might be a very breaking change (and I didn't really got time or will to keep rebasing at some point). We could make this behavior optional (or behind a feature flag) and switch it later on (giving users relying on it time to adapt). |
Yes, I agree with that sentence. So the idea is that we don't want |
Today, if you look at tektoncd/chains#1117, I think that the issue is that even within a standalone TaskRun, we zap the annotation completely. Isn't that wrong? I think the issue is that Pipelines is removing the chains annotations completely regardless of whether it is being propagated or not. Please keep me honest here @renzodavid9, @wlynch . I think that's wrong 🤔? |
Expected Behavior
If I set
chains.tekton.dev/transparency-upload=true
on a Pipeline, this should propagate down to child Tasks during a run.Actual Behavior
Pipelines controller filters out all
chains.tekton.dev
annotations. This breaks the behavior of thetransparency-enabled: manual
in Chains.See https://tektoncd.slack.com/archives/CJ4ERJWAU/p1697627188085879, #6441
Steps to Reproduce the Problem
chains.tekton.dev/transparency-upload=true
annotation (e.g. https://github.com/tektoncd/chains/blob/3fe5c46e9a259f3a562f85c115418cb4a1106e00/release/publish.yaml#L21)Additional Info
/cc @vdemeester @khrm
The text was updated successfully, but these errors were encountered: