-
Notifications
You must be signed in to change notification settings - Fork 528
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
feat (jkube-kit/enricher) : Add WellKnownLabelsEnricher for adding Kubernetes Recommended Well Known Labels #2523
Conversation
Eclipse JKube CI ReportStarted new GH workflow run for #2523 (2024-01-17T14:03:44Z) ⚙️ JKube E2E Tests (7556731553)
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2523 +/- ##
=============================================
+ Coverage 59.36% 70.15% +10.79%
- Complexity 4586 4919 +333
=============================================
Files 500 476 -24
Lines 21211 19198 -2013
Branches 2830 2482 -348
=============================================
+ Hits 12591 13468 +877
+ Misses 7370 4514 -2856
+ Partials 1250 1216 -34 ☔ View full report in Codecov by Sentry. |
b30205a
to
8b9d78b
Compare
With the current approach we are losing the ability to group the resources by group. It makes sense to me that we use of the |
8b9d78b
to
2c722db
Compare
|
||
@AllArgsConstructor | ||
private enum Config implements Configs.Config { | ||
USE_WELL_KNOWN_LABELS("useWellKnownLabels", "true"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be consistent with this setting in other Enrichers.
For example, DebugEnricher uses ENABLED
for the same purpose.
I understand that you inferred this from ProjectLabelEnricher.Config.USE_PROJECT_LABEL, but AFAIU that in this Enricher, it has a different purpose.
…bernetes Recommended Well Known Labels + Add WellKnownLabelEnricher that would add these labels to `.metadata` of all resources (also to `selector.matchLabels` in case of controller resources): - `app.kubernetes.io/component` - `app.kubernetes.io/managed-by` - `app.kubernetes.io/name` - `app.kubernetes.io/part-of` - `app.kubernetes.io/version` Signed-off-by: Rohan Kumar <[email protected]>
2c722db
to
90a65ad
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Description
Related to #1700
AbstractLabelEnricher
.metadata
of all resources (also toselector.matchLabels
in case of controller resources):app.kubernetes.io/component
app.kubernetes.io/managed-by
app.kubernetes.io/name
app.kubernetes.io/part-of
app.kubernetes.io/version
app.kubernetes.io/
labels to integration tests that do strict checks.Type of change
test, version modification, documentation, etc.)
Checklist