-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
add finalizer rbac permission to the go/sample and doc steps #4162
add finalizer rbac permission to the go/sample and doc steps #4162
Conversation
95490fa
to
1a88f85
Compare
1a88f85
to
1ca9052
Compare
**Note** If your cluster is a non-vanilla one then such as OpenShift then, add the RBAC finalizer permission on the `controllers/memcached_controller.go` file and run `make manifests` before continue. | ||
|
||
```go | ||
// +kubebuilder:rbac:groups=cache.example.com,resources=memcacheds/finalizers,verbs=update | ||
``` |
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.
A couple of notes:
- We shouldn't put such specific information in the quickstart. Something like this seems more relevant to an FAQ entry (e.g. "I saw error X in my logs. How do I fix it?")
- The need for this permission is based on the OwnerReferencesPermissionEnforcement plugin, which can be enabled in any Kubernetes cluster because it is a feature of the upstream kube-apiserver. Anytime we talk about the need for this permission, we should reference that plugin, not a specific distro of Kubernetes.
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.
Too much better address it in the FAQ. Indeed we can give a better explanation. 👍
1ca9052
to
6716997
Compare
Co-authored-by: Joe Lanford <joe.lanford@gmail.com>
Co-authored-by: Joe Lanford <joe.lanford@gmail.com>
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.
/lgtm
…r-framework#4162) **Description of the change:** - Add the RBAC finalizer permission to allow users to test the Go sample project on OCP - See that for v3+ plugins this permission will be added by default - See that it was added as a NOTE to the quick start and by default in the tutorial in order to avoid the issue faced in operator-framework#3477 **Motivation for the change:** Closes : operator-framework#3477 Co-authored-by: Joe Lanford <joe.lanford@gmail.com> Signed-off-by: reinvantveer <rein.van.t.veer@geodan.nl>
Description of the change:
Motivation for the change:
Closes : #3477
Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments
(seechangelog/fragments/00-template.yaml
)website/content/en/docs