Skip to content

Fix operator.env default type from map to list#4611

Open
ChrisJBurns wants to merge 2 commits intomainfrom
fix-operator-env-default-type
Open

Fix operator.env default type from map to list#4611
ChrisJBurns wants to merge 2 commits intomainfrom
fix-operator-env-default-type

Conversation

@ChrisJBurns
Copy link
Copy Markdown
Collaborator

Summary

The deployment template and CI tests expect operator.env to be a list of {name, value} objects, but values.yaml and values-openshift.yaml defaulted it to an empty map ({}). A user following the values.yaml contract might provide a map and get broken pod env configuration. Changed both files to default to an empty list ([]).

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Test plan

  • Verified helm template renders correctly with the new default
  • Confirmed the deployment template iterates over operator.env as a list

Generated with Claude Code

JAORMX
JAORMX previously approved these changes Apr 7, 2026
@github-actions github-actions bot added the size/XS Extra small PR: < 100 lines changed label Apr 7, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.84%. Comparing base (f8b6051) to head (8832f21).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4611      +/-   ##
==========================================
- Coverage   68.89%   68.84%   -0.06%     
==========================================
  Files         505      505              
  Lines       52425    52425              
==========================================
- Hits        36118    36090      -28     
- Misses      13514    13545      +31     
+ Partials     2793     2790       -3     

☔ View full report in Codecov by Sentry.
📢 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.

@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Apr 7, 2026
ChrisJBurns and others added 2 commits April 7, 2026 15:32
The deployment template and CI tests expect operator.env to be a list of
{name, value} objects, but values.yaml and values-openshift.yaml defaulted
it to an empty map ({}). This could produce invalid pod env configuration
if a user followed the values.yaml contract. Change to an empty list ([]).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ChrisJBurns ChrisJBurns force-pushed the fix-operator-env-default-type branch from 1eeec92 to 8832f21 Compare April 7, 2026 14:33
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants