Skip to content

Commit

Permalink
chore(ubuntu): set Ubuntu 22.10 EOL (#1552)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaineK00n authored Nov 1, 2022
1 parent 8b5d1c8 commit 96333f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ func GetEOL(family, release string) (eol EOL, found bool) {
StandardSupportUntil: time.Date(2027, 4, 1, 23, 59, 59, 0, time.UTC),
ExtendedSupportUntil: time.Date(2032, 4, 1, 23, 59, 59, 0, time.UTC),
},
"22.10": {
StandardSupportUntil: time.Date(2023, 7, 20, 23, 59, 59, 0, time.UTC),
},
}[release]
case constant.OpenSUSE:
// https://en.opensuse.org/Lifetime
Expand Down
8 changes: 8 additions & 0 deletions config/os_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,14 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) {
stdEnded: false,
extEnded: false,
},
{
name: "Ubuntu 22.10 supported",
fields: fields{family: Ubuntu, release: "22.10"},
now: time.Date(2022, 5, 1, 23, 59, 59, 0, time.UTC),
found: true,
stdEnded: false,
extEnded: false,
},
//Debian
{
name: "Debian 9 supported",
Expand Down

0 comments on commit 96333f3

Please sign in to comment.