Skip to content

Commit

Permalink
fix: fix compatibility for other kinds (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiodionisi authored Sep 26, 2024
1 parent 6cbd473 commit 09e6034
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions internal/distribution/compatibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (c *EKSClusterCheck) IsCompatible() bool {
return false
}

max12SevenVersion, err := semver.NewVersion("v1.27.8")
max12SevenVersion, err := semver.NewVersion("v1.27.9")
if err != nil {
return false
}
Expand All @@ -95,7 +95,7 @@ func (c *EKSClusterCheck) IsCompatible() bool {
return false
}

max12EightVersion, err := semver.NewVersion("v1.28.3")
max12EightVersion, err := semver.NewVersion("v1.28.4")
if err != nil {
return false
}
Expand All @@ -105,7 +105,7 @@ func (c *EKSClusterCheck) IsCompatible() bool {
return false
}

max12NineVersion, err := semver.NewVersion("v1.29.3")
max12NineVersion, err := semver.NewVersion("v1.29.4")
if err != nil {
return false
}
Expand Down Expand Up @@ -158,7 +158,7 @@ func (c *KFDDistributionCheck) IsCompatible() bool {
return false
}

max12SevenVersion, err := semver.NewVersion("v1.27.8")
max12SevenVersion, err := semver.NewVersion("v1.27.9")
if err != nil {
return false
}
Expand All @@ -168,7 +168,7 @@ func (c *KFDDistributionCheck) IsCompatible() bool {
return false
}

max12EightVersion, err := semver.NewVersion("v1.28.3")
max12EightVersion, err := semver.NewVersion("v1.28.4")
if err != nil {
return false
}
Expand All @@ -178,7 +178,7 @@ func (c *KFDDistributionCheck) IsCompatible() bool {
return false
}

max12NineVersion, err := semver.NewVersion("v1.29.3")
max12NineVersion, err := semver.NewVersion("v1.29.4")
if err != nil {
return false
}
Expand Down
24 changes: 12 additions & 12 deletions internal/distribution/compatibility_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func TestEKSClusterCheckIsCompatible(t *testing.T) {
expected: false,
},
{
name: "should return false if distribution version is greater than 1.27.8",
distributionVersion: "v1.27.9",
name: "should return false if distribution version is greater than 1.27.9",
distributionVersion: "v1.27.10",
expected: false,
},
{
Expand All @@ -61,8 +61,8 @@ func TestEKSClusterCheckIsCompatible(t *testing.T) {
expected: true,
},
{
name: "should return false if distribution version is greater than 1.28.3",
distributionVersion: "v1.28.4",
name: "should return false if distribution version is greater than 1.28.4",
distributionVersion: "v1.28.5",
expected: false,
},
{
Expand All @@ -71,8 +71,8 @@ func TestEKSClusterCheckIsCompatible(t *testing.T) {
expected: true,
},
{
name: "should return false if distribution version is greater than 1.29.3",
distributionVersion: "v1.29.4",
name: "should return false if distribution version is greater than 1.29.4",
distributionVersion: "v1.29.5",
expected: false,
},
}
Expand Down Expand Up @@ -138,8 +138,8 @@ func TestKFDDistributionCheckIsCompatible(t *testing.T) {
expected: true,
},
{
name: "should return false if distribution version is greater than 1.27.8",
distributionVersion: "v1.27.9",
name: "should return false if distribution version is greater than 1.27.9",
distributionVersion: "v1.27.10",
expected: false,
},
{
Expand All @@ -148,8 +148,8 @@ func TestKFDDistributionCheckIsCompatible(t *testing.T) {
expected: true,
},
{
name: "should return false if distribution version is greater than 1.28.3",
distributionVersion: "v1.28.4",
name: "should return false if distribution version is greater than 1.28.4",
distributionVersion: "v1.28.5",
expected: false,
},
{
Expand All @@ -158,8 +158,8 @@ func TestKFDDistributionCheckIsCompatible(t *testing.T) {
expected: true,
},
{
name: "should return false if distribution version is greater than 1.29.3",
distributionVersion: "v1.29.4",
name: "should return false if distribution version is greater than 1.29.4",
distributionVersion: "v1.29.5",
expected: false,
},
}
Expand Down

0 comments on commit 09e6034

Please sign in to comment.