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

Adopt app.kubernetes.io labels #5628

Merged
merged 10 commits into from
Sep 14, 2021

Conversation

upodroid
Copy link
Member

@upodroid upodroid commented Aug 5, 2021

Fixes: #5559

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note

adopted app.kubernetes.io labels

Docs

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 5, 2021
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 5, 2021
@knative-prow-robot knative-prow-robot added the area/test-and-release Test infrastructure, tests or release label Aug 5, 2021
@codecov
Copy link

codecov bot commented Aug 5, 2021

Codecov Report

Merging #5628 (35f5f9e) into main (ca9e469) will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5628      +/-   ##
==========================================
- Coverage   82.73%   82.68%   -0.06%     
==========================================
  Files         200      200              
  Lines        6245     6261      +16     
==========================================
+ Hits         5167     5177      +10     
- Misses        748      750       +2     
- Partials      330      334       +4     
Impacted Files Coverage Δ
pkg/reconciler/broker/controller.go 88.63% <0.00%> (-4.39%) ⬇️
pkg/apis/eventing/v1/broker_validation.go 83.33% <0.00%> (-3.34%) ⬇️
pkg/adapter/mtping/controller.go 68.75% <0.00%> (-1.84%) ⬇️
pkg/reconciler/sugar/trigger/controller.go 55.55% <0.00%> (-1.59%) ⬇️
pkg/duck/listable.go 81.94% <0.00%> (-1.16%) ⬇️
pkg/reconciler/sugar/namespace/controller.go 79.16% <0.00%> (-0.84%) ⬇️
pkg/reconciler/apiserversource/controller.go 89.47% <0.00%> (-0.53%) ⬇️
pkg/reconciler/pingsource/controller.go 85.71% <0.00%> (-0.50%) ⬇️
...econciler/inmemorychannel/dispatcher/controller.go 87.50% <0.00%> (-0.26%) ⬇️
...econciler/inmemorychannel/controller/controller.go 88.00% <0.00%> (-0.24%) ⬇️
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca9e469...35f5f9e. Read the comment docs.

@houshengbo
Copy link

@upodroid why not add these labels to CRDs?

@upodroid
Copy link
Member Author

Noticed imc, eventing-controller and few other apps are missing services with metrics endpoints.

I added that + labels to CRDs, I still need to label other misc items.

@upodroid
Copy link
Member Author

This is ready now.

@upodroid
Copy link
Member Author

/assign @lberk @dprotaso

@dprotaso
Copy link
Member

dprotaso commented Sep 1, 2021

/unassign @dprotaso
/assign @lionelvillard

@@ -19,6 +19,9 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/name: mt-broker-filter
Copy link
Member

Choose a reason for hiding this comment

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

can you drop mt- prefix?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@@ -19,6 +19,9 @@ metadata:
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
app.kubernetes.io/name: mt-broker-ingress
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@@ -95,3 +101,25 @@ spec:
containerPort: 9090
- name: profiling
containerPort: 8008
---
Copy link
Member

Choose a reason for hiding this comment

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

not sure we want this below, at least not in this PR

Copy link
Member Author

Choose a reason for hiding this comment

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

We should have it, especially for gathering metrics via ServiceMonitors

Copy link
Member

Choose a reason for hiding this comment

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

Can you then update this PR description (and release notes) stating that these controllers are now exposed?

Copy link
Member

@lionelvillard lionelvillard Sep 1, 2021

Choose a reason for hiding this comment

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

aren't ServiceMonitors running in the cluster?

Copy link
Member

Choose a reason for hiding this comment

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

I'd opt to move this to a different PR give the nature of the described changes. Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated release notes.

aren't ServiceMonitors running in the cluster?

Yes

Copy link
Member

Choose a reason for hiding this comment

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

+1 on moving that to a new PR

/cc @skonto regarding ServiceMonitors

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll move the new Services to a separate PR.

FYI, Service Monitors are CRDs that ship with Prometheus Operator. It is a way of defining Prometheus scrape configuration.

@@ -28,6 +31,9 @@ spec:
labels:
eventing.knative.dev/brokerRole: filter
eventing.knative.dev/release: devel
app.kubernetes.io/name: mt-broker-filter
Copy link
Member

Choose a reason for hiding this comment

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

here too. In general, can you remove all instances of mt- in labels?

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed more instances of mt- prefix.

@pierDipi
Copy link
Member

pierDipi commented Sep 9, 2021

/lgtm
/retest

/cc @lionelvillard

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 9, 2021
@upodroid
Copy link
Member Author

We are missing approved label on this PR.

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pierDipi, upodroid

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 14, 2021
@knative-prow-robot knative-prow-robot merged commit 602ea29 into knative:main Sep 14, 2021
@matzew
Copy link
Member

matzew commented Sep 15, 2021

@upodroid
Copy link
Member Author

I'll do the same for those as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test-and-release Test infrastructure, tests or release cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adopt app.kubernetes.io labels
8 participants