Skip to content

Commit

Permalink
chore(rocky): set Rocky Linux 9 EOL (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaineK00n committed Jul 26, 2022
1 parent ab54266 commit 2f3b8bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func GetEOL(family, release string) (eol EOL, found bool) {
case constant.Rocky:
eol, found = map[string]EOL{
"8": {StandardSupportUntil: time.Date(2029, 5, 31, 23, 59, 59, 0, time.UTC)},
// "9": {StandardSupportUntil: time.Date(2032, 5, 31, 23, 59, 59, 0, time.UTC)},
"9": {StandardSupportUntil: time.Date(2032, 5, 31, 23, 59, 59, 0, time.UTC)},
}[major(release)]
case constant.Oracle:
eol, found = map[string]EOL{
Expand Down
10 changes: 9 additions & 1 deletion config/os_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,19 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) {
found: true,
},
{
name: "Rocky Linux 9 Not Found",
name: "Rocky Linux 9 supported",
fields: fields{family: Rocky, release: "9"},
now: time.Date(2021, 7, 2, 23, 59, 59, 0, time.UTC),
stdEnded: false,
extEnded: false,
found: true,
},
{
name: "Rocky Linux 10 Not Found",
fields: fields{family: Rocky, release: "10"},
now: time.Date(2021, 7, 2, 23, 59, 59, 0, time.UTC),
stdEnded: false,
extEnded: false,
found: false,
},
//Oracle
Expand Down

0 comments on commit 2f3b8bf

Please sign in to comment.