Skip to content

Commit

Permalink
ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Mar 8, 2024
1 parent ffd7fa8 commit 99b321b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/integ/cluster/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ var (
}
)

func ptr[T any](v T) *T {
return &v
}

func (c *Cluster) getClusterID(ctx context.Context) (exov3.UUID, error) {
if err := flags.ValidateFlags(); err != nil {
return "", err
Expand Down Expand Up @@ -160,7 +156,7 @@ func (c *Cluster) applyCSI(ctx context.Context) error {
op, err := c.Ego.CreateIAMRole(ctx, exov3.CreateIAMRoleRequest{
Name: c.APIRoleName,
Description: "role for the CSI test cluster " + c.Name,
Editable: ptr(false),
Editable: exov3.Ptr(false),
Policy: &exov3.IAMPolicy{
DefaultServiceStrategy: "deny",
Services: map[string]exov3.IAMServicePolicy{
Expand Down

0 comments on commit 99b321b

Please sign in to comment.