Skip to content

Commit 3fac8c0

Browse files
authored
Merge pull request #32 from CircleCI-Public/fix/update-ubuntu-images-dec
fix: updated supported ubuntu images
2 parents 2d604c3 + 7b356cb commit 3fac8c0

File tree

2 files changed

+51
-4
lines changed

2 files changed

+51
-4
lines changed

pkg/parser/validate/executor.go

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,30 @@ func (val Validate) validateLinuxMachineExecutor(executor ast.MachineExecutor) {
116116
}
117117

118118
var ValidARMOrMachineImages = []string{
119+
// Ubuntu 2004
119120
"ubuntu-2004:current",
121+
"ubuntu-2004:2022.10.1",
122+
"ubuntu-2004:2022.07.1",
123+
"ubuntu-2004:2022.04.2",
120124
"ubuntu-2004:2022.04.1",
121125
"ubuntu-2004:202201-02",
122126
"ubuntu-2004:202201-01",
123127
"ubuntu-2004:202111-02",
124128
"ubuntu-2004:202111-01",
125-
"ubuntu-2004:202107-01",
129+
"ubuntu-2004:202107-02",
126130
"ubuntu-2004:202104-01",
127131
"ubuntu-2004:202101-01",
128-
"ubuntu-2004:202011-01",
132+
"ubuntu-2004:202010-01",
133+
134+
// Ubuntu 2204
135+
"ubuntu-2204:current",
136+
"ubuntu-2204:edge",
137+
"ubuntu-2204:2022.10.2",
138+
"ubuntu-2204:2022.10.1",
139+
"ubuntu-2204:2022.07.2",
140+
"ubuntu-2204:2022.07.1",
141+
"ubuntu-2204:2022.04.2",
142+
"ubuntu-2204:2022.04.1",
129143
}
130144

131145
func (val Validate) validateImage(img string, imgRange protocol.Range) {

pkg/services/complete_test.go

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,15 @@ func TestComplete(t *testing.T) {
214214
{
215215
Label: "ubuntu-2004:current",
216216
},
217+
{
218+
Label: "ubuntu-2004:2022.10.1",
219+
},
220+
{
221+
Label: "ubuntu-2004:2022.07.1",
222+
},
223+
{
224+
Label: "ubuntu-2004:2022.04.2",
225+
},
217226
{
218227
Label: "ubuntu-2004:2022.04.1",
219228
},
@@ -230,7 +239,7 @@ func TestComplete(t *testing.T) {
230239
Label: "ubuntu-2004:202111-01",
231240
},
232241
{
233-
Label: "ubuntu-2004:202107-01",
242+
Label: "ubuntu-2004:202107-02",
234243
},
235244
{
236245
Label: "ubuntu-2004:202104-01",
@@ -239,7 +248,31 @@ func TestComplete(t *testing.T) {
239248
Label: "ubuntu-2004:202101-01",
240249
},
241250
{
242-
Label: "ubuntu-2004:202011-01",
251+
Label: "ubuntu-2004:202010-01",
252+
},
253+
{
254+
Label: "ubuntu-2204:current",
255+
},
256+
{
257+
Label: "ubuntu-2204:edge",
258+
},
259+
{
260+
Label: "ubuntu-2204:2022.10.2",
261+
},
262+
{
263+
Label: "ubuntu-2204:2022.10.1",
264+
},
265+
{
266+
Label: "ubuntu-2204:2022.07.2",
267+
},
268+
{
269+
Label: "ubuntu-2204:2022.07.1",
270+
},
271+
{
272+
Label: "ubuntu-2204:2022.04.2",
273+
},
274+
{
275+
Label: "ubuntu-2204:2022.04.1",
243276
},
244277
},
245278
},

0 commit comments

Comments
 (0)