-
Notifications
You must be signed in to change notification settings - Fork 42
chore(runner): First cut on Tekton pipeline detection #2581
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
Conversation
migmartri
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ptal at the test error, and the spurious descriptor.ts
So in the end we have access to env vars and dashboards or am I understanding this incorrectly? Do you have a demo of the env?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tekton doesn't add labels through downward API, so it might be good to use the service account directly.
Signed-off-by: Javier Rodriguez <[email protected]>
Signed-off-by: Javier Rodriguez <[email protected]>
Signed-off-by: Javier Rodriguez <[email protected]>
This PR adds automatic detection and metadata collection for Tekton Pipelines CI/CD environment.
Changes
TEKTON_PIPELINErunner type to the protobuf schema/tekton/resultsdirectoryDetection Strategy
The Tekton runner detects execution environments by checking for the presence of Tekton's
/tekton/resultsdirectory, which is mounted in all TaskRun and PipelineRun containers. This approach works reliably for both standalone TaskRuns and tasks within Pipelines.Metadata Collection via Kubernetes Downward API
TBD in a separated PR
Tackles issue #2545