For the complete documentation index, see llms.txt.
Skip to main content

Kubernetes APIs and Controllers Overview

The reshapr-controllers repository provides a Kubernetes operator, ten namespaced custom resources, and an admission webhook for proxy sidecar injection. The 0.0.5 documentation index and generated CRDs are the canonical references for this baseline.

Operator model​

The operator reconciles Kubernetes resources against a reachable reShapr control plane. Resources use the reshapr.io/v1alpha1 API and identify their target through reshapr.io/instance and reshapr.io/organization annotations. Reconciliation progress and control-plane identifiers are reported in each resource's status.

The operator ServiceAccount must be registered as a trusted control-plane client. See the canonical instance connection flow and operator installation.

Custom resources​

KindRole and dependenciesDeletion behaviorCanonical reference
ServiceImports the primary OpenAPI, GraphQL, or Protobuf artifactRemote Service cleanup is enabled by default; keepOnDelete can retain itService CR
GatewayGroupDeclares the labels used to select GatewaysRemote Gateway Group cleanup is enabled by default; keepOnDelete can retain itGatewayGroup CR
ConfigurationPlanBinds an existing Service to a backend endpoint, operation and artifact selection, cache settings, request-header policy, and security configurationThe reconciler cleans up its remote Configuration PlanConfigurationPlan CR
ExpositionExposes a Service through a ready Configuration Plan and Gateway GroupRemote Exposition cleanup is enabled by default; keepOnDelete can retain itExposition CR
SecretSourceDeclares control-plane Secrets, optionally sourced from Kubernetes SecretsRemote Secret cleanup is enabled by default; keepOnDelete can retain itSecretSource CR
CustomToolsAttaches declarative or scripted tools to an existing ServiceDeletes the attached artifact unless keepOnDelete is setCustomTools CR
ResourcesDeclares MCP resources and resource templates for an existing ServiceDeletes the attached artifact unless keepOnDelete is setResources CR
PromptsAttaches MCP Prompts to an existing ServiceDeletes the attached artifact unless keepOnDelete is setPrompts CR
SkillsAttaches remotely hosted Agent Skills to an existing ServiceDeletes the attached artifact unless keepOnDelete is setSkills CR
ToolsOutputFiltersAttaches Tool output transformations to an existing ServiceDeletes the attached artifact unless keepOnDelete is setToolsOutputFilters CR

The five artifact CRs report status.state and do not expose observedGeneration. Chart 0.0.18 packages all ten CRDs, including Skills. Apply all ten explicitly when upgrading an existing installation.

Controllers 0.0.5 update the remote Configuration Plan in place on spec changes. They reconcile spec.toolExposureMode (TOOLS, CODE, or HYBRID), spec.backendTimeout in milliseconds, and spec.backendSecretRef, the name of an existing reShapr Secret. backendSecretRef is mutually exclusive with the oauth2 configuration. See the ConfigurationPlan CR reference.

Configuration Plans expose spec.headerPolicy.request and spec.headerPolicy.response with allow, deny, and rename rules. The operator forwards both to the control plane, but runtime 1.2.0 enforces only request rules.

Admission controller​

The mutating admission webhook injects a reShapr proxy sidecar into Pods annotated with io.reshapr/inject: "true". For workloads owned by a Deployment, its controller can also create the headless clustering Service and the MCP Service used to reach injected proxies.

The webhook is fail-open by default through failurePolicy: Ignore. Its serving endpoint requires TLS; the controllers chart supports cert-manager, OpenShift service certificates, or an existing certificate. See the canonical admission controller and installation guide.

Limits​

  • CustomTools, Resources, and Prompts deletion can leave their remote artifacts in the target Service.
  • Controllers 0.0.4 upload CustomTools, Resources, and Prompts artifacts as artifact.json; reconciling multiple artifact CRs for one Service can replace the previously attached artifact. Use one artifact CR per Service or manage additional artifacts through another supported interface.
  • Reading Kubernetes Secrets for SecretSource requires the operator's separate Secret-reader RBAC.
  • The admission controller creates supporting Services only for injected Pods owned by a Deployment.
  • Controller-specific metrics and traces are not currently documented as a supported observability surface; rely on component logs unless the owner documentation states otherwise.

Next step​

Agent View