You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working with AuthorizationPolicy and use Rule struct in one of our CRDs but with the last update of protobuf library, it has included a few fields without JSON tags that cause issues with controller-gen when creating manifests.
/home/rahul/kuadrant-controller/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:439:2: encountered struct field "state" without JSON tag in type "Rule"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:440:2: encountered struct field "sizeCache" without JSON tag in type "Rule"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:441:2: encountered struct field "unknownFields" without JSON tag in type "Rule"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:927:2: encountered struct field "state" without JSON tag in type "Rule_From"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:928:2: encountered struct field "sizeCache" without JSON tag in type "Rule_From"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:929:2: encountered struct field "unknownFields" without JSON tag in type "Rule_From"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:522:2: encountered struct field "state" without JSON tag in type "Source"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:523:2: encountered struct field "sizeCache" without JSON tag in type "Source"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:524:2: encountered struct field "unknownFields" without JSON tag in type "Source"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:976:2: encountered struct field "state" without JSON tag in type "Rule_To"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:977:2: encountered struct field "sizeCache" without JSON tag in type "Rule_To"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:978:2: encountered struct field "unknownFields" without JSON tag in type "Rule_To"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:683:2: encountered struct field "state" without JSON tag in type "Operation"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:684:2: encountered struct field "sizeCache" without JSON tag in type "Operation"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:685:2: encountered struct field "unknownFields" without JSON tag in type "Operation"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:808:2: encountered struct field "state" without JSON tag in type "Condition"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:809:2: encountered struct field "sizeCache" without JSON tag in type "Condition"
/home/rahul/go/pkg/mod/istio.io/api@v0.0.0-20220512153635-e0015771f0c0/security/v1beta1/authorization_policy.pb.go:810:2: encountered struct field "unknownFields" without JSON tag in type "Condition"
Error: not all generators ran successfully
Any solution for this?
The text was updated successfully, but these errors were encountered:
I am currently working with
AuthorizationPolicy
and useRule
struct in one of our CRDs but with the last update of protobuf library, it has included a few fields without JSON tags that cause issues withcontroller-gen
when creating manifests.Any solution for this?
The text was updated successfully, but these errors were encountered: