Move ingress & filter TLS secret names into constants#7081
Move ingress & filter TLS secret names into constants#7081knative-prow[bot] merged 3 commits intoknative:mainfrom
Conversation
|
/assign @pierDipi |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #7081 +/- ##
==========================================
- Coverage 78.31% 78.31% -0.01%
==========================================
Files 250 250
Lines 13291 13290 -1
==========================================
- Hits 10409 10408 -1
Misses 2351 2351
Partials 531 531
☔ View full report in Codecov by Sentry. |
pkg/broker/ingress/server_manager.go
Outdated
| "k8s.io/apimachinery/pkg/types" | ||
| "knative.dev/eventing/pkg/eventingtls" | ||
| "knative.dev/eventing/pkg/kncloudevents" | ||
| "knative.dev/eventing/pkg/reconciler/broker" |
There was a problem hiding this comment.
This import has the side effect of starting a whole bunch of informers
There was a problem hiding this comment.
ahh. So better keeping it in the pkg/broker|filter package then I guess
There was a problem hiding this comment.
Doesn't that have the same side effect?
For example, broker/filter package might need an informer that the controller doesn't need which would waste resources or require additional permissions (like Eventype informer is not needed on the controller but needed on the broker ingress)
There was a problem hiding this comment.
Even if it's not needed or it works fine right now, it seems we're creating code coupling that is not really necessary and might break in the future, the secret name can be considered a contract (which it is even today) because changing the secret name is not as simple as changing the constant (we need at least to change the cert manager resources but also migration, etc would be necessary)
b0ba922 to
377be6a
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: creydr, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Follow up on #6986 (comment):
Moved the tls secret names for mt-broker-ingress & mt-broker-filter into constants