install/kubernetes/tetragon: Helm chart add serviceAnnotations and serviceLabels
charts: add serviceAnnotations and serviceLabels for additive Service metadata management
Tetragon Helm chart currently exposes only serviceLabelsOverride which forces full replacement of the Service labels and makes day to day label management error prone.
This patch fixes this by adding:
A new values key serviceLabels as an empty map in values.yaml to allow appending labels without losing chart defaults.
A new values key serviceAnnotations as an empty map in values.yaml to allow appending annotations without losing chart defaults.
Service template logic that preserves compatibility. If serviceLabels is set it is merged with existing chart labels or serviceLabelsOverride to produce the final label set. If serviceAnnotations is set it is merged with existing chart annotations to produce the final annotations set.
Example values:
serviceLabels: {}
# serviceLabels:
# k8s-app: tetragon
serviceAnnotations: {}
# serviceAnnotations:
# prometheus.io/port: "2112"
# prometheus.io/scrape: "true"
As a secondary note, these additive fields can simplify label based selection in systems such as Prometheus.
Deploy Preview for tetragon ready!
| Name | Link |
|---|---|
| Latest commit | d2d8319c4a56fd55d679d7df23c5774e99068dfa |
| Latest deploy log | https://app.netlify.com/projects/tetragon/deploys/690de15993e3aa00080af1ca |
| Deploy Preview | https://deploy-preview-4082--tetragon.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
Error: ERROR:CUSTOM: Please avoid long commit subjects (max: 75, found: 80)
=========================================================
[2/3] Running on 38628456b3fb0324954ae481fdb672895fab631b
install/kubernetes/tetragon: uddate "make -C install/kubernetes"
=========================================================
Error: ERROR:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author 'yieon <[email protected]>'
I will create a PR again in compliance with the above.
Any chance you could squash everything and force push this? git rebase -i <first commit>~ might help here :)