-
Notifications
You must be signed in to change notification settings - Fork 604
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
create v1beta1 brokers, use context for defaulting #2651
create v1beta1 brokers, use context for defaulting #2651
Conversation
ctxFunc := func(ctx context.Context) context.Context { | ||
return store.ToContext(ctx) | ||
} |
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.
If your APIs defaulting is now dependent on the store/config in the context - you'll need to update the conversion webhook context decorator - it will invoke defaulting on the way out
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.
that is good to know!
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.
@@ -0,0 +1 @@ | |||
core/configmaps/default-imc.yaml |
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.
Add trailing newline:
core/configmaps/default-imc.yaml | |
core/configmaps/default-imc.yaml | |
@@ -0,0 +1 @@ | |||
core/configmaps/default-broker.yaml |
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.
Add trailing newline:
core/configmaps/default-broker.yaml | |
core/configmaps/default-broker.yaml | |
The following is the coverage report on the affected files.
|
) | ||
|
||
// MakeBroker creates a default Broker object for Namespace 'namespace'. | ||
func MakeBroker(ns *corev1.Namespace) *v1alpha1.Broker { | ||
return &v1alpha1.Broker{ | ||
func MakeBroker(ns *corev1.Namespace) *v1beta1.Broker { |
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.
HYPE
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: n3wscott, vaikas 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 |
Addresses #2128
Proposed Changes
Release Note
Docs