Skip to content

Commit

Permalink
A couple of GKE-related fixes. (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
spetrovic77 authored Jul 28, 2023
1 parent 14feb5f commit 06134ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions internal/gke/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ steps:
- '.'
images: {{range $tag := .Tags}}
- '{{$tag}}' {{end}}
options:
logging: CLOUD_LOGGING_ONLY
`
if err := template.Must(template.New("cloudbuild").Parse(tmpl)).Execute(cloudbuildFile, spec); err != nil {
cloudbuildFile.Close()
Expand Down
1 change: 1 addition & 0 deletions internal/gke/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func PrepareRollout(ctx context.Context, config CloudConfig, cfg *config.GKEConf
"multiclusterservicediscovery.googleapis.com",
"multiclusteringress.googleapis.com",
"privateca.googleapis.com",
"serviceusage.googleapis.com",
"trafficdirector.googleapis.com",
); err != nil {
return nil, err
Expand Down
6 changes: 4 additions & 2 deletions internal/tool/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,13 @@ func (d *DeploySpec) startRollout(ctx context.Context, cfg *config.GKEConfig) er
if err := pickDeployRegions(cfg); err != nil {
return err
}
controllerAddr, controllerClient, err := d.Controller(ctx, cfg)

req, err := d.PrepareRollout(ctx, cfg)
if err != nil {
return err
}
req, err := d.PrepareRollout(ctx, cfg)

controllerAddr, controllerClient, err := d.Controller(ctx, cfg)
if err != nil {
return err
}
Expand Down

0 comments on commit 06134ed

Please sign in to comment.