feat: OpenShell Deployment Operator for gateway installation and upgrades
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- helm, kubernetes, rust
- Domaine
- infrastructure
Piste de recherche
Start with parent issue #1719 and the existing Helm charts, especially their gateway installation, upgrade, and retention behavior described in the investigation. The initial profile, upgrade policy, supported platforms, ownership boundaries, and deletion contract remain undecided, so this issue needs design agreement before implementation. Done means an agreed operator scope and specification covering the acceptance criteria; implementation is explicitly deferred to a later RFC.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
User Story
I run OpenShell gateways on Kubernetes to host sandboxed agent workloads. I need a ready-to-use installation path that deploys the gateway and manages supported upgrades, reporting whether an installation or upgrade is progressing, complete, or blocked.
Problem Statement
OpenShell provides Helm charts for Kubernetes deployment, but no installation-level Kubernetes resource that combines gateway configuration, installation health, and supported lifecycle management.
Parent issue: #1719, which lists the OpenShell Deployment Operator as one of its two directions
Impact / Why This Matters
Helm already installs and upgrades OpenShell. The gap is a packaged OpenShell-aware lifecycle: managed upgrades, installation-level progress and failure status, and documented behavior for configuration changes and preservation of gateway data and keys
Proposed Design
Introduce an OpenShell Deployment Operator with a namespaced OpenShellGateway resource representing one gateway installation. This follows the deployment-operator direction in #1719 and the working group's decision to start with installation management.
The admin would:
- Install the operator and documented prerequisites.
- Apply an OpenShellGateway, directly or through GitOps, with the required gateway configuration.
- Observe installation readiness or actionable blockers through its status.
- Connect using the existing OpenShell CLI, SDK, or API.
- Update configuration and manage supported upgrades through a documented workflow, with progress and failures reflected in status.
For example (this is not the entire proposed spec):
apiVersion: openshell.ai/v1alpha1
kind: OpenShellGateway
metadata:
name: team-gateway
namespace: openshell
spec:
server:
externalDbSecret: gateway-database
disableTls: false
tls:
enableMtls: false
oidc:
issuer: https://identity.example.com/realms/platform
audience: openshell-cli
gatewayConfig:
openshell.drivers.kubernetes:
supervisor_topology: gateway
supervisor:
replicas: 2
The operator would reconcile installation-owned resources without taking over external dependencies. The proposed deletion behavior retains gateway data and recovery-critical keys and does not delete sandboxes, although removing the gateway can interrupt access to them.
Whether OpenShell upgrades follow operator releases or use per-resource version selection remains open. The initial supported profiles, dependency ownership, upgrade disruption, target platforms, and packaging also require agreement. Internal implementation choices belong in subsequent design.
Sandbox, template, policy, provider, and agent CRDs are outside this proposal. Helm remains a supported path. After issue acceptance, I can open rfc that describes the spec in detail.
Acceptance Criteria
- An administrator can create an OpenShellGateway for the documented initial profile and connect through existing OpenShell clients.
- Missing prerequisites, invalid references, and unsupported configuration combinations produce actionable errors or status before an incompatible rollout.
- Status reports the observed generation, installed version, and installation/upgrade progress or failure, without individual sandbox phases.
- Supported configuration changes and upgrades converge with documented disruption expectations; drift correction does not take over external resources.
- Reconciliation and supported upgrades preserve gateway data and recovery-critical keys. Raw credentials are absent from CR specs, status, events, and logs.
- Deletion follows the documented retention contract without deleting external resources or sandboxes.
- Installation, upgrade, failure, and deletion workflows are documented and validated on each supported platform.
Alternatives Considered
- Helm with or without GitOps: already supports installation, upgrades, and drift reconciliation when configured. It remains appropriate where sufficient; this proposal adds an OpenShell-specific lifecycle and status contract.
- Combined installation and sandbox operator: expands lifecycle responsibilities beyond the agreed starting scope; sandbox management is deferred.
Agent Investigation
- Dependencies: Agent Sandbox is externally installed. Preflight checks Helm API capabilities for agents.x-k8s.io/v1beta1 or v1alpha1; it does not establish controller health.
- Authentication: chart OIDC issuer/audience settings map to Rust OidcConfig. Transport TLS and mTLS client-certificate verification are separate; the example selects OIDC without disabling transport TLS.
- Shared supervisors: the runtime accepts gateway topology and rejects workspace as unimplemented. Pool replicas come from supervisor.replicas unless autoscaling owns the count. Startup requires gateway TLS and JWT signing material; chart-generated configuration supplies the supervisor Service and token-Secret references.
- Topology changes: the driver uses recorded placement for existing generations rather than automatically migrating them. Removing shared-supervisor configuration can make shared generations unavailable; a supported transition procedure remains design work.
- Bootstrap and retention: the chart uses pre-install/pre-upgrade certificate/JWT hooks. With default encrypted credential storage and no supplied key Secret, it reuses the existing key via lookup and marks the generated Secret helm.sh/resource-policy: keep. This does not prove future operator deletion or recovery behavior.
- Workspace ownership: workspaceResources.enabled=false and the workspace chart separate namespace prerequisites from the gateway. The workspace chart explicitly labels the shared-gateway, multi-namespace path experimental.
Checklist
- I've reviewed existing issues and the published docs
- This is a design proposal, not a "please build this" request
- Langage dominant
- Rust
- Étoiles
- 21.5k
- Forks
- 2.1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de NVIDIA/OpenShell
-
state:triage-needed
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
-
state:triage-needed
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failurePeut-être pris @TaylorMutch l’a pris il y a 9 jours. Ouvertestate:accepted state:pr-opened
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
state:triage-needed
Difficulté 1/5 1-3 heures Accessibilité débutants 78/100
-
state:triage-needed
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Toutes les issues de NVIDIA/OpenShell
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 2 jours
-
autofixer: follow-up
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
tursodatabase/turso#12531 ·
Les mainteneurs répondent en général sous 1 jour
-
bug help wanted ui
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
userFRM/egui-charts#4292 ·
Les mainteneurs répondent en général sous 1 jour
-
CHANGELOG.md out of dateOuverteIssue-Bug Need-Review
Difficulté 1/5 1-3 heures Accessibilité débutants 85/100
PowerShell/DSC#1832 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour