fix(config): add Ubuntu 20.10 (#1218)

This commit is contained in:
Shigechika AIKAWA
2021-04-21 09:05:33 +09:00
committed by GitHub
parent 27b3e17b79
commit 23f3e2fc11
2 changed files with 11 additions and 0 deletions

View File

@@ -131,6 +131,9 @@ func GetEOL(family, release string) (eol EOL, found bool) {
"20.04": {
StandardSupportUntil: time.Date(2025, 4, 1, 23, 59, 59, 0, time.UTC),
},
"20.10": {
StandardSupportUntil: time.Date(2021, 7, 1, 23, 59, 59, 0, time.UTC),
},
"21.04": {
StandardSupportUntil: time.Date(2022, 1, 1, 23, 59, 59, 0, time.UTC),
},

View File

@@ -193,6 +193,14 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) {
stdEnded: false,
extEnded: false,
},
{
name: "Ubuntu 20.10 supported",
fields: fields{family: Ubuntu, release: "20.10"},
now: time.Date(2021, 5, 1, 23, 59, 59, 0, time.UTC),
found: true,
stdEnded: false,
extEnded: false,
},
{
name: "Ubuntu 21.04 supported",
fields: fields{family: Ubuntu, release: "21.04"},