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

Better naming and consistency for config.Env and broker.Config #1419

Merged

Conversation

aliok
Copy link
Member

@aliok aliok commented Nov 5, 2021

Proposed Changes

  • Better naming and consistency for config.Env
  • Got rid of broker.Config which only had 1 additional field. That broker.Config thing was used in source, channel and sink. Changed those usages to config.Env.

Release Note


Docs

@knative-prow-robot knative-prow-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. area/control-plane area/test size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 5, 2021
@google-cla
Copy link

google-cla bot commented Nov 5, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 5, 2021
@google-cla google-cla bot added the cla: no Indicates the PR's author has not signed the CLA. label Nov 5, 2021
@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-sandbox-eventing-kafka-broker-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
control-plane/pkg/reconciler/kafka/topic.go 100.0% 97.5% -2.5

@codecov
Copy link

codecov bot commented Nov 5, 2021

Codecov Report

Merging #1419 (22d02a4) into main (b5df8b6) will not change coverage.
The diff coverage is 48.71%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #1419   +/-   ##
=========================================
  Coverage     71.41%   71.41%           
  Complexity      584      584           
=========================================
  Files           100      100           
  Lines          3964     3964           
  Branches        166      166           
=========================================
  Hits           2831     2831           
  Misses          915      915           
  Partials        218      218           
Flag Coverage Δ
java-unittests 82.28% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...lane/pkg/reconciler/base/receiver_condition_set.go 0.00% <0.00%> (ø)
control-plane/pkg/reconciler/channel/channel.go 0.00% <0.00%> (ø)
control-plane/pkg/reconciler/sink/kafka_sink.go 67.83% <50.00%> (ø)
control-plane/pkg/reconciler/broker/broker.go 70.44% <66.66%> (ø)
control-plane/pkg/reconciler/broker/controller.go 76.05% <66.66%> (ø)
control-plane/pkg/reconciler/trigger/trigger.go 70.83% <80.00%> (ø)
control-plane/pkg/reconciler/channel/controller.go 85.71% <100.00%> (ø)
control-plane/pkg/reconciler/sink/controller.go 72.34% <100.00%> (ø)
control-plane/pkg/reconciler/source/source.go 57.69% <100.00%> (ø)
control-plane/pkg/reconciler/trigger/controller.go 85.07% <100.00%> (ø)

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 b5df8b6...22d02a4. Read the comment docs.

@google-cla google-cla bot added cla: yes Indicates the PR's author has signed the CLA. and removed cla: no Indicates the PR's author has not signed the CLA. labels Nov 8, 2021
@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 8, 2021
@aliok aliok changed the title [WIP] Better naming and consistency for config.Env and broker.Config Better naming and consistency for config.Env and broker.Config Nov 8, 2021
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 8, 2021
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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 merged commit d3815d2 into knative-extensions:main Nov 8, 2021
@aliok aliok deleted the refactor_config_env branch November 8, 2021 09:55
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/control-plane area/test cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants