Skip to content

SSCSI-245: Rename rotationPollIntervalSeconds to minimumRefreshAge - #2906

Merged
openshift-merge-bot[bot] merged 2 commits into
openshift:masterfrom
chiragkyal:secret-rotation-rename
Jul 7, 2026
Merged

SSCSI-245: Rename rotationPollIntervalSeconds to minimumRefreshAge#2906
openshift-merge-bot[bot] merged 2 commits into
openshift:masterfrom
chiragkyal:secret-rotation-rename

Conversation

@chiragkyal

@chiragkyalchiragkyal commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

Renames CustomSecretRotation.rotationPollIntervalSeconds to
CustomSecretRotation.minimumRefreshAge.

The driver only contacts the secret provider when the cached value is older than this threshold. The new
name makes that intent clear at the API level.

No behaviour change; only the API field name and JSON key are updated.

Signed-off-by: chiragkyal <ckyal@redhat.com>
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci

Copy link
Copy Markdown
Contributor

Hello @chiragkyal! Some important instructions when contributing to openshift/api:
API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.

@coderabbitai

coderabbitaiBot commented Jun 26, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: e8ff0559-a20e-47f1-bd4c-7329815b5e3c

📥 Commits

Reviewing files that changed from the base of the PR and between 590bc63 and 9d23c8b.

📒 Files selected for processing (1)
  • operator/v1/types_csi_cluster_driver.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • operator/v1/types_csi_cluster_driver.go

📝 Walkthrough

Walkthrough

The PR renames secretsStore.secretRotation.custom.rotationPollIntervalSeconds to minimumRefreshAge in the CustomSecretRotation API type, generated ClusterCSIDriver CRD manifests, and operator test YAML. It updates the field documentation, keeps the old JSON key as a tombstone in the Go type, and adjusts the related validation test names, values, and expected error paths.

Possibly related PRs:#2846

Suggested reviewers: mytreya-rh, everettraven

Changes

The API type now exposes minimumRefreshAge instead of rotationPollIntervalSeconds. All generated ClusterCSIDriver CRD variants reflect the new field name and updated timing description. Operator test fixtures and validation cases were updated to use the new field and matching error paths.

Sequence Diagram(s)

sequenceDiagram
participant CustomSecretRotation
participant CRDManifests
participant OperatorTests
CustomSecretRotation->>CRDManifests: minimumRefreshAge field name and description
CRDManifests->>OperatorTests: updated schema and validation paths
Loading
🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check nameStatusExplanation
Title check✅ PassedThe title clearly and concisely summarizes the main change: renaming the rotation field to minimumRefreshAge.
Description check✅ PassedThe description is directly related to the changeset and accurately describes the API field rename and its intent.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names✅ PassedChanged Ginkgo titles are static and deterministic; no timestamps, UUIDs, node/pod/namespace names, or other run-specific values were added.
Test Structure And Quality✅ PassedOnly declarative YAML/schema manifests changed; no Ginkgo spec code, waits, setup/cleanup, or assertion patterns were modified.
Microshift Test Compatibility✅ PassedNo new Ginkgo e2e tests were added; the diff is schema/type YAML only and doesn’t introduce unsupported MicroShift APIs or features.
Single Node Openshift (Sno) Test Compatibility✅ PassedNo Ginkgo e2e tests were added; changes are API schema/CRD and YAML validation updates only, so SNO compatibility check is not applicable.
Topology-Aware Scheduling Compatibility✅ PassedOnly an API field rename and CRD/test schema updates were changed; no deployment/controller/scheduling logic or topology assumptions were introduced.
Ote Binary Stdout Contract✅ PassedTouched files are API/CRD/test YAML only; no main/init/TestMain/BeforeSuite stdout writes were introduced.
Ipv6 And Disconnected Network Test Compatibility✅ PassedOnly an API type rename/tombstone changed; no new Ginkgo e2e tests, IPv4 assumptions, or external connectivity were added.
No-Weak-Crypto✅ PassedChanges only rename the secret-rotation field; scans found no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB or secret-comparison crypto usage.
Container-Privileges✅ PassedPR only renames the secret-rotation field in API/CRD/test YAML; no container/K8s manifest changes or privileged settings were introduced.
No-Sensitive-Data-In-Logs✅ PassedTouched files only rename schema fields and update tests/CRDs; no logging calls or sensitive-data output were added.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.12.2)

Error: build linters: unable to load custom analyzer "kubeapilinter": tools/_output/bin/kube-api-linter.so, plugin: not implemented
The command is terminated due to an error: build linters: unable to load custom analyzer "kubeapilinter": tools/_output/bin/kube-api-linter.so, plugin: not implemented


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

@openshift-ciopenshift-ciBot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 26, 2026
@chiragkyalchiragkyal changed the title Rename rotationPollIntervalSeconds to minimumRefreshAgeSSCSI-245: Rename rotationPollIntervalSeconds to minimumRefreshAgeJun 26, 2026
@openshift-ci-robotopenshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 26, 2026
@openshift-ci-robot

openshift-ci-robot commented Jun 26, 2026

Copy link
Copy Markdown

@chiragkyal: This pull request references SSCSI-245 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

Renames CustomSecretRotation.rotationPollIntervalSeconds to
CustomSecretRotation.minimumRefreshAge.

The driver only contacts the secret provider when the cached value is older than this threshold. The new
name makes that intent clear at the API level.

No behaviour change; only the API field name and JSON key are updated.

See openshift/enhancements#2012 (comment) for the decision.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@chiragkyal

Copy link
Copy Markdown
MemberAuthor

/cc @mytreya-rh

@openshift-ci
openshift-ciBot requested a review from mytreya-rhJune 26, 2026 13:16
Comment threadoperator/v1/types_csi_cluster_driver.go
Signed-off-by: chiragkyal <ckyal@redhat.com>
@chiragkyal
chiragkyalforce-pushed the secret-rotation-rename branch from 590bc63 to 9d23c8bCompareJuly 2, 2026 06:18
@mytreya-rh

Copy link
Copy Markdown

/lgtm

@openshift-ciopenshift-ciBot added the lgtm Indicates that a PR is ready to be merged. label Jul 2, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aws-ovn
/test e2e-aws-ovn-hypershift
/test e2e-aws-ovn-hypershift-conformance
/test e2e-aws-ovn-techpreview
/test e2e-aws-serial-1of2
/test e2e-aws-serial-2of2
/test e2e-aws-serial-techpreview-1of2
/test e2e-aws-serial-techpreview-2of2
/test e2e-azure
/test e2e-gcp
/test e2e-upgrade
/test e2e-upgrade-out-of-change
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-techpreview
/test minor-e2e-upgrade-minor

@chiragkyal

Copy link
Copy Markdown
MemberAuthor

/retest

@everettraveneverettraven 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.

/lgtm

@openshift-ci

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: everettraven, mytreya-rh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ciopenshift-ciBot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 6, 2026
@everettraven

Copy link
Copy Markdown
Contributor

Low-risk field name change since the change to this API has not shipped, despite being a stable API. Tombstoning has been done properly.

/override ci/prow/verify-crd-schema
/override ci/prow/verify-crdify

@openshift-ci

Copy link
Copy Markdown
Contributor

@everettraven: Overrode contexts on behalf of everettraven: ci/prow/verify-crd-schema, ci/prow/verify-crdify

Details

In response to this:

Low-risk field name change since the change to this API has not shipped, despite being a stable API. Tombstoning has been done properly.

/override ci/prow/verify-crd-schema
/override ci/prow/verify-crdify

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@chiragkyal

Copy link
Copy Markdown
MemberAuthor

/retest

@chiragkyal

Copy link
Copy Markdown
MemberAuthor

/verified by ci

@openshift-ci-robotopenshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Jul 7, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@chiragkyal: This PR has been marked as verified by ci.

Details

In response to this:

/verified by ci

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci

Copy link
Copy Markdown
Contributor

@chiragkyal: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot
openshift-merge-botBot merged commit caa4517 into openshift:masterJul 7, 2026
31 checks passed
@chiragkyal
chiragkyal deleted the secret-rotation-rename branch July 7, 2026 13:57
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by an approver from all required OWNERS files.jira/valid-referenceIndicates that this PR references a valid Jira ticket of any type.lgtmIndicates that a PR is ready to be merged.size/LDenotes a PR that changes 100-499 lines, ignoring generated files.verifiedSignifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@chiragkyal@openshift-ci-robot@mytreya-rh@everettraven