Skip to content

[Feat] Add rolloutOnCredentialUpdate field to chart#114

Merged
anirudhprasad-sap merged 2 commits into
mainfrom
secretRollout
Jul 2, 2026
Merged

[Feat] Add rolloutOnCredentialUpdate field to chart#114
anirudhprasad-sap merged 2 commits into
mainfrom
secretRollout

Conversation

@anirudhprasad-sap

@anirudhprasad-sap anirudhprasad-sap commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Add rolloutOnCredentialUpdate Field to Chart

New Features

✨ Introduces a new optional boolean field rolloutOnCredentialUpdate to the app configuration in the Helm chart. When enabled, this field is conditionally rendered in the CAPApplication resource spec, allowing users to control rollout behavior on credential updates.

Changes

  • hack/schema-generation.go: Added RolloutOnCredentialUpdate bool field to the app struct to support schema generation for the new configuration option.
  • files/chart/values.schema.json & files/configurableTemplatesChart/values.schema.json: Added rolloutOnCredentialUpdate as an optional boolean property in the app schema definition.
  • lib/util.js: Updated the Helm template generation logic to conditionally include rolloutOnCredentialUpdate in the generated YAML when the value is set.
  • test/files/expectedChart/templates/cap-operator-cros*.yaml & test/files/expectedConfigurableTemplatesChart/templates/cap-operator-cros*.yaml: Updated all expected output YAML templates to include the conditional rolloutOnCredentialUpdate block.
  • hack/go.mod & hack/go.sum: Bumped several dependency versions including go (1.26.3 → 1.26.4), sap-btp-service-operator (v0.11.1 → v0.11.6), cap-operator (v0.30.0 → v0.32.0), and various go-openapi/swag, prometheus, and k8s.io packages.
  • 🔄 Regenerate and Update Summary
PR Bot Information

Version: 1.26.13

  • Event Trigger: issue_comment.edited
  • Correlation ID: ``

- Updated the app struct in schema-generation.go to include a new boolean field `RolloutOnCredentialUpdate`.
- Modified the Helm templates to conditionally include the `rolloutOnCredentialUpdate` field in the generated YAML files based on the new configuration.
- Ensured that the new field is reflected in all relevant expected output files for consistency.

@hyperspace-insights hyperspace-insights 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.

The PR adds a rolloutOnCredentialUpdate boolean field across Helm chart schemas, Go struct, template generation, and test fixtures. The core logic issue is that the Helm conditional {{- if .Values.app.rolloutOnCredentialUpdate }} will never render rolloutOnCredentialUpdate: false (an explicit opt-out) since false is falsy in Go templates — this affects lib/util.js and all generated test fixture YAML files consistently. Additionally, a go.sum entry for klauspost/compress v1.18.6 appears without a corresponding go.mod bump, which should be cleaned up with go mod tidy.

PR Bot Information

Version: 1.26.13

  • LLM: anthropic--claude-4.6-sonnet
  • File Content Strategy: Full file content
  • Event Trigger: pull_request.opened
  • Correlation ID: ``

Comment thread lib/util.js
Comment thread test/files/expectedChart/templates/cap-operator-cros.yaml
Comment thread hack/go.sum

@Pavan-SAP Pavan-SAP 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.

@anirudhprasad-sap anirudhprasad-sap merged commit 68cdabf into main Jul 2, 2026
6 of 7 checks passed
@anirudhprasad-sap anirudhprasad-sap deleted the secretRollout branch July 2, 2026 13:14
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.

2 participants