Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

feat: improve sa/role/rolebind check/update - #2159

Merged
pjuarezd merged 1 commit into
minio:masterfrom
jiuker:feat-improve-sa/the-role/rolebind-check
Jun 12, 2024
Merged

pjuarezd merged 1 commit into
minio:masterfrom
jiuker:feat-improve-sa/the-role/rolebind-check

Conversation

@jiuker

@jiuker jiuker commented Jun 12, 2024 •

Copy link
Copy Markdown
Contributor

feat: improve sa/the role/rolebind check
fix case:
If user used a very old sa/role/rolebind to start minio.
We only check the name exists.
Now we check the items as well.

How to test:
1.Deploy tenant myminio.
2.Remove the role myminio-role rules:

  - verbs:
      - get
      - list
      - watch
    apiGroups:
      - minio.min.io
    resources:
      - tenants
  1. Restart minio pod. We can see sidecar that will print errrors for it can't watch the tenant change.
  2. But our operator show everything is fine.

This pr is ensure that when it got deleted, we set what we execepted items back

feat: improve sa/the role/rolebind check

@shtripat shtripat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, verified

@pjuarezd
pjuarezd merged commit 6a90c45 into minio:master Jun 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants