Skip to content

feat(component): support managed config overrides for InstanceTemplates - #11133

Open
leon-ape wants to merge 109 commits into
mainfrom
feature/instance-template-config-component
Open

leon-ape wants to merge 109 commits into
mainfrom
feature/instance-template-config-component

Conversation

@leon-ape

@leon-ape leon-ape commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Use spec.componentSpecs[].instances[].configs to override a managed config for the Pods of a named InstanceTemplate. You can set template variables or select a source ConfigMap in the Component's namespace. Each InstanceTemplate inherits the Component's configs by default. Variables resolved solely from that Component use the InstanceTemplate's effective resources, storage requests, and service version.

spec:
  componentSpecs:
    - name: database
      replicas: 3
      instances:
        - name: canary
          replicas: 1
          configs:
            - name: log-conf
              variables:
                LOG_LEVEL: debug

Pods in the InstanceTemplate share the Component's ConfigMap when the rendered files match the defaults. When the files differ, only Pods in that InstanceTemplate mount the specialized ConfigMap. Updates follow the Component's reload or restart settings.

Stop keeps the config overrides for allocated instances. Removing an override restores the Component default. The Component collects its retired ConfigMaps after local workloads release their references.

Multi-cluster ConfigMap distribution and data-plane cleanup are tracked in #11148 and #11147.

Closes #11127

…instance-template-config-instance-pod

# Conflicts:
#	pkg/controller/instanceset/in_place_update_util.go
#	pkg/controller/instanceset/instance_util.go
#	pkg/controller/instanceset/reconciler_update.go
#	pkg/controller/instancetemplate/configs.go
@leon-ape
leon-ape requested a review from a team as a code owner November 19, 2026 02:32
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.20413% with 65 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.40%. Comparing base (b55c155) to head (81e098d).

Files with missing lines Patch % Lines
...s/apps/component/transformer_component_template.go 78.69% 44 Missing and 18 partials ⚠️
pkg/controller/component/synthesize_component.go 94.73% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11133      +/-   ##
==========================================
+ Coverage   67.34%   67.40%   +0.06%     
==========================================
  Files         518      518              
  Lines       67220    67473     +253     
==========================================
+ Hits        45266    45483     +217     
- Misses      18165    18187      +22     
- Partials     3789     3803      +14     
Flag Coverage Δ
unittests 67.40% <83.20%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@leon-ape leon-ape added the nopick Not auto cherry-pick when PR merged label Nov 20, 2026
@leon-ape leon-ape changed the title feat(component): render InstanceTemplate configurations feat(component): support managed configuration overrides on InstanceTemplates Nov 20, 2026
@leon-ape
leon-ape changed the base branch from support/instance-template-config-component-base to feature/instance-template-config-vars November 23, 2026 08:56
@leon-ape leon-ape changed the title feat(component): support managed configuration overrides on InstanceTemplates feat(component): support managed config overrides for InstanceTemplates Nov 24, 2026
Base automatically changed from feature/instance-template-config-vars to main November 24, 2026 02:26
@github-actions github-actions Bot added the size/XXL Denotes a PR that changes 1000+ lines. label Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nopick Not auto cherry-pick when PR merged size/XXL Denotes a PR that changes 1000+ lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Features] Support per-Pod configuration and parameter updates within a Component

1 participant