Skip to content

Commit

Permalink
Fixed minor version not being recognized correctly
Browse files Browse the repository at this point in the history
Signed-off-by: peng9808 <[email protected]>
  • Loading branch information
peng9808 committed Sep 20, 2024
1 parent d34f69c commit cdb88bd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/install/drbd/drbd_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ var defaultNodeSelectTerms = []corev1.NodeSelectorTerm{
var defaultChartVersion = "v0.4.2"

var distroRegexMap = map[string]string{
"(red hat enterprise|centos|almalinux|rocky linux) .*7([\\s\\-\\.]|$)": "rhel7",
"(red hat enterprise|centos|almalinux|rocky linux) .*8([\\s\\-\\.]|$)": "rhel8",
"(red hat enterprise|centos|almalinux|rocky linux) .*9([\\s\\-\\.]|$)": "rhel9",
"ubuntu .*18([\\s\\-\\.]|$)": "bionic",
"ubuntu .*20([\\s\\-\\.]|$)": "focal",
"ubuntu .*22([\\s\\-\\.]|$)": "jammy",
"kylin .*v10([\\s\\-\\.]|$)": "kylin10",
"(red hat enterprise|centos|almalinux|rocky linux) .*?7(\\.|\\s|$)": "rhel7",
"(red hat enterprise|centos|almalinux|rocky linux) .*?8(\\.|\\s|$)": "rhel8",
"(red hat enterprise|centos|almalinux|rocky linux) .*?9(\\.|\\s|$)": "rhel9",
"ubuntu .*?18(\\.|\\s|$)": "bionic",
"ubuntu .*?20(\\.|\\s|$)": "focal",
"ubuntu .*?22(\\.|\\s|$)": "jammy",
"kylin .*?v10(\\.|\\s|$)": "kylin10",
}

var backoffLimit0 = int32(0)
Expand Down

0 comments on commit cdb88bd

Please sign in to comment.