Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Introduce routing rule as TPR #82

Merged
merged 6 commits into from
Feb 3, 2017
Merged

Conversation

kyessenov
Copy link
Contributor

Re-work the glue for TPR since discovering an issue with multiple TPRs.
Changed the storage scheme so that the name encodes the kind (e.g. proxy rule a is called proxy-rule-a in kubernetes).
Included proto definitions and generated code for proxy-related config for faster iteration.
Will add a CLI to accommodate put/get operations for TPRs with validation in a follow-up PR.

import "google/protobuf/wrappers.proto";

package istio.proxy.v1alpha.config;
option go_package = "config";
Copy link
Member

Choose a reason for hiding this comment

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

I didn't know that this option was possible! Can we change the name to routingcfg ?

// itself from the evolution of dependent services.

// Proxy level global configurations go here
message ProxyConfig {
Copy link
Member

Choose a reason for hiding this comment

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

And this gets renamed to RoutingConfig?

Copy link
Member

Choose a reason for hiding this comment

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

Unless we decide to add more stuff into proxy config, such as envoy userid, etc.

var errs error
if !kindRegexp.MatchString(k.Kind) {
if !IsDNS1123Label(k.Kind) {
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't this mean we need atleast two parts in the kind name ? route-rule.istio.io? If so the constants above need to be updated.


rule := &proxyconfig.RouteRule{
RouteRule: &proxyconfig.RouteRule_Http{
Http: &proxyconfig.HttpRouteRule{
Copy link
Member

Choose a reason for hiding this comment

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

Please add dst_service here. We may need to do immediate validation in tpr code to see if the user provided service is valid or invalid

Copy link
Contributor

@ijsnellf ijsnellf left a comment

Choose a reason for hiding this comment

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

LGTM

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.

@rshriram
Copy link
Member

rshriram commented Feb 3, 2017

I signed it!

@rshriram rshriram merged commit 4b3af54 into istio:master Feb 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants