[BOYSCOUT]: Grant dma/dfshell RBAC to scale the memgraph StatefulSet - #374
Merged
Merged
Conversation
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 13, 2026 11:19 — with
GitHub Actions
Inactive
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 13, 2026 11:19 — with
GitHub Actions
Inactive
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 13, 2026 11:19 — with
GitHub Actions
Inactive
anatoly-scherbakov
had a problem deploying
to
Helm Charts
July 13, 2026 11:19 — with
GitHub Actions
Failure
🔍 Kubeconform Validation Results✅ All cloud provider configurations passed Kubernetes API schema validation!
The rendered Kubernetes manifests conform to the Kubernetes API specification across all cloud providers. |
anatoly-scherbakov
force-pushed
the
anatoly-boyscout-memgraph-scale-rbac
branch
from
July 13, 2026 11:23
05a7b45 to
a41fda0
Compare
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 13, 2026 11:23 — with
GitHub Actions
Inactive
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 13, 2026 11:23 — with
GitHub Actions
Inactive
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 13, 2026 11:23 — with
GitHub Actions
Inactive
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 13, 2026 11:23 — with
GitHub Actions
Inactive
🔍 Kubeconform Validation Results✅ All cloud provider configurations passed Kubernetes API schema validation!
The rendered Kubernetes manifests conform to the Kubernetes API specification across all cloud providers. |
anatoly-scherbakov
enabled auto-merge (squash)
July 13, 2026 11:40
gtoonstra
approved these changes
Jul 28, 2026
anatoly-scherbakov
force-pushed
the
anatoly-boyscout-memgraph-scale-rbac
branch
from
July 28, 2026 09:33
a41fda0 to
e75458d
Compare
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 28, 2026 09:33 — with
GitHub Actions
Inactive
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 28, 2026 09:33 — with
GitHub Actions
Inactive
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 28, 2026 09:33 — with
GitHub Actions
Inactive
anatoly-scherbakov
temporarily deployed
to
Helm Charts
July 28, 2026 09:33 — with
GitHub Actions
Inactive
🔍 Kubeconform Validation Results✅ All cloud provider configurations passed Kubernetes API schema validation!
The rendered Kubernetes manifests conform to the Kubernetes API specification across all cloud providers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Per-org managed Memgraph graphs are provisioned at runtime by
MemgraphsByOrg.create(datafold/knowledge_graph/registry.py): it patches thedatafold-memgraphStatefulSet's replica count (_scale_statefulset) and polls the new pod for readiness (_wait_for_pod_healthy). That code runs inside thedmaanddfshellpods, whose service accounts lack permission to read/scale StatefulSets — soknowledge-graph create-graphfails with:This was hit provisioning a new graph on saas (a fresh
datafold-memgraph-8); the fix was applied live by hand and this PR codifies it.What
New
Role+RoleBindingdatafold-memgraph-scalein the memgraph subchart, granting exactly what the registry code calls:statefulsets/scale_scale_statefulsetstatefulsets_scale_statefulset(reads current replicas)pods_wait_for_pod_healthySubjects come from a new
scaleAccessServiceAccountsvalue (default[dma, dfshell]; empty list disables the RBAC).Placed in the memgraph subchart so it renders only where memgraph is installed — auto-covering saas, ecolab, and any future memgraph deployment with no per-cluster copies.
Validation
helm lint charts/datafoldpasses.helm templatewith memgraph enabled renders the Role + RoleBinding bindingdma/dfshellin the release namespace.memgraph.install=false(subchart not rendered) and whenscaleAccessServiceAccountsis empty.create-graph.Rollout / cleanup
0.10.120. The hand-applied live RBAC keepscreate-graphworking until then.role/dma-memgraph-scale,rolebinding/dma-memgraph-scale,rolebinding/dfshell-memgraph-scale.🤖 Generated with Claude Code