redradrat / aws-iam-operator

AWS IAM Operator for Kubernetes
Apache License 2.0
32 stars 7 forks source link

Error in importing #38

Closed Moulick closed 9 months ago

Moulick commented 11 months ago

Trying to import github.com/redradrat/aws-iam-operator/api/v1beta1 and build returns the following error

# github.com/redradrat/aws-iam-operator/api/v1beta1
../../go/pkg/mod/github.com/redradrat/aws-iam-operator@v0.4.0/api/v1beta1/assumerolepolicy_helpers.go:28:15: cannot use entry.Conditions.Normalize() (value of type map[string]map[string]string) as map[string]map[string][]string value in struct literal
../../go/pkg/mod/github.com/redradrat/aws-iam-operator@v0.4.0/api/v1beta1/assumerolepolicy_helpers.go:51:15: cannot use entry.Conditions.Normalize() (value of type map[string]map[string]string) as map[string]map[string][]string value in struct literal
../../go/pkg/mod/github.com/redradrat/aws-iam-operator@v0.4.0/api/v1beta1/policy_helpers.go:49:15: cannot use entry.Conditions.Normalize() (value of type map[string]map[string]string) as map[string]map[string][]string value in struct literal
../../go/pkg/mod/github.com/redradrat/aws-iam-operator@v0.4.0/api/v1beta1/role_helpers.go:32:15: cannot use entry.Conditions.Normalize() (value of type map[string]map[string]string) as map[string]map[string][]string value in struct literal

Same error on both v0.3.7 and v0.4.0

Sample code

package main

import (
    iamv1beta1 "github.com/redradrat/aws-iam-operator/api/v1beta1"
)

func main() {
    _ = iamv1beta1.Role{}
}