Skip to content

Commit

Permalink
Update outdated default image for GCP (2022-07-16)
Browse files Browse the repository at this point in the history
  • Loading branch information
guessi committed Jul 16, 2022
1 parent 5546374 commit 3cbdcd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions drivers/google/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestCreate(t *testing.T) {
if want, got := instance.Address, "1.2.3.4"; got != want {
t.Errorf("Want instance IP %q, got %q", want, got)
}
if want, got := instance.Image, "ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220204"; got != want {
if want, got := instance.Image, "ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220712"; got != want {
t.Errorf("Want instance ID %q, got %q", want, got)
}
if want, got := instance.ID, "agent-807jvfwj"; got != want {
Expand Down Expand Up @@ -145,7 +145,7 @@ var insertInstanceMock = &compute.Instance{
AutoDelete: true,
DeviceName: "agent-807jvfwj",
InitializeParams: &compute.AttachedDiskInitializeParams{
SourceImage: "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220204",
SourceImage: "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220712",
DiskType: "projects/my-project/zones/us-central1-a/diskTypes/pd-standard",
DiskSizeGb: 50,
},
Expand Down Expand Up @@ -207,7 +207,7 @@ var insertInstanceMockB = &compute.Instance{
AutoDelete: true,
DeviceName: "agent-807jvfwj",
InitializeParams: &compute.AttachedDiskInitializeParams{
SourceImage: "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220204",
SourceImage: "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220712",
DiskType: "projects/my-project/zones/us-central1-b/diskTypes/pd-standard",
DiskSizeGb: 50,
},
Expand Down
2 changes: 1 addition & 1 deletion drivers/google/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func New(opts ...Option) (autoscaler.Provider, error) {
p.size = "n1-standard-1"
}
if p.image == "" {
p.image = "ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220204"
p.image = "ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220712"
}
if p.network == "" {
p.network = "global/networks/default"
Expand Down
2 changes: 1 addition & 1 deletion drivers/google/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestDefaults(t *testing.T) {
if got, want := p.diskType, "pd-standard"; got != want {
t.Errorf("Want diskType %s, got %s", want, got)
}
if got, want := p.image, "ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220204"; got != want {
if got, want := p.image, "ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220712"; got != want {
t.Errorf("Want image %q, got %q", want, got)
}
if got, want := p.network, "global/networks/default"; got != want {
Expand Down

0 comments on commit 3cbdcd0

Please sign in to comment.