-
Notifications
You must be signed in to change notification settings - Fork 413
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
Configurable label propagation for EventListener Pods #1489
Comments
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/remove-lifecycle stale |
Hi @muxmuse I have spent sometime to understand the feature request and based on my understanding tried below steps to see the current behavior Steps:
added
The created pod looks like below pod metadata contains label
The created pod looks like below
|
So basically what i want to say is that is that something you are looking If not Could you specify the UX of the expectation |
Thank you very much for taking the time. The described approach changes the contents of the pod's label as I need it, but the deployment's label remains unchanged. apiVersion: apps/v1
kind: Deployment
metadata:
name: el-github-eventlistener
labels:
app.kubernetes.io/managed-by: EventListener
app.kubernetes.io/part-of: Triggers
eventlistener: github-eventlistener
hello: hi Based on the current design of the resources field, the expected UX behavior would be that the deployment's labels are configurable, too. Based on the current design, I am not sure where I would expect it, as apiVersion: triggers.tekton.dev/v1beta1
kind: EventListener
metadata:
name: github-eventlistener
labels:
hello: hi
spec:
...
resources:
kubernetesResource:
deploymentSpec: // ? doesn't seem right here
metadata:
labels:
hello: "" Not taking the current design into account, I would expect that labels are only propagated if specified explicitly, i.e. without a resources field, there are no labels propagated at all. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
/remove-lifecycle stale |
Hi @muxmuse I rechecked So your request is even if there is a update to labels for Let me know on this |
This sounds reasonable to me. Updating just the pod's labels and not the deployment feels a bit weird? |
I'd like to avoid propagation of certain labels of the EventListener to its Deployment and Pods. In my use case, all resources in a subset of my cluster configuration are labelled with the same label. On each deployment, the cluster is searched for resources with matching labels and they are deleted if they exist on the cluster but not in the applied configuration. The EventListener occurs in my configuration, while its Deployment and Pods are defined implicitly by the EventListener. Currently, Deployment and Pods inherit all labels of the EventListener and would be deleted every time the config is applied. |
Feature request
EventListeners propagate their labels to Deployments and additionally to the (Pod) Template of the Deployment. This should be configurable, e.g. with the PodTemplate field of the EventListener. It should be possible to provide an empty value for a label such that a specific label is not propagated.
Use case
Label based garbage collection in a git-ops setup.
The text was updated successfully, but these errors were encountered: