-
Notifications
You must be signed in to change notification settings - Fork 26
Default broker selection in CR #184
Conversation
knative-prow-robot
left a comment
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.
@aliok: 2 warnings.
Details
In response to this:
Issue to be fixed
Fixes #175
Proposed Changes
- New
DefaultBrokerClassin KnativeEventing CR- Make the given broker default broker
Notes:
- Overwrites the
config-br-defaultsconfigmap based on the value given on CRTODO:
- Manifest update (waiting until the changes from knative/eventing#2947 updates the file
gs://knative-nightly/eventing/latest/eventing.yaml)- Tooling to get new manifest files
- Tests
- Verification instructions
Release Note
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
| reconcilerName = "KnativeEventing" | ||
| controllerAgentName = "knativeeventing-controller" | ||
| reconcilerName = "KnativeEventing" | ||
| ChannelBasedBrokerClass = "ChannelBasedBroker" |
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.
Golint comments: exported const ChannelBasedBrokerClass should have comment (or a comment on this block) or be unexported. More info.
| MasterURL = flag.String("master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.") | ||
| Kubeconfig = flag.String("kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.") | ||
| recursive = flag.Bool("recursive", false, "If filename is a directory, process all manifests recursively") | ||
| MasterURL = flag.String("master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.") |
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.
Golint comments: exported var MasterURL should have comment or be unexported. More info.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aliok 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 |
mattmoor
left a comment
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.
Produced via:
gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -type f -name '*.go' -print)
| import ( | ||
| "context" | ||
| "flag" | ||
| "k8s.io/client-go/rest" |
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.
Format Go code:
| "k8s.io/client-go/rest" |
| "flag" | ||
| "k8s.io/client-go/rest" | ||
| "os" | ||
| "path/filepath" |
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.
Format Go code:
| "path/filepath" | |
| "path/filepath" | |
| "k8s.io/client-go/rest" |
| // +optional | ||
| Registry Registry `json:"registry,omitempty"` | ||
|
|
||
| // The default broker type to use for the brokers Knative creates. |
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.
The default broker class ? I mean, that's what it is :-)
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.
happy to receive naming suggestions!
| recursive = flag.Bool("recursive", false, "If filename is a directory, process all manifests recursively") | ||
| MasterURL = flag.String("master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.") | ||
| Kubeconfig = flag.String("kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.") | ||
| AvailableBrokerClases = []string{ChannelBasedBrokerClass, MTChannelBasedBrokerClass} |
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.
not sure if available is "right" here.
There might be others "available" ? I think I still could install my "custom broker", and set its class on the CR, right ?
Perhaps built-in? 🤷♂️
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.
hmm, never thought of the custom brokers.
good point. gonna change some things to support it
| # to "false". To opt namespaces out of Broker injection, label | ||
| # them with: | ||
| # knative-eventing-injection: disabled | ||
| name: BROKER_INJECTION_DEFAULT |
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.
why is this here, twice ?
| # to "false". To opt namespaces out of Broker injection, label | ||
| # them with: | ||
| # knative-eventing-injection: disabled | ||
| name: BROKER_INJECTION_DEFAULT |
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.
and here too
|
@aliok: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
I am rewriting this PR to support customer brokers as well. that will need a different approach |
Issue to be fixed
Fixes #175
Proposed Changes
DefaultBrokerClassin KnativeEventing CRNotes:
config-br-defaultsconfigmap based on the value given on CRTODO:
gs://knative-nightly/eventing/latest/eventing.yaml)Release Note