Skip to content

Commit 7a65f9e

Browse files
DCL Teamcopybara-github
DCL Team
authored andcommitted
Automated DCL import.
- 576836a5854048e318b382a0755000864603088d Automatic import from cloud_mmv2_dcl_20240729_1531_RC00 by DCL Team <[email protected]> GitOrigin-RevId: 576836a5854048e318b382a0755000864603088d
1 parent d0aabe7 commit 7a65f9e

27 files changed

+321
-9
lines changed

python/proto/clouddeploy/alpha/delivery_pipeline.proto

+2
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ message ClouddeployAlphaDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntim
8989
string deployment = 3;
9090
string route_update_wait_time = 4;
9191
string stable_cutback_duration = 5;
92+
string pod_selector_label = 6;
9293
}
9394

9495
message ClouddeployAlphaDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking {
9596
string service = 1;
9697
string deployment = 2;
9798
bool disable_pod_overprovisioning = 3;
99+
string pod_selector_label = 4;
98100
}
99101

100102
message ClouddeployAlphaDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun {

python/proto/clouddeploy/beta/delivery_pipeline.proto

+2
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ message ClouddeployBetaDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntime
8989
string deployment = 3;
9090
string route_update_wait_time = 4;
9191
string stable_cutback_duration = 5;
92+
string pod_selector_label = 6;
9293
}
9394

9495
message ClouddeployBetaDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking {
9596
string service = 1;
9697
string deployment = 2;
9798
bool disable_pod_overprovisioning = 3;
99+
string pod_selector_label = 4;
98100
}
99101

100102
message ClouddeployBetaDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun {

python/proto/clouddeploy/delivery_pipeline.proto

+2
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ message ClouddeployDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConf
8989
string deployment = 3;
9090
string route_update_wait_time = 4;
9191
string stable_cutback_duration = 5;
92+
string pod_selector_label = 6;
9293
}
9394

9495
message ClouddeployDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking {
9596
string service = 1;
9697
string deployment = 2;
9798
bool disable_pod_overprovisioning = 3;
99+
string pod_selector_label = 4;
98100
}
99101

100102
message ClouddeployDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigCloudRun {

python/services/clouddeploy/alpha/delivery_pipeline.py

+10
Original file line numberDiff line numberDiff line change
@@ -766,12 +766,14 @@ def __init__(
766766
deployment: str = None,
767767
route_update_wait_time: str = None,
768768
stable_cutback_duration: str = None,
769+
pod_selector_label: str = None,
769770
):
770771
self.http_route = http_route
771772
self.service = service
772773
self.deployment = deployment
773774
self.route_update_wait_time = route_update_wait_time
774775
self.stable_cutback_duration = stable_cutback_duration
776+
self.pod_selector_label = pod_selector_label
775777

776778
@classmethod
777779
def to_proto(self, resource):
@@ -795,6 +797,8 @@ def to_proto(self, resource):
795797
res.stable_cutback_duration = Primitive.to_proto(
796798
resource.stable_cutback_duration
797799
)
800+
if Primitive.to_proto(resource.pod_selector_label):
801+
res.pod_selector_label = Primitive.to_proto(resource.pod_selector_label)
798802
return res
799803

800804
@classmethod
@@ -812,6 +816,7 @@ def from_proto(self, resource):
812816
stable_cutback_duration=Primitive.from_proto(
813817
resource.stable_cutback_duration
814818
),
819+
pod_selector_label=Primitive.from_proto(resource.pod_selector_label),
815820
)
816821

817822

@@ -848,10 +853,12 @@ def __init__(
848853
service: str = None,
849854
deployment: str = None,
850855
disable_pod_overprovisioning: bool = None,
856+
pod_selector_label: str = None,
851857
):
852858
self.service = service
853859
self.deployment = deployment
854860
self.disable_pod_overprovisioning = disable_pod_overprovisioning
861+
self.pod_selector_label = pod_selector_label
855862

856863
@classmethod
857864
def to_proto(self, resource):
@@ -869,6 +876,8 @@ def to_proto(self, resource):
869876
res.disable_pod_overprovisioning = Primitive.to_proto(
870877
resource.disable_pod_overprovisioning
871878
)
879+
if Primitive.to_proto(resource.pod_selector_label):
880+
res.pod_selector_label = Primitive.to_proto(resource.pod_selector_label)
872881
return res
873882

874883
@classmethod
@@ -882,6 +891,7 @@ def from_proto(self, resource):
882891
disable_pod_overprovisioning=Primitive.from_proto(
883892
resource.disable_pod_overprovisioning
884893
),
894+
pod_selector_label=Primitive.from_proto(resource.pod_selector_label),
885895
)
886896

887897

python/services/clouddeploy/alpha/delivery_pipeline_server.go

+4
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ func ProtoToClouddeployAlphaDeliveryPipelineSerialPipelineStagesStrategyCanaryRu
151151
Deployment: dcl.StringOrNil(p.GetDeployment()),
152152
RouteUpdateWaitTime: dcl.StringOrNil(p.GetRouteUpdateWaitTime()),
153153
StableCutbackDuration: dcl.StringOrNil(p.GetStableCutbackDuration()),
154+
PodSelectorLabel: dcl.StringOrNil(p.GetPodSelectorLabel()),
154155
}
155156
return obj
156157
}
@@ -164,6 +165,7 @@ func ProtoToClouddeployAlphaDeliveryPipelineSerialPipelineStagesStrategyCanaryRu
164165
Service: dcl.StringOrNil(p.GetService()),
165166
Deployment: dcl.StringOrNil(p.GetDeployment()),
166167
DisablePodOverprovisioning: dcl.Bool(p.GetDisablePodOverprovisioning()),
168+
PodSelectorLabel: dcl.StringOrNil(p.GetPodSelectorLabel()),
167169
}
168170
return obj
169171
}
@@ -492,6 +494,7 @@ func ClouddeployAlphaDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeCo
492494
p.SetDeployment(dcl.ValueOrEmptyString(o.Deployment))
493495
p.SetRouteUpdateWaitTime(dcl.ValueOrEmptyString(o.RouteUpdateWaitTime))
494496
p.SetStableCutbackDuration(dcl.ValueOrEmptyString(o.StableCutbackDuration))
497+
p.SetPodSelectorLabel(dcl.ValueOrEmptyString(o.PodSelectorLabel))
495498
return p
496499
}
497500

@@ -504,6 +507,7 @@ func ClouddeployAlphaDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeCo
504507
p.SetService(dcl.ValueOrEmptyString(o.Service))
505508
p.SetDeployment(dcl.ValueOrEmptyString(o.Deployment))
506509
p.SetDisablePodOverprovisioning(dcl.ValueOrEmptyBool(o.DisablePodOverprovisioning))
510+
p.SetPodSelectorLabel(dcl.ValueOrEmptyString(o.PodSelectorLabel))
507511
return p
508512
}
509513

python/services/clouddeploy/beta/delivery_pipeline.py

+10
Original file line numberDiff line numberDiff line change
@@ -766,12 +766,14 @@ def __init__(
766766
deployment: str = None,
767767
route_update_wait_time: str = None,
768768
stable_cutback_duration: str = None,
769+
pod_selector_label: str = None,
769770
):
770771
self.http_route = http_route
771772
self.service = service
772773
self.deployment = deployment
773774
self.route_update_wait_time = route_update_wait_time
774775
self.stable_cutback_duration = stable_cutback_duration
776+
self.pod_selector_label = pod_selector_label
775777

776778
@classmethod
777779
def to_proto(self, resource):
@@ -795,6 +797,8 @@ def to_proto(self, resource):
795797
res.stable_cutback_duration = Primitive.to_proto(
796798
resource.stable_cutback_duration
797799
)
800+
if Primitive.to_proto(resource.pod_selector_label):
801+
res.pod_selector_label = Primitive.to_proto(resource.pod_selector_label)
798802
return res
799803

800804
@classmethod
@@ -812,6 +816,7 @@ def from_proto(self, resource):
812816
stable_cutback_duration=Primitive.from_proto(
813817
resource.stable_cutback_duration
814818
),
819+
pod_selector_label=Primitive.from_proto(resource.pod_selector_label),
815820
)
816821

817822

@@ -848,10 +853,12 @@ def __init__(
848853
service: str = None,
849854
deployment: str = None,
850855
disable_pod_overprovisioning: bool = None,
856+
pod_selector_label: str = None,
851857
):
852858
self.service = service
853859
self.deployment = deployment
854860
self.disable_pod_overprovisioning = disable_pod_overprovisioning
861+
self.pod_selector_label = pod_selector_label
855862

856863
@classmethod
857864
def to_proto(self, resource):
@@ -869,6 +876,8 @@ def to_proto(self, resource):
869876
res.disable_pod_overprovisioning = Primitive.to_proto(
870877
resource.disable_pod_overprovisioning
871878
)
879+
if Primitive.to_proto(resource.pod_selector_label):
880+
res.pod_selector_label = Primitive.to_proto(resource.pod_selector_label)
872881
return res
873882

874883
@classmethod
@@ -882,6 +891,7 @@ def from_proto(self, resource):
882891
disable_pod_overprovisioning=Primitive.from_proto(
883892
resource.disable_pod_overprovisioning
884893
),
894+
pod_selector_label=Primitive.from_proto(resource.pod_selector_label),
885895
)
886896

887897

python/services/clouddeploy/beta/delivery_pipeline_server.go

+4
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ func ProtoToClouddeployBetaDeliveryPipelineSerialPipelineStagesStrategyCanaryRun
151151
Deployment: dcl.StringOrNil(p.GetDeployment()),
152152
RouteUpdateWaitTime: dcl.StringOrNil(p.GetRouteUpdateWaitTime()),
153153
StableCutbackDuration: dcl.StringOrNil(p.GetStableCutbackDuration()),
154+
PodSelectorLabel: dcl.StringOrNil(p.GetPodSelectorLabel()),
154155
}
155156
return obj
156157
}
@@ -164,6 +165,7 @@ func ProtoToClouddeployBetaDeliveryPipelineSerialPipelineStagesStrategyCanaryRun
164165
Service: dcl.StringOrNil(p.GetService()),
165166
Deployment: dcl.StringOrNil(p.GetDeployment()),
166167
DisablePodOverprovisioning: dcl.Bool(p.GetDisablePodOverprovisioning()),
168+
PodSelectorLabel: dcl.StringOrNil(p.GetPodSelectorLabel()),
167169
}
168170
return obj
169171
}
@@ -492,6 +494,7 @@ func ClouddeployBetaDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeCon
492494
p.SetDeployment(dcl.ValueOrEmptyString(o.Deployment))
493495
p.SetRouteUpdateWaitTime(dcl.ValueOrEmptyString(o.RouteUpdateWaitTime))
494496
p.SetStableCutbackDuration(dcl.ValueOrEmptyString(o.StableCutbackDuration))
497+
p.SetPodSelectorLabel(dcl.ValueOrEmptyString(o.PodSelectorLabel))
495498
return p
496499
}
497500

@@ -504,6 +507,7 @@ func ClouddeployBetaDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeCon
504507
p.SetService(dcl.ValueOrEmptyString(o.Service))
505508
p.SetDeployment(dcl.ValueOrEmptyString(o.Deployment))
506509
p.SetDisablePodOverprovisioning(dcl.ValueOrEmptyBool(o.DisablePodOverprovisioning))
510+
p.SetPodSelectorLabel(dcl.ValueOrEmptyString(o.PodSelectorLabel))
507511
return p
508512
}
509513

python/services/clouddeploy/delivery_pipeline.py

+10
Original file line numberDiff line numberDiff line change
@@ -764,12 +764,14 @@ def __init__(
764764
deployment: str = None,
765765
route_update_wait_time: str = None,
766766
stable_cutback_duration: str = None,
767+
pod_selector_label: str = None,
767768
):
768769
self.http_route = http_route
769770
self.service = service
770771
self.deployment = deployment
771772
self.route_update_wait_time = route_update_wait_time
772773
self.stable_cutback_duration = stable_cutback_duration
774+
self.pod_selector_label = pod_selector_label
773775

774776
@classmethod
775777
def to_proto(self, resource):
@@ -793,6 +795,8 @@ def to_proto(self, resource):
793795
res.stable_cutback_duration = Primitive.to_proto(
794796
resource.stable_cutback_duration
795797
)
798+
if Primitive.to_proto(resource.pod_selector_label):
799+
res.pod_selector_label = Primitive.to_proto(resource.pod_selector_label)
796800
return res
797801

798802
@classmethod
@@ -810,6 +814,7 @@ def from_proto(self, resource):
810814
stable_cutback_duration=Primitive.from_proto(
811815
resource.stable_cutback_duration
812816
),
817+
pod_selector_label=Primitive.from_proto(resource.pod_selector_label),
813818
)
814819

815820

@@ -846,10 +851,12 @@ def __init__(
846851
service: str = None,
847852
deployment: str = None,
848853
disable_pod_overprovisioning: bool = None,
854+
pod_selector_label: str = None,
849855
):
850856
self.service = service
851857
self.deployment = deployment
852858
self.disable_pod_overprovisioning = disable_pod_overprovisioning
859+
self.pod_selector_label = pod_selector_label
853860

854861
@classmethod
855862
def to_proto(self, resource):
@@ -867,6 +874,8 @@ def to_proto(self, resource):
867874
res.disable_pod_overprovisioning = Primitive.to_proto(
868875
resource.disable_pod_overprovisioning
869876
)
877+
if Primitive.to_proto(resource.pod_selector_label):
878+
res.pod_selector_label = Primitive.to_proto(resource.pod_selector_label)
870879
return res
871880

872881
@classmethod
@@ -880,6 +889,7 @@ def from_proto(self, resource):
880889
disable_pod_overprovisioning=Primitive.from_proto(
881890
resource.disable_pod_overprovisioning
882891
),
892+
pod_selector_label=Primitive.from_proto(resource.pod_selector_label),
883893
)
884894

885895

python/services/clouddeploy/delivery_pipeline_server.go

+4
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ func ProtoToClouddeployDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntime
151151
Deployment: dcl.StringOrNil(p.GetDeployment()),
152152
RouteUpdateWaitTime: dcl.StringOrNil(p.GetRouteUpdateWaitTime()),
153153
StableCutbackDuration: dcl.StringOrNil(p.GetStableCutbackDuration()),
154+
PodSelectorLabel: dcl.StringOrNil(p.GetPodSelectorLabel()),
154155
}
155156
return obj
156157
}
@@ -164,6 +165,7 @@ func ProtoToClouddeployDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntime
164165
Service: dcl.StringOrNil(p.GetService()),
165166
Deployment: dcl.StringOrNil(p.GetDeployment()),
166167
DisablePodOverprovisioning: dcl.Bool(p.GetDisablePodOverprovisioning()),
168+
PodSelectorLabel: dcl.StringOrNil(p.GetPodSelectorLabel()),
167169
}
168170
return obj
169171
}
@@ -492,6 +494,7 @@ func ClouddeployDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigK
492494
p.SetDeployment(dcl.ValueOrEmptyString(o.Deployment))
493495
p.SetRouteUpdateWaitTime(dcl.ValueOrEmptyString(o.RouteUpdateWaitTime))
494496
p.SetStableCutbackDuration(dcl.ValueOrEmptyString(o.StableCutbackDuration))
497+
p.SetPodSelectorLabel(dcl.ValueOrEmptyString(o.PodSelectorLabel))
495498
return p
496499
}
497500

@@ -504,6 +507,7 @@ func ClouddeployDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigK
504507
p.SetService(dcl.ValueOrEmptyString(o.Service))
505508
p.SetDeployment(dcl.ValueOrEmptyString(o.Deployment))
506509
p.SetDisablePodOverprovisioning(dcl.ValueOrEmptyBool(o.DisablePodOverprovisioning))
510+
p.SetPodSelectorLabel(dcl.ValueOrEmptyString(o.PodSelectorLabel))
507511
return p
508512
}
509513

services/google/clouddeploy/alpha/delivery_pipeline.go

+6
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGa
496496
Deployment *string `json:"deployment"`
497497
RouteUpdateWaitTime *string `json:"routeUpdateWaitTime"`
498498
StableCutbackDuration *string `json:"stableCutbackDuration"`
499+
PodSelectorLabel *string `json:"podSelectorLabel"`
499500
}
500501

501502
type jsonDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesGatewayServiceMesh
@@ -523,6 +524,8 @@ func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernet
523524

524525
r.StableCutbackDuration = res.StableCutbackDuration
525526

527+
r.PodSelectorLabel = res.PodSelectorLabel
528+
526529
}
527530
return nil
528531
}
@@ -552,6 +555,7 @@ type DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesSe
552555
Service *string `json:"service"`
553556
Deployment *string `json:"deployment"`
554557
DisablePodOverprovisioning *bool `json:"disablePodOverprovisioning"`
558+
PodSelectorLabel *string `json:"podSelectorLabel"`
555559
}
556560

557561
type jsonDeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernetesServiceNetworking
@@ -575,6 +579,8 @@ func (r *DeliveryPipelineSerialPipelineStagesStrategyCanaryRuntimeConfigKubernet
575579

576580
r.DisablePodOverprovisioning = res.DisablePodOverprovisioning
577581

582+
r.PodSelectorLabel = res.PodSelectorLabel
583+
578584
}
579585
return nil
580586
}

services/google/clouddeploy/alpha/delivery_pipeline.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,13 @@ components:
537537
x-dcl-go-name: HttpRoute
538538
description: Required. Name of the Gateway
539539
API HTTPRoute.
540+
podSelectorLabel:
541+
type: string
542+
x-dcl-go-name: PodSelectorLabel
543+
description: Optional. The label to use when
544+
selecting Pods for the Deployment and Service
545+
resources. This label must already be present
546+
in both resources.
540547
routeUpdateWaitTime:
541548
type: string
542549
x-dcl-go-name: RouteUpdateWaitTime
@@ -585,6 +592,13 @@ components:
585592
the number of total Pods used for the deployment
586593
strategy to the number of Pods the Deployment
587594
has on the cluster.
595+
podSelectorLabel:
596+
type: string
597+
x-dcl-go-name: PodSelectorLabel
598+
description: Optional. The label to use when
599+
selecting Pods for the Deployment resource.
600+
This label must already be present in the
601+
Deployment.
588602
service:
589603
type: string
590604
x-dcl-go-name: Service

services/google/clouddeploy/alpha/delivery_pipeline_alpha_yaml_embed.go

+3-3
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)