Skip to content

OCPBUGS-60568: Use BoundServceAccountTokenVolume dy default - #2001

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:masterfrom
lance5890:remove_BoundServceAccountTokenVolume
Aug 14, 2026
Merged

OCPBUGS-60568: Use BoundServceAccountTokenVolume dy default#2001
openshift-merge-bot[bot] merged 1 commit into
openshift:masterfrom
lance5890:remove_BoundServceAccountTokenVolume

Conversation

@lance5890

@lance5890 lance5890 commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

kind of post-cleanup of #1100 and openshift/kubernetes#714

Summary by CodeRabbit

  • Chores
    • Updated pod specifications and service account configurations for internal operator components.

@openshift-ci
openshift-ci Bot requested review from p0lyn0mial and tkashem August 20, 2025 00:47
@openshift-ci openshift-ci Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 20, 2025
@openshift-ci

openshift-ci Bot commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

Hi @lance5890. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@lance5890

Copy link
Copy Markdown
Contributor Author

/hold

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 20, 2025
@lance5890

Copy link
Copy Markdown
Contributor Author

need to wait the openshift/cluster-version-operator#1225 to merge first

@openshift-bot

Copy link
Copy Markdown

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci Bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 18, 2025
@tchap

tchap commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

/remove-lifecycle stale

@openshift-ci openshift-ci Bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 26, 2025
@tchap

tchap commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

Blocked by openshift/cluster-version-operator#1264 now.

@tchap

tchap commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

/assign

@lance5890
lance5890 force-pushed the remove_BoundServceAccountTokenVolume branch from 04c2497 to 6d94500 Compare December 3, 2025 01:08
@lance5890

Copy link
Copy Markdown
Contributor Author

/assign

with the openshift/cluster-version-operator#1264 merged, this PR is not blocked now

@lance5890

Copy link
Copy Markdown
Contributor Author

/unhold

@openshift-ci openshift-ci Bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 3, 2025
@tchap

tchap commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

/ok-to-test

@openshift-ci openshift-ci Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 3, 2025
@tchap

tchap commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

/test

@openshift-ci

openshift-ci Bot commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

@tchap: The /test command needs one or more targets.
The following commands are available to trigger required jobs:

/test e2e-aws-encryption
/test e2e-monitoring
/test unit
/test verify
/test verify-deps

Use /test all to run the following jobs that were automatically triggered:

pull-ci-openshift-library-go-master-unit
pull-ci-openshift-library-go-master-verify
pull-ci-openshift-library-go-master-verify-deps
Details

In response to this:

/test

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.

@tchap

tchap commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

We need to test this on a real component, please create a PR for cluster-kube-controller-manager-operator, for example, that uses this particular library-go PR so that we can see on CI that everything works. Thanks!

@tchap

tchap commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

/hold

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 3, 2025
@lance5890

Copy link
Copy Markdown
Contributor Author

We need to test this on a real component, please create a PR for cluster-kube-controller-manager-operator, for example, that uses this particular library-go PR so that we can see on CI that everything works. Thanks!

The cluster-kube-controller-manager-operator tests are all passed!

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Jan 6, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@tchap: This pull request references Jira Issue OCPBUGS-60568, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)
Details

In response to this:

/jira refresh

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-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Jan 6, 2026
@tchap

tchap commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

The testing job looks OK BTW. When you inspect CI and check installer-7-ip-10-0-26-20.us-west-1.compute.internal, it's the first installer pod that uses the dynamic binding when upgrading.

@openshift-bot

Copy link
Copy Markdown

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci Bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 9, 2026
@coderabbitai

coderabbitai Bot commented Apr 9, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 2ff72f31-c985-4fdb-92b9-1c58cc169eda

📥 Commits

Reviewing files that changed from the base of the PR and between ba2b9a3 and f7fd773.

📒 Files selected for processing (2)
  • pkg/operator/staticpod/controller/installer/manifests/installer-pod.yaml
  • pkg/operator/staticpod/controller/prune/manifests/pruner-pod.yaml
💤 Files with no reviewable changes (2)
  • pkg/operator/staticpod/controller/prune/manifests/pruner-pod.yaml
  • pkg/operator/staticpod/controller/installer/manifests/installer-pod.yaml

Walkthrough

Both the installer and pruner pod manifests are updated to use explicit service account references instead of manually mounting projected service account token volumes. The installer pod adds a named service account declaration while both pods remove explicit token injection configuration.

Changes

Service Account Configuration Refactor

Layer / File(s) Summary
Installer pod service account configuration
pkg/operator/staticpod/controller/installer/manifests/installer-pod.yaml
Pod spec now specifies serviceAccountName: installer-sa and removes automountServiceAccountToken: false. The container's kube-api-access projected volume mount and volume definition are removed.
Pruner pod service account configuration
pkg/operator/staticpod/controller/prune/manifests/pruner-pod.yaml
Pod spec removes explicit automountServiceAccountToken setting. The container's kube-api-access projected volume mount and volume definition are removed, leaving other volume mounts unchanged.

🎯 2 (Simple) | ⏱️ ~8 minutes


Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 error, 1 inconclusive)

Check name Status Explanation Resolution
Container-Privileges ❌ Error Both manifests contain privileged: true and runAsUser: 0 without explicit justification comments in the YAML files, violating the check's requirement to flag privileged settings. Add comments in manifests explaining why privileged: true and root access are required, or document the justification in the PR description for system-critical cluster component access.
Title check ❓ Inconclusive The title contains a typo ('BoundServceAccountTokenVolume' and 'dy' instead of 'Default') and is partially related to the changes, which remove explicit service account token volume mounts from pod manifests. Correct the typos: 'BoundServceAccountTokenVolume' should be 'BoundServiceAccountTokenVolume' and 'dy' should be 'by', making the full title read 'OCPBUGS-60568: Use BoundServiceAccountTokenVolume by default'.
✅ Passed checks (13 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PR modifies only Kubernetes manifest files (installer-pod.yaml, pruner-pod.yaml), not Ginkgo tests. Repository contains standard Go tests with no Ginkgo patterns.
Test Structure And Quality ✅ Passed PR contains only Kubernetes manifest file changes; no Ginkgo test code was added or modified, making the test structure check not applicable.
Microshift Test Compatibility ✅ Passed PR contains only Kubernetes manifest file changes (installer-pod.yaml, pruner-pod.yaml), not new Ginkgo e2e tests. Custom check for MicroShift test compatibility is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This PR contains only Kubernetes manifest YAML changes (installer-pod.yaml and pruner-pod.yaml), not any new Ginkgo e2e tests. The SNO compatibility check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed PR changes static pod manifests to enable Kubernetes Bound Service Account Token feature. No new scheduling constraints introduced; topology-agnostic service account token mounting behavior only.
Ote Binary Stdout Contract ✅ Passed PR modifies only Kubernetes manifest YAML files with no code changes; OTE stdout contract check is inapplicable to manifest-only changes.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo e2e tests (It(), Describe(), Context(), When()) were added in this PR. The changes are limited to Kubernetes manifest YAML files for static pod configuration.
No-Weak-Crypto ✅ Passed PR modifies only Kubernetes YAML manifest files for pod specifications; no weak cryptographic algorithms, custom crypto implementations, or non-constant-time secret comparisons are present.
No-Sensitive-Data-In-Logs ✅ Passed PR removes manual service account token volumes from pods and uses Kubernetes' native BoundServiceAccountTokenVolume. No logging exposes passwords, tokens, keys, or sensitive data.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@tchap

tchap commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

/remove-lifecycle stale

@openshift-ci openshift-ci Bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 4, 2026
@tchap

tchap commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@lance5890 Could you rebase the testing PR so that we can move this forward? Thanks.

Signed-off-by: lan.tian <lance5890@163.com>
@lance5890
lance5890 force-pushed the remove_BoundServceAccountTokenVolume branch from 6d94500 to f7fd773 Compare June 5, 2026 00:14
@openshift-ci-robot openshift-ci-robot added jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. and removed jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Jun 5, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@lance5890: This pull request references Jira Issue OCPBUGS-60568, which is invalid:

  • expected the bug to target either version "5.0." or "openshift-5.0.", but it targets "4.22" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

kind of post-cleanup of #1100 and openshift/kubernetes#714

Summary by CodeRabbit

  • Chores
  • Updated pod specifications and service account configurations for internal operator components.

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.

@tchap

tchap commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jun 9, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@tchap: This pull request references Jira Issue OCPBUGS-60568, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.0.0) matches configured target version for branch (5.0.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)
Details

In response to this:

/jira refresh

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.

@tchap

tchap commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 9, 2026
@tchap

tchap commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

All tests are passing on the linked testing PR, so this looks good to me.

@bertinatto bertinatto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/approve

@openshift-ci

openshift-ci Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bertinatto, lance5890, tchap

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-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 14, 2026
@openshift-ci

openshift-ci Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

@lance5890: 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-bot Bot merged commit a0584a6 into openshift:master Aug 14, 2026
5 checks passed
@openshift-ci-robot

Copy link
Copy Markdown

@lance5890: Jira Issue OCPBUGS-60568: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-60568 has been moved to the MODIFIED state.

Details

In response to this:

kind of post-cleanup of #1100 and openshift/kubernetes#714

Summary by CodeRabbit

  • Chores
  • Updated pod specifications and service account configurations for internal operator components.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants