Skip to content

[APIP] Update helm-chart - #3060

Open
DDH13 wants to merge 5 commits into
wso2:mainfrom
DDH13:main.helm-1.2.0-rc
Open

[APIP] Update helm-chart#3060
DDH13 wants to merge 5 commits into
wso2:mainfrom
DDH13:main.helm-1.2.0-rc

Conversation

@DDH13

@DDH13 DDH13 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #2132

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e6e7dab0-46d3-43f9-a949-fb580a8aaac4

📥 Commits

Reviewing files that changed from the base of the PR and between 8684f8e and 24d9175.

📒 Files selected for processing (5)
  • kubernetes/conformance/README.md
  • kubernetes/helm/gateway-helm-chart/Chart.yaml
  • kubernetes/helm/gateway-helm-chart/templates/gateway/gateway-config.yaml
  • kubernetes/helm/gateway-helm-chart/values.yaml
  • kubernetes/helm/operator-helm-chart/values.yaml
💤 Files with no reviewable changes (1)
  • kubernetes/helm/gateway-helm-chart/values.yaml
🚧 Files skipped from review as they are similar to previous changes (4)
  • kubernetes/conformance/README.md
  • kubernetes/helm/gateway-helm-chart/Chart.yaml
  • kubernetes/helm/operator-helm-chart/values.yaml
  • kubernetes/helm/gateway-helm-chart/templates/gateway/gateway-config.yaml

📝 Walkthrough

Walkthrough

The PR normalizes policy configuration TOML generated by the gateway Helm chart. It updates chart and gateway image versions across Kubernetes configuration and conformance documentation. It also removes commented configuration documentation from the gateway chart values file.

Changes

Gateway Helm and release configuration

Layer / File(s) Summary
Policy TOML rendering
kubernetes/helm/gateway-helm-chart/templates/gateway/gateway-config.yaml
The template removes the policy_configurations wrapper, flattens nested table headers, normalizes integer-valued decimals, and applies consistent indentation.
Chart and image version alignment
kubernetes/conformance/README.md, kubernetes/helm/gateway-helm-chart/Chart.yaml, kubernetes/helm/operator-helm-chart/values.yaml
The chart and gateway image references use updated release versions.
Values documentation cleanup
kubernetes/helm/gateway-helm-chart/values.yaml
Commented documentation for analytics, collector pipelines, traffic logging, and OpenTelemetry tracing was removed.

Estimated code review effort: 2 (Simple) | ~15 minutes

Possibly related PRs

Suggested reviewers: induwara04, krishanx92, piumal1999

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description only links issue #2132 and omits the required purpose, goals, approach, testing, security, documentation, and environment details. Complete the required template sections, including the issue purpose, implementation approach, test results, security checks, documentation impact, and test environment.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title identifies a Helm chart update, which matches the release version and configuration rendering changes.
Linked Issues check ✅ Passed The Helm template changes address issue #2132 by normalizing TOML output and preserving nested policy configuration structures.
Out of Scope Changes check ✅ Passed The version updates, README changes, template fix, and values cleanup support the Helm chart release update and linked configuration issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@kubernetes/helm/gateway-helm-chart/templates/gateway/gateway-config.yaml`:
- Around line 468-469: Update the policy configuration TOML rendering around
$policyConfigToml so the [policy_configurations] wrapper is removed only when
the serialized map contains no direct scalar or array assignments; preserve it
for direct policy values while still supporting nested JWT/JWKS structures. Add
Helm render coverage for direct scalar and array entries and the nested JWT/JWKS
structure.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f589da90-6c83-4737-80b2-088db183324d

📥 Commits

Reviewing files that changed from the base of the PR and between 4861406 and 8684f8e.

📒 Files selected for processing (5)
  • kubernetes/conformance/README.md
  • kubernetes/helm/gateway-helm-chart/Chart.yaml
  • kubernetes/helm/gateway-helm-chart/templates/gateway/gateway-config.yaml
  • kubernetes/helm/gateway-helm-chart/values.yaml
  • kubernetes/helm/operator-helm-chart/values.yaml
💤 Files with no reviewable changes (1)
  • kubernetes/helm/gateway-helm-chart/values.yaml

Comment on lines +468 to +469
{{- $policyConfigToml := dict "policy_configurations" .Values.gateway.config.policy_configurations | toToml }}
{{- $policyConfigToml = regexReplaceAll "(?m)^\\[policy_configurations\\]\r?\n" $policyConfigToml "" }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Preserve the wrapper for direct policy configuration values.

Line 469 removes [policy_configurations] for every serialized map. For the direct entry shown in gateway/gateway-runtime/policy-engine/internal/config/config_test.go:1616-1649, custom_key = "custom_value" becomes a root-level assignment. The runtime mapping in gateway/gateway-runtime/policy-engine/internal/config/config.go:58 will not load that value into PolicyConfigurations.

Remove the wrapper only when it has no direct assignments. Add a Helm render test for direct scalar and array entries, plus the nested JWT/JWKS structure.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kubernetes/helm/gateway-helm-chart/templates/gateway/gateway-config.yaml`
around lines 468 - 469, Update the policy configuration TOML rendering around
$policyConfigToml so the [policy_configurations] wrapper is removed only when
the serialized map contains no direct scalar or array assignments; preserve it
for direct policy values while still supporting nested JWT/JWKS structures. Add
Helm render coverage for direct scalar and array entries and the nested JWT/JWKS
structure.

@DDH13
DDH13 force-pushed the main.helm-1.2.0-rc branch from 8684f8e to 24d9175 Compare August 2, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task]: config.toml generation produces improperly formatted output

1 participant