Skip to content

feat(operations): support removing and resetting parameters - #11168

Merged
leon-ape merged 9 commits into
mainfrom
feature/ops-parameter-reset
Nov 30, 2026
Merged

leon-ape merged 9 commits into
mainfrom
feature/ops-parameter-reset

Conversation

@leon-ape

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

Copy link
Copy Markdown
Collaborator

Summary

  • Reset a parameter in a Reconfiguring request by supplying a null value or omitting the value. This restores the parameter's initial setting, or its template default when there is no initial setting.
  • Remove a key from the configuration file with {type: Remove, key: <parameter>} in reconfigures[].updates. This field uses the same Set and Remove operations as ComponentParameter. The last explicit update for a parameter takes precedence over its entry in parameters.
  • Document how to restore a parameter's default in ComponentParameter and how explicit updates take precedence over assignments.

On main, requests that previously used a null value to delete a key should use updates: [{type: Remove, key: <parameter>}].

Fixes #11169.

Validation

  • Submit OpsRequests through the Ops controller and check the rendered ConfigMap. Cover Set including an empty string, removal, reset to Initial and template values, and mixed operations with repeated updates for the same key.
  • Verify that Ops waits for configuration reload before succeeding. Repeat a reset on a parameter already at its default and check that an invalid Set leaves the configuration unchanged.
  • Check array resets and re-run the ParameterView and Ops array regression with explicit Remove.

@leon-ape leon-ape added the nopick Not auto cherry-pick when PR merged label Nov 27, 2026
@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/L Denotes a PR that changes 100-499 lines. label Nov 27, 2026
@leon-ape leon-ape changed the title feat(operations): distinguish parameter resets from removals feat(operations): support removing and resetting parameters Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 58.73016% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.39%. Comparing base (c222e86) to head (75e851d).

Files with missing lines Patch % Lines
pkg/operations/reconfigure.go 68.51% 11 Missing and 6 partials ⚠️
pkg/parameters/parameter_utils.go 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11168      +/-   ##
==========================================
+ Coverage   67.36%   67.39%   +0.02%     
==========================================
  Files         518      518              
  Lines       67169    67220      +51     
==========================================
+ Hits        45251    45304      +53     
+ Misses      18137    18135       -2     
  Partials     3781     3781              
Flag Coverage Δ
unittests 67.39% <58.73%> (+0.02%) ⬆️

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

Copy link
Copy Markdown
Collaborator Author

/approve

@apecloud-bot apecloud-bot added the approved PR Approved Test label Nov 30, 2026
@leon-ape
leon-ape merged commit b55c155 into main Nov 30, 2026
37 checks passed
@leon-ape
leon-ape deleted the feature/ops-parameter-reset branch November 30, 2026 04:48
@github-actions github-actions Bot added this to the Release 1.2.0 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved PR Approved Test nopick Not auto cherry-pick when PR merged size/L Denotes a PR that changes 100-499 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support resetting parameter overrides through Reconfiguring

2 participants