Skip to content

Commit

Permalink
Allow for routing other than by percent in the future
Browse files Browse the repository at this point in the history
Closes: knative#4736

Signed-off-by: Doug Davis <dug@us.ibm.com>
  • Loading branch information
Doug Davis committed Jul 26, 2019
1 parent 03b0436 commit b935ba0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/apis/serving/v1beta1/route_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ var (
)

// TrafficTarget holds a single entry of the routing table for a Route.
// Within this structure there may be an indication of when to route
// traffic to this revision - e.g. `percent`.
// There may be other traffic routing properties defined in the future,
// or via extensions. When there are no such properties at all specified then
// the default is that no traffic will be routed to this revision.
type TrafficTarget struct {
// Tag is optionally used to expose a dedicated url for referencing
// this target exclusively.
Expand Down Expand Up @@ -90,7 +95,7 @@ type TrafficTarget struct {
LatestRevision *bool `json:"latestRevision,omitempty"`

// Percent specifies percent of the traffic to this Revision or Configuration.
// This defaults to zero if unspecified.
// If unspecified, this has no default value.
// +optional
Percent int `json:"percent"`

Expand Down

0 comments on commit b935ba0

Please sign in to comment.