Skip to content
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

Tag pipeline with source information #4796

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

jenrik
Copy link
Contributor

@jenrik jenrik commented Jan 31, 2025

This is the seconds attempt trying to get this to work.

Indirectly adds labels to Kubernetes pods for use with NetworkPolicies and other integrations.

TODO:

  • Add new labels to agent filters
    // all task labels are required to be present for an agent to match
  • Include pipeline labels in Workflow RPC, so they can be added to containers and pods

@qwerty287 qwerty287 added the enhancement improve existing features label Feb 3, 2025
@jenrik jenrik marked this pull request as ready for review February 4, 2025 13:17
@jenrik
Copy link
Contributor Author

jenrik commented Feb 4, 2025

@xoxys can you maybe take a look at this seconds attempt?

It have been tested, linted, and confirmed running with the correct labels applied to Kubernetes pods

delete(item.Labels, key)
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those labels should not be mixed with the existing labels as those are used for filtering etc. Can we not add a new struct field e.g. item.InternalLabels or item.MetadataLabels here already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improve existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants