-
Notifications
You must be signed in to change notification settings - Fork 392
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
Implement Bootstrap API #1094
Implement Bootstrap API #1094
Conversation
Relates to envoyproxy#31 Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
// The config should have been validated already | ||
if infra.Proxy.Config != nil && | ||
infra.Proxy.Config.Spec.Bootstrap != nil { | ||
cfg = *infra.Proxy.Config.Spec.Bootstrap |
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.
I think we should unmarshal it to bootstrap struct to validate it if the bootstrap user provided is invalid.
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 validation will happen in the validation webhook, and the data should be valid by the time it reaches this component
|
||
// Set a custom bootstrap config into EnvoyProxy API and ensure the same | ||
// value is set as the container arg. | ||
bstrap := "blah" |
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.
This is obvious a invalid bootstrap config I think? There should be an error reported.
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.
as I mentioned in the prevous comment, the validation will happen earlier. Just used a dummy string to test in this component.
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.
LGTM
Relates to #31