Skip to content

Commit

Permalink
Automated DCL import.
Browse files Browse the repository at this point in the history
  - 2cee7d6cbc42a6869756ea26a033df64a6b2045f Automatic import from cloud_mmv2_dcl_20241218_1531_RC00 by DCL Team <no-reply@google.com>

GitOrigin-RevId: 2cee7d6cbc42a6869756ea26a033df64a6b2045f
  • Loading branch information
DCL Team authored and copybara-github committed Dec 18, 2024
1 parent a38603e commit c1c69ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion services/google/cloudbuild/alpha/cloudbuild_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ func betaToGaPrivatePool(r *WorkerPool, c *WorkerPoolPrivatePoolV1Config) *Worke
}
if r.PrivateServiceConnect != nil {
cfgPrivateServiceConnect.NetworkAttachment = r.PrivateServiceConnect.NetworkAttachment
cfgPrivateServiceConnect.PublicIPAddressDisabled = r.WorkerConfig.NoExternalIP
cfgPrivateServiceConnect.RouteAllTraffic = r.PrivateServiceConnect.RouteAllTraffic
if r.WorkerConfig != nil {
cfgPrivateServiceConnect.PublicIPAddressDisabled = r.WorkerConfig.NoExternalIP
}
}

cfg := &WorkerPoolPrivatePoolV1Config{}
Expand Down
4 changes: 3 additions & 1 deletion services/google/cloudbuild/beta/cloudbuild_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ func betaToGaPrivatePool(r *WorkerPool, c *WorkerPoolPrivatePoolV1Config) *Worke
}
if r.PrivateServiceConnect != nil {
cfgPrivateServiceConnect.NetworkAttachment = r.PrivateServiceConnect.NetworkAttachment
cfgPrivateServiceConnect.PublicIPAddressDisabled = r.WorkerConfig.NoExternalIP
cfgPrivateServiceConnect.RouteAllTraffic = r.PrivateServiceConnect.RouteAllTraffic
if r.WorkerConfig != nil {
cfgPrivateServiceConnect.PublicIPAddressDisabled = r.WorkerConfig.NoExternalIP
}
}

cfg := &WorkerPoolPrivatePoolV1Config{}
Expand Down
4 changes: 3 additions & 1 deletion services/google/cloudbuild/cloudbuild_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ func betaToGaPrivatePool(r *WorkerPool, c *WorkerPoolPrivatePoolV1Config) *Worke
}
if r.PrivateServiceConnect != nil {
cfgPrivateServiceConnect.NetworkAttachment = r.PrivateServiceConnect.NetworkAttachment
cfgPrivateServiceConnect.PublicIPAddressDisabled = r.WorkerConfig.NoExternalIP
cfgPrivateServiceConnect.RouteAllTraffic = r.PrivateServiceConnect.RouteAllTraffic
if r.WorkerConfig != nil {
cfgPrivateServiceConnect.PublicIPAddressDisabled = r.WorkerConfig.NoExternalIP
}
}

cfg := &WorkerPoolPrivatePoolV1Config{}
Expand Down

0 comments on commit c1c69ec

Please sign in to comment.