Conversation
Contributor
|
Comparison of Helm chart templating output: # rabbitmq-cluster-operator/templates/messaging-topology-operator/validating-webhook-configuration.yaml
# team-ns/templates/builds/buildpack.yaml
@@ metadata.annotations @@
# tekton.dev/v1/PipelineRun/buildpacks-build-demo-java2-v0-0-1
! - one map entry removed:
- sidecar.istio.io/inject: "false"
! + one map entry added:
+ tekton.dev/auto-cleanup-pvc: "true"
@@ metadata.labels @@
# tekton.dev/v1/PipelineRun/buildpacks-build-demo-java2-v0-0-1
! + one map entry added:
+ sidecar.istio.io/inject: "false"
@@ spec.resourcetemplates.0.metadata.labels @@
# triggers.tekton.dev/v1alpha1/TriggerTemplate/trigger-template-demo-ext-repo-buildpacks-public-trigger
! + one map entry added:
+ sidecar.istio.io/inject: "false"
@@ spec.resourcetemplates.0.metadata.annotations @@
# triggers.tekton.dev/v1alpha1/TriggerTemplate/trigger-template-demo-ext-repo-buildpacks-public-trigger
! - one map entry removed:
- sidecar.istio.io/inject: "false"
! + one map entry added:
+ tekton.dev/auto-cleanup-pvc: "true"
# team-ns/templates/builds/docker.yaml
@@ metadata.annotations @@
# tekton.dev/v1/PipelineRun/docker-build-demo-ext-repo-private
! - one map entry removed:
- sidecar.istio.io/inject: "false"
! + one map entry added:
+ tekton.dev/auto-cleanup-pvc: "true"
@@ metadata.labels @@
# tekton.dev/v1/PipelineRun/docker-build-demo-ext-repo-private
! + one map entry added:
+ sidecar.istio.io/inject: "false"
@@ metadata.annotations @@
# tekton.dev/v1/PipelineRun/docker-build-demo-ext-repo-public
! - one map entry removed:
- sidecar.istio.io/inject: "false"
! + one map entry added:
+ tekton.dev/auto-cleanup-pvc: "true"
@@ metadata.labels @@
# tekton.dev/v1/PipelineRun/docker-build-demo-ext-repo-public
! + one map entry added:
+ sidecar.istio.io/inject: "false"
@@ metadata.annotations @@
# tekton.dev/v1/PipelineRun/docker-build-demo-java1-v0-0-1
! - one map entry removed:
- sidecar.istio.io/inject: "false"
! + one map entry added:
+ tekton.dev/auto-cleanup-pvc: "true"
@@ metadata.labels @@
# tekton.dev/v1/PipelineRun/docker-build-demo-java1-v0-0-1
! + one map entry added:
+ sidecar.istio.io/inject: "false"
@@ spec.resourcetemplates.0.metadata.labels @@
# triggers.tekton.dev/v1alpha1/TriggerTemplate/trigger-template-demo-ext-repo-private-trigger
! + one map entry added:
+ sidecar.istio.io/inject: "false"
@@ spec.resourcetemplates.0.metadata.annotations @@
# triggers.tekton.dev/v1alpha1/TriggerTemplate/trigger-template-demo-ext-repo-private-trigger
! - one map entry removed:
- sidecar.istio.io/inject: "false"
! + one map entry added:
+ tekton.dev/auto-cleanup-pvc: "true"
@@ spec.resourcetemplates.0.metadata.labels @@
# triggers.tekton.dev/v1alpha1/TriggerTemplate/trigger-template-demo-ext-repo-public-trigger
! + one map entry added:
+ sidecar.istio.io/inject: "false"
@@ spec.resourcetemplates.0.metadata.annotations @@
# triggers.tekton.dev/v1alpha1/TriggerTemplate/trigger-template-demo-ext-repo-public-trigger
! - one map entry removed:
- sidecar.istio.io/inject: "false"
! + one map entry added:
+ tekton.dev/auto-cleanup-pvc: "true"
@@ spec.resourcetemplates.0.metadata.labels @@
# triggers.tekton.dev/v1alpha1/TriggerTemplate/trigger-template-demo-java3-v0-0-1
! + one map entry added:
+ sidecar.istio.io/inject: "false"
@@ spec.resourcetemplates.0.metadata.annotations @@
# triggers.tekton.dev/v1alpha1/TriggerTemplate/trigger-template-demo-java3-v0-0-1
! - one map entry removed:
- sidecar.istio.io/inject: "false"
! + one map entry added:
+ tekton.dev/auto-cleanup-pvc: "true"
# tekton-pipeline/templates/config-defaults-cm.yaml
@@ data @@
! + one map entry added:
+ default-affinity-assistant-pod-template: |
+ labels:
+ sidecar.istio.io/inject: "false"
# values-repo.yaml
|
j-zimnowoda
approved these changes
May 28, 2026
There was a problem hiding this comment.
Pull request overview
This PR updates Tekton build configuration so build PipelineRuns can clean up generated PVCs after completion and avoid Istio sidecar injection for build-related pods.
Changes:
- Adds PVC cleanup annotations to docker and buildpack PipelineRun templates.
- Moves Istio sidecar opt-out metadata from annotations to labels on PipelineRun resources.
- Adds a Tekton affinity assistant default pod template intended to disable Istio sidecar injection.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
values/tekton-pipelines/tekton-pipelines.gotmpl |
Adds default affinity assistant pod template configuration. |
charts/team-ns/templates/builds/docker.yaml |
Updates docker build PipelineRun metadata for PVC cleanup and sidecar opt-out. |
charts/team-ns/templates/builds/buildpack.yaml |
Updates buildpack PipelineRun metadata for PVC cleanup and sidecar opt-out. |
Comment on lines
+41
to
+42
| labels: | ||
| sidecar.istio.io/inject: "false" |
Contributor
There was a problem hiding this comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Summary
This PR adds an annotation to build PipelineRun resources, allowing for Tekton to drop the volumes after the build has finished.
Also a label has been added for the "affinity assistant" which coschedules pods on the same node. Removing the Istio sidecars should speed up the startup of these pods.
🔍 Reviewer Notes
🧹 Checklist