-
Notifications
You must be signed in to change notification settings - Fork 326
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
feat: add peering config to mesh CRD #1478
Conversation
func (in *Mesh) Validate(consulMeta common.ConsulMeta) error { | ||
var errs field.ErrorList | ||
path := field.NewPath("spec") | ||
|
||
errs = append(errs, in.Spec.TLS.validate(path.Child("tls"))...) | ||
errs = append(errs, in.Spec.Peering.validate(path.Child("peering"), consulMeta.PartitionsEnabled, consulMeta.Partition)...) |
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.
There is an additional validation in Consul that mesh CRs are always in the default namespace, but that always seems to be implied here on creation. I don't see where namespace is transferred in ToConsul
.
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 looks great! Before we merge this though, is the peerThroughMeshGateways
already supported in 1.13 or will this be a 1.14 feature? We might want to wait to merge it if it is for 1.14.
@thisisnotashwin this will be for 1.14. I guess a few weeks before the release is a good time to merge? |
Yup!! that sounds perfect!! Thanks Dan! |
@DanStough Should this go out for 1.14 beta? If so, I think this needs a re-base off of main |
@david-yu . Nope, not required for the beta. I will rebase shortly though. |
515cc43
to
984f6fa
Compare
@ndhanushkodi would you be available to review? I finally rebased everything so there shouldn't be conflicts. |
984f6fa
to
d988653
Compare
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 great and thank you for catching the missing validation!
Will wait for peering acceptance tests to pass then merge |
Changes proposed in this PR:
mesh
CRD that will be used to turn on routing of peering control-plane traffic through a mesh gateway(s). Consul PR linkHow I've tested this PR:
How I expect reviewers to test this PR:
Checklist: