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

ProxyTemplate validation #431

Merged
merged 7 commits into from
Nov 14, 2019
Merged

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

Validation of ProxyTemplate resource.
Also added validation of the Envoy resource itself.

Should we require either imports or resources to be present or empty ProxyTemplate with selectors is fine too?

@jakubdyszkiewicz jakubdyszkiewicz requested a review from a team November 13, 2019 15:40
pkg/core/resources/apis/mesh/proxytemplate_validator.go Outdated Show resolved Hide resolved
@@ -0,0 +1,38 @@
package template
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure about placement of this file. I could not put it into envoy package because of the cyclic import.

Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above, let's avoid dependency pkg/core/resources/apis/mesh => pkg/xds/template.

Maybe pkg/util/envoy ?

pkg/core/resources/apis/mesh/proxytemplate_validator.go Outdated Show resolved Hide resolved
pkg/core/resources/apis/mesh/proxytemplate_validator.go Outdated Show resolved Hide resolved
pkg/core/resources/apis/mesh/proxytemplate_validator.go Outdated Show resolved Hide resolved
@@ -0,0 +1,38 @@
package template
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above, let's avoid dependency pkg/core/resources/apis/mesh => pkg/xds/template.

Maybe pkg/util/envoy ?

pkg/core/resources/apis/mesh/proxytemplate_validator.go Outdated Show resolved Hide resolved
@jakubdyszkiewicz jakubdyszkiewicz merged commit b5e5613 into master Nov 14, 2019
@jakubdyszkiewicz jakubdyszkiewicz deleted the feature/proxytemplate-validation branch November 14, 2019 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants