Skip to content

Commit

Permalink
Merge pull request #513 from flatcar/gce-defaults-update
Browse files Browse the repository at this point in the history
gce: Update default options
  • Loading branch information
jepio authored Mar 28, 2024
2 parents 77adbbe + e6c82e5 commit e9d31a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/kola/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ func init() {
sv(&kola.ExternalOptions.DeprovisioningCmds, "external-deprovisioning-cmds", "", "External platform deprovisioning commands ran on management SSH host. Has access to the variable IPADDR to identify the node.")

// gce-specific options
sv(&kola.GCEOptions.Image, "gce-image", "projects/coreos-cloud/global/images/family/coreos-alpha", "GCE image, full api endpoints names are accepted if resource is in a different project")
sv(&kola.GCEOptions.Image, "gce-image", "projects/kinvolk-public/global/images/family/flatcar-alpha", "GCE image, full api endpoints names are accepted if resource is in a different project")
sv(&kola.GCEOptions.Project, "gce-project", "flatcar-212911", "GCE project name")
sv(&kola.GCEOptions.Zone, "gce-zone", "us-central1-a", "GCE zone name")
sv(&kola.GCEOptions.MachineType, "gce-machinetype", "n1-standard-1", "GCE machine type")
sv(&kola.GCEOptions.MachineType, "gce-machinetype", "t2d-standard-1", "GCE machine type")
sv(&kola.GCEOptions.DiskType, "gce-disktype", "pd-ssd", "GCE disk type")
sv(&kola.GCEOptions.Network, "gce-network", "default", "GCE network")
bv(&kola.GCEOptions.GVNIC, "gce-gvnic", false, "Use gVNIC instead of default virtio-net network device")
Expand Down
2 changes: 1 addition & 1 deletion cmd/ore/aws/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func init() {
}

func defaultBucketNameForRegion(region string) string {
return fmt.Sprintf("coreos-dev-ami-import-%s", region)
return fmt.Sprintf("flatcar-kola-ami-import-%s", region)
}

func defaultUploadFile() string {
Expand Down
2 changes: 1 addition & 1 deletion cmd/ore/gcloud/gcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func init() {
sv(&opts.Image, "image", "", "image name")
sv(&opts.Project, "project", "flatcar-212911", "project")
sv(&opts.Zone, "zone", "us-central1-a", "zone")
sv(&opts.MachineType, "machinetype", "n1-standard-1", "machine type")
sv(&opts.MachineType, "machinetype", "t2d-standard-1", "machine type")
sv(&opts.DiskType, "disktype", "pd-ssd", "disk type")
sv(&opts.BaseName, "basename", "kola", "instance name prefix")
sv(&opts.Network, "network", "default", "network name")
Expand Down
2 changes: 1 addition & 1 deletion cmd/ore/gcloud/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func writeFile(api *storage.Service, bucket, filename, destname string) error {
Name: destname,
ContentType: "application/x-gzip",
})
req.PredefinedAcl("authenticatedRead")
req.PredefinedAcl("projectPrivate")
req.Media(file)

if _, err := req.Do(); err != nil {
Expand Down

0 comments on commit e9d31a2

Please sign in to comment.