runtime-operator namespace scoping#291
Merged
Merged
Conversation
lxfontes
reviewed
Feb 18, 2026
a484fc9 to
bf4a05d
Compare
Signed-off-by: Jeremy Fleitz <jeremy@cosmonic.com>
Signed-off-by: Jeremy Fleitz <jeremy@cosmonic.com>
Signed-off-by: Jeremy Fleitz <jeremy@cosmonic.com>
Signed-off-by: Jeremy Fleitz <jeremy@cosmonic.com>
8d87c9c to
2dd3a0a
Compare
Signed-off-by: Jeremy Fleitz <jeremy@cosmonic.com>
lxfontes
approved these changes
Mar 5, 2026
Signed-off-by: Jeremy Fleitz <jeremy@cosmonic.com>
Signed-off-by: Jeremy Fleitz <jeremy@cosmonic.com>
lxfontes
approved these changes
Mar 5, 2026
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.
Summary
This PR improves the runtime-operator Helm chart by introducing per-component ServiceAccount configuration and optional namespace-scoped watching.
Adds the property for
operator.enabled(default true) in values.yaml to allow for just running the helm chart to install host groups only.Per-Component ServiceAccounts
Each deployment (operator, gateway, runtime, NATS) now has its own
serviceAccountblock invalues.yamlwithcreate,name, andannotationsfields. Previously, all deployments used a Service Account name with a prefix appended. This allows operators to:The
_helpers.tplhas been updated with dedicated named templates for each component (operator.serviceAccountName,gateway.serviceAccountName,runtime.serviceAccountName,nats.serviceAccountName), each generating a unique default name by appending the component suffix to the release fullname.Namespace-Scoped Watching
The
operator.watchNamespacesvalue has been changed from a comma-delimited string to a YAML list. When namespaces are specified, the chart:-watch-namespacesflag to the operator binaryWhen
watchNamespacesis empty (the default), the chart creates a ClusterRole and ClusterRoleBinding as before, and the operator watches all namespaces.Example
Files Changed
values.yamlserviceAccountblocks for all components; changedwatchNamespacesto a list_helpers.tploperator.serviceAccountName,gateway.serviceAccountName,runtime.serviceAccountName,nats.serviceAccountNametemplatestemplates/operator/deployment.yamloperator.serviceAccountName; joinswatchNamespaceslist withjoin ","templates/operator/clusterrole.yamlwatchNamespacesis emptytemplates/operator/clusterrolebinding.yamloperator.serviceAccountName; only generated whenwatchNamespacesis emptytemplates/operator/clusterrolebinding-metrics.yamloperator.serviceAccountNametemplates/operator/serviceaccount.yamloperator.serviceAccountNametemplates/operator/role-watchnamespace.yamltemplates/operator/rolebinding-watchnamespace.yamltemplates/gateway/*gateway.serviceAccountNametemplates/runtime/*runtime.serviceAccountNametemplates/nats/*nats.serviceAccountNameruntime-operator/cmd/main.go-watch-namespacesflag withcache.Options.DefaultNamespacesValidation
Tested with local kind cluster, as well as doing a diff of the template outpur of the previous helm chart (RC7) with this version.