Skip to content

Commit

Permalink
make golangci-lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mrWinston committed Jan 30, 2025
1 parent 62e78f3 commit b276bdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pkg/util/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,9 @@ func (c *Cluster) GetPlatformWIRoles() ([]api.PlatformWorkloadIdentityRole, erro
}

return nil, fmt.Errorf("workload identity role sets for version %s not found", c.Config.OSClusterVersion)

}

func (c *Cluster) SetupWorkloadIdentity(ctx context.Context, vnetResourceGroup string) error {

platformWorkloadIdentityRoles, err := c.GetPlatformWIRoles()
if err != nil {
return fmt.Errorf("failed parsing platformWI Roles: %w", err)
Expand Down
4 changes: 2 additions & 2 deletions pkg/util/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ func TestCluster_GetPlatformWIRoles(t *testing.T) {
name: "Single Roleset with matching version",
roleSetsRaw: oneRoleSet415Raw,
clusterVersion: "4.15.36",
want: []api.PlatformWorkloadIdentityRole{defaultWIRole},
wantErr: false,
want: []api.PlatformWorkloadIdentityRole{defaultWIRole},
wantErr: false,
},
{
name: "Single Roleset with no matching version",
Expand Down

0 comments on commit b276bdd

Please sign in to comment.