Remove dead operator.etcd.io/etcdclusters RBAC grant - #2434
Conversation
Milvus's internal meta-storage etcd cluster is now a KubeDB Etcd database (kubedb.dev/etcd operator, kubedb.com/v1alpha2 Etcd CRD) instead of the official upstream go.etcd.io/etcd-operator's EtcdCluster (kubedb/apimachinery#1897, kubedb/milvus#68). The etcds.kubedb.com resource is already covered by the existing kubedb.com wildcard grant in these same RBAC manifests, so the now-unused operator.etcd.io/etcdclusters grant is just dead weight - drop it from the three places it was duplicated: the kubedb-provisioner Helm chart's ClusterRole, the kustomize custom_role.yaml source, and the OLM bundle manifest. Signed-off-by: Tamal Saha <tamal@appscode.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change removes ChangesRBAC permission removal
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This change removes obsolete EtcdCluster RBAC permissions consistently across the installer manifests. No current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Milvus's internal meta-storage etcd cluster is now a KubeDB
Etcddatabase (kubedb.dev/etcdoperator,kubedb.com/v1alpha2EtcdCRD) instead of the official upstreamgo.etcd.io/etcd-operator'sEtcdCluster(kubedb/apimachinery#1897, kubedb/milvus#68).The
etcds.kubedb.comresource this now uses is already covered by the existingkubedb.comwildcard grant (resources: ["*"], verbs: ["*"]) in these same RBAC manifests, so theoperator.etcd.io/etcdclustersgrant is now dead weight left over from the old integration. Removed it from the three places it was duplicated:charts/kubedb-provisioner/templates/cluster-role.yaml(the Helm chart's ClusterRole)config/rbac/custom_role.yaml(the kustomize source)bundle/manifests/kubedb-installer.clusterserviceversion.yaml(the OLM bundle manifest)Out of scope
The
MilvusCRD schema itself (newspec.metaStorage.tls/spec.metaStorage.authSecretfields) will pick up automatically on the next routinekubedb.dev/apimachinerydependency bump in this repo, once kubedb/apimachinery#1897 is released - no need to hand-sync it here ahead of that.Testing
Plain YAML edits (removing existing blocks, no reformatting). No installer-specific tests run.
Summary by CodeRabbit