-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Feature request: Map k8s pod labels as project tags #172
Comments
Hi @muellerst-hg, |
Maybe "custom mapping" isn't the right term. Given I have the following labels:
spec:
template:
metadata:
labels:
app=dependencytrack
stage=live
department=sales
service=inventory
pod-template-hash=12c5401afc
And I have selected "app" and "stage" as labels to be added as tags
Then the following project tags should be added to dtrack
app=dependencytrack
stage=live |
With two labels "app=dependencytrack" and "app=nginx", some magic would be required to identify both by matching "app" left of the equals sign. |
A user could provide a regex for matching labels like |
I got it, you want to control which pod-labels should be mapped to Dependency Track. |
As a System Operator,
I would like to add pod labels as project tags in DependencyTrack
So that grouping/filtering by label in dtrack is possible
Background: We use k8s pod labels to determine and group things like application, stage, department, ...
What do you think about the idea of adding
Labels map[string]string
to structlibk8s.PodInfo
and allow custom mapping of labels to dtrack project tags?What would be an appropriate way to configure the custom mapping?
sbom-operator is awesome. Thank you!
The text was updated successfully, but these errors were encountered: