Skip to content

Commit 440542d

Browse files
committed
update the trafficconfig crd
1 parent 9243983 commit 440542d

File tree

5 files changed

+114
-10
lines changed

5 files changed

+114
-10
lines changed

pkg/apis/admiral/v1/traffic_config.go

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ type TrafficConfigSpec struct {
3232
}
3333

3434
type EdgeService struct {
35-
DynamicRouting []*DynamicRouting `json:"dynamicRouting,omitempty"`
36-
Filters []*Filter `json:"filters"`
37-
Routes []*Route `json:"routes"`
38-
Targets []*Target `json:"targets"`
39-
TargetGroups []*TargetGroup `json:"targetGroups"`
35+
DynamicRouting []*DynamicRouting `json:"dynamicRouting,omitempty"`
36+
Filters []*Filter `json:"filters"`
37+
Routes []*Route `json:"routes"`
38+
Targets []*Target `json:"targets"`
39+
TargetGroups []*TargetGroup `json:"targetGroups"`
40+
SlowStartConfig []*SlowStartConfig `json:"slowStartConfig,omitempty"`
4041
}
4142

4243
type Target struct {
@@ -53,6 +54,11 @@ type TargetGroup struct {
5354
AppOverrides []*AppOverride `json:"appOverrides,omitempty"`
5455
}
5556

57+
type SlowStartConfig struct {
58+
WorkloadEnvSelectors []string `json:"workloadEnvSelectors"`
59+
Duration string `json:"duration"`
60+
}
61+
5662
type AppOverride struct {
5763
AssetAlias string `json:"assetAlias"`
5864
AssetID string `json:"assetID"` // assetID is just a UUID string

pkg/apis/admiral/v1/zz_generated.deepcopy.go

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration/admiral/v1/edgeservice.go

Lines changed: 19 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration/admiral/v1/slowstartconfig.go

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration/utils.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)