-
Notifications
You must be signed in to change notification settings - Fork 113
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
Provide control over pod labels and annotations #520
Comments
Definitely something to work out via an enhancement proposal. There are other annotations out there a build strategy would want to take advantage of, such as user namespaces on CRI-O clusters. Not sure if we've officially laid this out as an API convention, but it feels like we have precedent for inherited spec attributes that flow from |
Thank you for the feedback, Adam. Yeah, EP is planned. The inheritance as you lay it out is the obvious model I also agree with in general. Nevertheless, with the possible persona differentiation with admins maintaining build strategies and users that create builds and build runs, we also require a mechanism for certain annotations defined by the admin in the build strategy not to be over-writable. We'll think through it. |
If possible, I suggest we can do this enhancement step by step.
But I think the first part is more important because we miss that. |
This matches exactly what I agreed with Enrique yesterday afternoon. EP will come soon. |
EP is open and it focuses on annotations first to not over-complicate things: EP: Propagating annotations from the build strategy to the pod #523. Labels cover other scenarios that we can handle separately. |
Annotation propagation has been implemented here: Propagate annotations from BuildStrategy to TaskRun #539. Putting the remaining label work in a separate issue: Provide user control over pod label #625 |
There are certain capabilities in Kubernetes that require annotations to be present on the pod, for example the
kubernetes.io/ingress-bandwidth
andkubernetes.io/egress-bandwidth
to support Network Traffic Shaping. At the moment, they cannot be controlled.Similarly, labels on pods can be used for filtering or monitoring.
We need to provide some control to users who define the build strategies as well as to those who define build runs. Some scenarios:
We will also need to think about / consider:
spec.podAnnotations
andspec.podLabels
to allow to explicitly define values that are set on the task run / pod, while other values can be defined in themetadata
that do not get propagated.The text was updated successfully, but these errors were encountered: