Skip to content

STOR-2997: Auto generate assets for gcp pd csi driver - #585

Open
mpatlasov wants to merge 6 commits into
openshift:mainfrom
mpatlasov:STOR-2997-auto-generate-assets-for-GCP-PD-CSI-driver
Open

STOR-2997: Auto generate assets for gcp pd csi driver#585
mpatlasov wants to merge 6 commits into
openshift:mainfrom
mpatlasov:STOR-2997-auto-generate-assets-for-GCP-PD-CSI-driver

Conversation

@mpatlasov

Copy link
Copy Markdown
Contributor

https://redhat.atlassian.net/browse/STOR-2997

This PR consists of two commits:

  • 1st -- all manual changes (base and patch yamls, generator go files)
  • 2nd -- only automatic update of generated yaml files (no manual changes)

@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-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 27, 2026
@openshift-ci-robot

openshift-ci-robot commented Jul 27, 2026

Copy link
Copy Markdown

@mpatlasov: This pull request references STOR-2997 which is a valid jira issue.

Details

In response to this:

https://redhat.atlassian.net/browse/STOR-2997

This PR consists of two commits:

  • 1st -- all manual changes (base and patch yamls, generator go files)
  • 2nd -- only automatic update of generated yaml files (no manual changes)

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.

@mpatlasov

Copy link
Copy Markdown
Contributor Author

/pipeline required

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-upgrade
/test e2e-azure
/test e2e-azure-csi
/test e2e-azure-file-csi
/test e2e-azure-file-nfs-csi
/test e2e-azure-ovn-upgrade
/test e2e-gcp
/test e2e-gcp-csi
/test e2e-gcp-ovn-upgrade

@coderabbitai

coderabbitai Bot commented Jul 27, 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: f1522e3c-470d-471f-b96e-d7b301124a4d

📥 Commits

Reviewing files that changed from the base of the PR and between 62aa26c and b529a19.

⛔ Files ignored due to path filters (2)
  • assets/overlays/gcp-pd/generated/standalone/manifests.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/node.yaml is excluded by !**/generated/**
📒 Files selected for processing (3)
  • assets/overlays/gcp-pd/patches/node_add_driver.yaml
  • pkg/driver/gcp-pd/gcp_pd.go
  • pkg/operator/prerequisites_test.go
💤 Files with no reviewable changes (1)
  • pkg/driver/gcp-pd/gcp_pd.go
🚧 Files skipped from review as they are similar to previous changes (2)
  • assets/overlays/gcp-pd/patches/node_add_driver.yaml
  • pkg/operator/prerequisites_test.go

📝 Walkthrough

Walkthrough

Adds standalone GCP Persistent Disk CSI asset generation and registers it with the generator. The change introduces controller and node workload manifests, OpenShift host-network RBAC, CSI storage and snapshot resources, node volume patches, metrics ports, and refactored prerequisite loading through injected asset accessors with updated tests.

Suggested reviewers: mandre, rhrmo


Important

Pre-merge checks failed

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

❌ Failed checks (1 error, 2 warnings)

Check name Status Explanation Resolution
Container-Privileges ❌ Error PR introduces flagged privileges: controller and node manifests set hostNetwork: true, and node containers set privileged: true in generated assets. Remove those flags or add a documented justification if host networking/privileged mode is required.
Docstring Coverage ⚠️ Warning Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Topology-Aware Scheduling Compatibility ⚠️ Warning The new gcp-pd node DaemonSet uses a wildcard tolerations: - operator: Exists, so it can land on TNA arbiter nodes; no arbiter exclusion/topology-aware hook is present. Use explicit tolerations only for required taints (e.g. master) and add an arbiter exclusion via node affinity or a topology-aware scheduling hook.
✅ Passed checks (12 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: auto-generating assets for the GCP PD CSI driver.
Description check ✅ Passed The description is directly related to the changeset and summarizes the manual and generated asset updates.
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 Changed test names in pkg/operator/prerequisites_test.go are static tc.name strings; no generated IDs, dates, node/namespace/IP values, or other dynamic titles found.
Test Structure And Quality ✅ Passed No Ginkgo tests were added or changed; the only touched test is a standard table-driven testing.T unit test, so the Ginkgo-specific checklist doesn’t apply.
Microshift Test Compatibility ✅ Passed PR diff has no new Ginkgo e2e tests; only generator code, a unit test, and manifests were changed.
Single Node Openshift (Sno) Test Compatibility ✅ Passed No new Ginkgo e2e tests were added; the PR only changes generated YAML/manifests, so SNO compatibility is not applicable.
Ote Binary Stdout Contract ✅ Passed No process-level stdout writes were introduced; touched entrypoints only use klog, whose vendored default is logtostderr=true (stderr), and no fmt.Print/os.Stdout calls exist.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo e2e tests were added; the only changed test is a unit test (testing.T) with no IPv4-only or external connectivity assumptions.
No-Weak-Crypto ✅ Passed No MD5/SHA1/DES/RC4/3DES/Blowfish/ECB or insecure secret/token comparisons found in the PR files; only KMS-related naming appears.
No-Sensitive-Data-In-Logs ✅ Passed No new log statements in the PR diff expose secrets/PII; the only value-logging in gcp_pd.go predates this PR.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci
openshift-ci Bot requested review from mandre and rhrmo July 27, 2026 07:56
@openshift-ci

openshift-ci Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mpatlasov

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 Jul 27, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🧹 Nitpick comments (1)
assets/overlays/gcp-pd/base/hostnetwork_role.yaml (1)

4-4: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use asset-prefix variables for generated resource names.

These templates hard-code names derived from gcp-pd, preventing consistent parameterized asset generation.

  • assets/overlays/gcp-pd/base/hostnetwork_role.yaml#L4-L4: use ${ASSET_SHORT_PREFIX} for the role name.
  • assets/overlays/gcp-pd/base/controller_hostnetwork_binding.yaml#L4-L11: use ${ASSET_PREFIX}-controller-sa and the parameterized role name.
  • assets/overlays/gcp-pd/base/volumesnapshotclass.yaml#L3-L4: derive the snapshot-class name from ${ASSET_SHORT_PREFIX}.
  • assets/overlays/gcp-pd/base/volumesnapshotclass_images.yaml#L3-L4: derive the snapshot-class name from ${ASSET_SHORT_PREFIX}.

As per coding guidelines, asset templates must use ${ASSET_PREFIX} for full driver names and ${ASSET_SHORT_PREFIX} for short names.

🤖 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 `@assets/overlays/gcp-pd/base/hostnetwork_role.yaml` at line 4, Replace
hard-coded gcp-pd-derived resource names with the appropriate asset-prefix
variables: in assets/overlays/gcp-pd/base/hostnetwork_role.yaml:4 use
${ASSET_SHORT_PREFIX} for the role name; in
assets/overlays/gcp-pd/base/controller_hostnetwork_binding.yaml:4-11 use
${ASSET_PREFIX}-controller-sa and the parameterized role name; and in
assets/overlays/gcp-pd/base/volumesnapshotclass.yaml:3-4 and
assets/overlays/gcp-pd/base/volumesnapshotclass_images.yaml:3-4 derive
snapshot-class names from ${ASSET_SHORT_PREFIX}.

Source: Coding guidelines

🤖 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 `@assets/overlays/gcp-pd/base/storageclass.yaml`:
- Around line 5-7: Ensure exactly one generated StorageClass is marked default:
update assets/overlays/gcp-pd/base/storageclass.yaml lines 5-7 and
assets/overlays/gcp-pd/base/storageclass_hyperdisk_balanced.yaml lines 5-7 so
only one retains the storageclass.kubernetes.io/is-default-class annotation,
removing it from the other while preserving both StorageClass definitions.

In `@assets/overlays/gcp-pd/patches/controller_add_driver.yaml`:
- Around line 56-59: Set tuned CPU and memory limits alongside the existing
requests for both driver containers: update
assets/overlays/gcp-pd/patches/controller_add_driver.yaml lines 56-59 and
assets/overlays/gcp-pd/patches/node_add_driver.yaml lines 60-63. Ensure every
container’s resources includes both requests and limits.
- Around line 36-43: Add readinessProbe blocks for both driver containers,
matching the existing livenessProbe health endpoint and appropriate probe
settings: assets/overlays/gcp-pd/patches/controller_add_driver.yaml lines 36-43
and assets/overlays/gcp-pd/patches/node_add_driver.yaml lines 52-59. Ensure each
controller and node driver has both liveness and readiness probes targeting its
health endpoint.

---

Nitpick comments:
In `@assets/overlays/gcp-pd/base/hostnetwork_role.yaml`:
- Line 4: Replace hard-coded gcp-pd-derived resource names with the appropriate
asset-prefix variables: in assets/overlays/gcp-pd/base/hostnetwork_role.yaml:4
use ${ASSET_SHORT_PREFIX} for the role name; in
assets/overlays/gcp-pd/base/controller_hostnetwork_binding.yaml:4-11 use
${ASSET_PREFIX}-controller-sa and the parameterized role name; and in
assets/overlays/gcp-pd/base/volumesnapshotclass.yaml:3-4 and
assets/overlays/gcp-pd/base/volumesnapshotclass_images.yaml:3-4 derive
snapshot-class names from ${ASSET_SHORT_PREFIX}.
🪄 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: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 6729c8e2-62a3-43cb-b234-9b48ba87249c

📥 Commits

Reviewing files that changed from the base of the PR and between 50f79e7 and 1d074fb.

⛔ Files ignored due to path filters (33)
  • assets/overlays/gcp-pd/generated/standalone/cabundle_cm.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/controller.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/controller_hostnetwork_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/controller_pdb.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/controller_sa.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/csidriver.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/hostnetwork_role.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/kube_rbac_proxy_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/kube_rbac_proxy_role.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/lease_leader_election_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/lease_leader_election_role.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/main_attacher_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/main_provisioner_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/main_resizer_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/main_snapshotter_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/manifests.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/node.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/node_privileged_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/node_sa.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/privileged_role.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/prometheus_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/prometheus_role.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/service.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/servicemonitor.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/storageclass.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/storageclass_hyperdisk_balanced.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/storageclass_reader_resizer_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/storageclass_ssd.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/volumeattributesclass_reader_provisioner_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/volumeattributesclass_reader_resizer_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/volumesnapshot_reader_provisioner_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/volumesnapshotclass.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/volumesnapshotclass_images.yaml is excluded by !**/generated/**
📒 Files selected for processing (17)
  • assets/overlays/gcp-pd/base/controller_hostnetwork_binding.yaml
  • assets/overlays/gcp-pd/base/csidriver.yaml
  • assets/overlays/gcp-pd/base/hostnetwork_role.yaml
  • assets/overlays/gcp-pd/base/storageclass.yaml
  • assets/overlays/gcp-pd/base/storageclass_hyperdisk_balanced.yaml
  • assets/overlays/gcp-pd/base/storageclass_ssd.yaml
  • assets/overlays/gcp-pd/base/volumesnapshotclass.yaml
  • assets/overlays/gcp-pd/base/volumesnapshotclass_images.yaml
  • assets/overlays/gcp-pd/patches/controller_add_driver.yaml
  • assets/overlays/gcp-pd/patches/node_add_driver.yaml
  • assets/overlays/gcp-pd/patches/node_remove_metrics_serving_cert.yaml
  • assets/overlays/gcp-pd/patches/node_remove_sys_fs.yaml
  • assets/overlays/gcp-pd/patches/privileged_role_get_nodes.yaml
  • assets/overlays/gcp-pd/patches/privileged_role_get_nodes.yaml.patch
  • cmd/generator/main.go
  • pkg/driver/common/generator/port_registry.go
  • pkg/driver/gcp-pd/gcp_pd.go

Comment thread assets/overlays/gcp-pd/base/storageclass.yaml
Comment thread assets/overlays/gcp-pd/patches/controller_add_driver.yaml
Comment thread assets/overlays/gcp-pd/patches/controller_add_driver.yaml
@mpatlasov
mpatlasov force-pushed the STOR-2997-auto-generate-assets-for-GCP-PD-CSI-driver branch from 1d074fb to 43b0579 Compare July 27, 2026 13:32
@mpatlasov

Copy link
Copy Markdown
Contributor Author

/hold

to fix CI failures

@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 Jul 27, 2026
This commit contains everything needed for auto-generation of assets for GCP PD CSI driver operator.
This commit doesn't have any manual changes. It only updates assets in `assets/overlays/gcp-pd/generated/standalone/` by means of:
```
$ rm assets/overlays/gcp-pd/generated/standalone/*
$ make update-generated-assets
```
The previous commit updated generated assets. Now assets apply earlier contain placeholders (like `namespace: ${NAMESPACE}` in controller_sa.yaml). We need real assetFunc with proper defualtReplacements to replace placeholders before applying assets.
@mpatlasov
mpatlasov force-pushed the STOR-2997-auto-generate-assets-for-GCP-PD-CSI-driver branch from 43b0579 to 62aa26c Compare July 27, 2026 22:35

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
pkg/operator/prerequisites.go (1)

57-68: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Return success when the final retry applies all remaining assets.

If the tenth attempt succeeds, assetNames becomes empty but the loop ends before Line 29 can return nil; Line 68 instead fails startup with an empty error list.

Proposed fix
 		if len(errs) != 0 {
 			klog.Warningf("Failed to apply some prerequisites: %v", errs)
 		}
+		if len(assetNames) == 0 {
+			klog.Infof("All prerequisite assets are applied")
+			return nil
+		}
 		if len(assetNames) != 0 {
 			select {
🤖 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 `@pkg/operator/prerequisites.go` around lines 57 - 68, Update the retry loop in
the prerequisite application function so it returns nil when the final attempt
leaves assetNames empty, before reaching the terminal fmt.Errorf return.
Preserve the existing retry delay and context cancellation behavior for
remaining assets, and keep the failure return for retries that still have
unresolved prerequisites.
🤖 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 `@pkg/operator/prerequisites_test.go`:
- Around line 118-130: Copy tc.assetNames before passing it to the mutating
applyPrerequisites helper, while retaining the original table input for
verifyAppliedAssets. Update the test flow around applyPrerequisites and ensure
verification continues to use the unmodified expected asset list.

---

Outside diff comments:
In `@pkg/operator/prerequisites.go`:
- Around line 57-68: Update the retry loop in the prerequisite application
function so it returns nil when the final attempt leaves assetNames empty,
before reaching the terminal fmt.Errorf return. Preserve the existing retry
delay and context cancellation behavior for remaining assets, and keep the
failure return for retries that still have unresolved prerequisites.
🪄 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: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 46da66a5-fe1d-4fc3-8370-2672a975c9e9

📥 Commits

Reviewing files that changed from the base of the PR and between 43b0579 and 62aa26c.

⛔ Files ignored due to path filters (33)
  • assets/overlays/gcp-pd/generated/standalone/cabundle_cm.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/controller.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/controller_hostnetwork_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/controller_pdb.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/controller_sa.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/csidriver.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/hostnetwork_role.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/kube_rbac_proxy_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/kube_rbac_proxy_role.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/lease_leader_election_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/lease_leader_election_role.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/main_attacher_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/main_provisioner_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/main_resizer_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/main_snapshotter_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/manifests.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/node.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/node_privileged_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/node_sa.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/privileged_role.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/prometheus_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/prometheus_role.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/service.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/servicemonitor.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/storageclass.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/storageclass_hyperdisk_balanced.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/storageclass_reader_resizer_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/storageclass_ssd.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/volumeattributesclass_reader_provisioner_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/volumeattributesclass_reader_resizer_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/volumesnapshot_reader_provisioner_binding.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/volumesnapshotclass.yaml is excluded by !**/generated/**
  • assets/overlays/gcp-pd/generated/standalone/volumesnapshotclass_images.yaml is excluded by !**/generated/**
📒 Files selected for processing (20)
  • assets/overlays/gcp-pd/base/controller_hostnetwork_binding.yaml
  • assets/overlays/gcp-pd/base/csidriver.yaml
  • assets/overlays/gcp-pd/base/hostnetwork_role.yaml
  • assets/overlays/gcp-pd/base/storageclass.yaml
  • assets/overlays/gcp-pd/base/storageclass_hyperdisk_balanced.yaml
  • assets/overlays/gcp-pd/base/storageclass_ssd.yaml
  • assets/overlays/gcp-pd/base/volumesnapshotclass.yaml
  • assets/overlays/gcp-pd/base/volumesnapshotclass_images.yaml
  • assets/overlays/gcp-pd/patches/controller_add_driver.yaml
  • assets/overlays/gcp-pd/patches/node_add_driver.yaml
  • assets/overlays/gcp-pd/patches/node_remove_metrics_serving_cert.yaml
  • assets/overlays/gcp-pd/patches/node_remove_sys_fs.yaml
  • assets/overlays/gcp-pd/patches/privileged_role_get_nodes.yaml
  • assets/overlays/gcp-pd/patches/privileged_role_get_nodes.yaml.patch
  • cmd/generator/main.go
  • pkg/driver/common/generator/port_registry.go
  • pkg/driver/gcp-pd/gcp_pd.go
  • pkg/operator/prerequisites.go
  • pkg/operator/prerequisites_test.go
  • pkg/operator/starter.go
🚧 Files skipped from review as they are similar to previous changes (15)
  • assets/overlays/gcp-pd/patches/node_remove_sys_fs.yaml
  • assets/overlays/gcp-pd/base/storageclass.yaml
  • assets/overlays/gcp-pd/base/volumesnapshotclass.yaml
  • assets/overlays/gcp-pd/base/hostnetwork_role.yaml
  • assets/overlays/gcp-pd/patches/privileged_role_get_nodes.yaml.patch
  • assets/overlays/gcp-pd/base/controller_hostnetwork_binding.yaml
  • assets/overlays/gcp-pd/patches/privileged_role_get_nodes.yaml
  • cmd/generator/main.go
  • assets/overlays/gcp-pd/patches/node_remove_metrics_serving_cert.yaml
  • assets/overlays/gcp-pd/base/storageclass_ssd.yaml
  • assets/overlays/gcp-pd/base/volumesnapshotclass_images.yaml
  • pkg/driver/common/generator/port_registry.go
  • assets/overlays/gcp-pd/patches/controller_add_driver.yaml
  • assets/overlays/gcp-pd/patches/node_add_driver.yaml
  • pkg/driver/gcp-pd/gcp_pd.go

Comment thread pkg/operator/prerequisites_test.go Outdated
@mpatlasov

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 Jul 27, 2026
@mpatlasov

Copy link
Copy Markdown
Contributor Author

/retest-required

@jsafrane

Copy link
Copy Markdown
Contributor

/test e2e-gcp
/test e2e-gcp-csi

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.

I think this file is not used anywhere (but please double-check)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This file is used in L133 of gcp_pd.go:

			AssetPatches: commongenerator.DefaultGuestAssetPatches.WithPatches(generator.StandaloneOnly,
				...
				"privileged_role.yaml", "overlays/gcp-pd/patches/privileged_role_get_nodes.yaml.patch",
			),

This is required because our generic assets/base/rbac/privileged_role.yaml doesn't have that get nodes rule.

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.

that's privileged_role_get_nodes.yaml.patch, not privileged_role_get_nodes.yaml

Comment thread pkg/driver/gcp-pd/gcp_pd.go Outdated
Comment thread assets/overlays/gcp-pd/generated/standalone/node.yaml
Comment thread assets/overlays/gcp-pd/generated/standalone/node.yaml
@jsafrane

Copy link
Copy Markdown
Contributor

/test e2e-gcp-ovn-upgrade

@jsafrane

Copy link
Copy Markdown
Contributor

/assign

@openshift-ci

openshift-ci Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

@mpatlasov: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-ovn-upgrade 1d074fb link true /test e2e-aws-ovn-upgrade
ci/prow/e2e-azure-file-csi 1d074fb link true /test e2e-azure-file-csi
ci/prow/e2e-azure-file-nfs-csi 1d074fb link true /test e2e-azure-file-nfs-csi
ci/prow/e2e-azure-csi 1d074fb link true /test e2e-azure-csi
ci/prow/smb-win2022-operator-e2e 62aa26c link false /test smb-win2022-operator-e2e
ci/prow/e2e-gcp-ovn-upgrade 62aa26c link true /test e2e-gcp-ovn-upgrade
ci/prow/aws-efs-single-zone-operator-e2e-extended 62aa26c link false /test aws-efs-single-zone-operator-e2e-extended
ci/prow/e2e-gcp 62aa26c link true /test e2e-gcp
ci/prow/smb-win2019-operator-e2e 62aa26c link false /test smb-win2019-operator-e2e
ci/prow/aws-efs-operator-e2e-extended 62aa26c link false /test aws-efs-operator-e2e-extended
ci/prow/e2e-gcp-csi 62aa26c link true /test e2e-gcp-csi

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.

…node DaemonSet

This is bug-fix to the first commit in this PR. `legacy/gcp-pd-csi-driver-operator/assets/node.yaml` has those annotations for reason.
@mpatlasov

Copy link
Copy Markdown
Contributor Author

/pipeline required

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-upgrade
/test e2e-azure
/test e2e-azure-csi
/test e2e-azure-file-csi
/test e2e-azure-file-nfs-csi
/test e2e-azure-ovn-upgrade
/test e2e-gcp
/test e2e-gcp-csi
/test e2e-gcp-ovn-upgrade

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aws-csi-extended
/test e2e-azure-csi-extended
/test e2e-azure-csi-hypershift
/test e2e-azure-file-csi-extended
/test e2e-azure-file-csi-hypershift
/test e2e-azure-file-nfs-csi-hypershift
/test e2e-azurestack-csi

@jsafrane

Copy link
Copy Markdown
Contributor

/test e2e-gcp
/test e2e-gcp-csi
something is still crashing

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/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants