Skip to content

feat(apps): support external configs for InstanceTemplates - #11173

Open
leon-ape wants to merge 3 commits into
mainfrom
feature/instance-template-external-config
Open

leon-ape wants to merge 3 commits into
mainfrom
feature/instance-template-external-config

Conversation

@leon-ape

@leon-ape leon-ape commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Related to #11127. The Parameters API is tracked in #11172.

Summary

  • Use the same InstanceTemplate overrides for Component-rendered and external configs. The source determines whether the Component renders the template or mounts a prepared ConfigMap.
  • Apply each scoped config's checksum and update policy through the existing InstanceSet binding. The external producer retains ownership of its ConfigMap.
  • Keep the shared binding while active instances return to the shared mount.

If the shared config disables a declared file-level action, enabling that action for a scoped config can update the Component's existing KBAgent template. The workload applies that change according to its rollout policy.

Validation

Component and workload config tests cover both workload paths, mixed configs, scoped update policies, and withdrawal. The API reference and CRD descriptions were regenerated.

@leon-ape
leon-ape requested a review from a team as a code owner December 4, 2026 08:49
@apecloud-bot

Copy link
Copy Markdown
Collaborator

Auto Cherry-pick Instructions

Usage:
  - /nopick: Not auto cherry-pick when PR merged.
  - /pick: release-x.x [release-x.x]: Auto cherry-pick to the specified branch when PR merged.

Example:
  - /nopick
  - /pick release-1.1

CLA Recheck Instructions

Usage:
  - /recheck-cla: Trigger a re-check of CLA status for this pull request.
Example:
  - /recheck-cla

@github-actions github-actions Bot added the size/XL Denotes a PR that changes 500-999 lines. label Dec 4, 2026
@leon-ape leon-ape added the nopick Not auto cherry-pick when PR merged label Dec 4, 2026
@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.59259% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.53%. Comparing base (499cf66) to head (4f42b7a).

Files with missing lines Patch % Lines
...s/apps/component/transformer_component_template.go 90.90% 3 Missing and 2 partials ⚠️
...apps/component/transformer_component_validation.go 89.28% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11173      +/-   ##
==========================================
+ Coverage   67.44%   67.53%   +0.09%     
==========================================
  Files         518      518              
  Lines       67374    67465      +91     
==========================================
+ Hits        45440    45565     +125     
+ Misses      18147    18114      -33     
+ Partials     3787     3786       -1     
Flag Coverage Δ
unittests 67.53% <92.59%> (+0.09%) ⬆️

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.

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/XL Denotes a PR that changes 500-999 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants