-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support RabbitMQ operator policies #752
Conversation
Use Golang 1.21 locally on the dev machine and bump Golang to 1.21 in Dockerfile make manifests
since codeql does not (yet) support Go 1.21, see github/codeql-action#1842
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me!
The only minor thing was the missing of GenerateOperatorPolicy tests which has been addressed.
I also tested the new controller in gke. Creation/Deletion and Update are working good. The webhook is also working good.
Thank you!
Thank you @DanielePalaia for the great review! |
if err := json.Unmarshal(p.Spec.Definition.Raw, &definition); err != nil { | ||
return nil, fmt.Errorf("failed to unmarshall policy definition: %v", err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to wrap errors with %w
instead of %v
, because it allows the callers to use errors.Is()
Reference: https://go.dev/blog/go1.13-errors#wrapping-errors-with-w
This closes #202