Skip to content

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

Open
mpatlasov wants to merge 2 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 2 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: 96afebd9-5d70-4150-8079-01fd1a236fe4

📥 Commits

Reviewing files that changed from the base of the PR and between 1d074fb and 43b0579.

⛔ 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
🚧 Files skipped from review as they are similar to previous changes (16)
  • assets/overlays/gcp-pd/base/csidriver.yaml
  • assets/overlays/gcp-pd/patches/node_remove_sys_fs.yaml
  • assets/overlays/gcp-pd/base/hostnetwork_role.yaml
  • assets/overlays/gcp-pd/base/storageclass_ssd.yaml
  • cmd/generator/main.go
  • assets/overlays/gcp-pd/base/storageclass_hyperdisk_balanced.yaml
  • assets/overlays/gcp-pd/base/storageclass.yaml
  • assets/overlays/gcp-pd/base/controller_hostnetwork_binding.yaml
  • assets/overlays/gcp-pd/patches/privileged_role_get_nodes.yaml
  • assets/overlays/gcp-pd/base/volumesnapshotclass_images.yaml
  • assets/overlays/gcp-pd/base/volumesnapshotclass.yaml
  • pkg/driver/common/generator/port_registry.go
  • assets/overlays/gcp-pd/patches/node_remove_metrics_serving_cert.yaml
  • pkg/driver/gcp-pd/gcp_pd.go
  • assets/overlays/gcp-pd/patches/controller_add_driver.yaml
  • assets/overlays/gcp-pd/patches/node_add_driver.yaml

📝 Walkthrough

Walkthrough

Adds standalone GCP Persistent Disk CSI driver asset generation. The change introduces controller and node manifests, OpenShift host-network and node RBAC, CSI storage and snapshot resources, node volume patches, metrics port constants, driver generator configuration, and generator registration.

Suggested reviewers: mandre, rhrmo


Important

Pre-merge checks failed

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

❌ Failed checks (2 errors, 2 warnings)

Check name Status Explanation Resolution
Container-Privileges ❌ Error The new GCP PD manifests add hostNetwork: true in both controller/node, and the node DaemonSet sets privileged: true. Remove hostNetwork/privileged settings unless strictly required, or provide an explicit security justification and review any related SCC/RBAC changes.
No-Sensitive-Data-In-Logs ❌ Error New debug logs print raw GCP resource labels/tags and full KMS key paths, which may expose customer data/internal identifiers. Remove or redact values from klog calls in withCustomLabels, withCustomResourceTags, and getKMSKeyHook; log only counts or sanitized metadata.
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% 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 node DaemonSet uses a wildcard toleration (operator: Exists) with only an OS nodeSelector, so it can land on TNA arbiter nodes; no arbiter gate exists. Restrict node placement with topology-aware logic: avoid wildcard taint toleration on the node plugin, or explicitly exclude node-role.kubernetes.io/arbiter while still supporting SNO/TNF/HA.
✅ Passed checks (11 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: auto-generating assets for the GCP PD CSI driver.
Description check ✅ Passed The description is related to the changeset and accurately notes the manual and generated YAML 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 No _test.go files changed, and the modified Go files contain no It/Describe/Context/When titles; this PR only adds generator/assets.
Test Structure And Quality ✅ Passed No Ginkgo or test files were added or modified; the PR only changes YAML assets and generator code.
Microshift Test Compatibility ✅ Passed No new Ginkgo/e2e tests were added in the PR diff; only generator code and Kubernetes manifests changed.
Single Node Openshift (Sno) Test Compatibility ✅ Passed PASS: The PR only adds generator/config YAML and Go asset-generation code; no new Ginkgo/e2e tests or _test.go files were added, so SNO checks are not applicable.
Ote Binary Stdout Contract ✅ Passed No process-level stdout writes were added; main only uses klog, which defaults to stderr, and no fmt.Print/init/TestMain writes appear in changed code.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo/e2e tests were added; changes are generator code and manifests only, with no IPv4-only test logic or external connectivity requirements.
No-Weak-Crypto ✅ Passed The PR only adds generator wiring and Kubernetes manifests; no weak ciphers, custom crypto, or secret/token comparisons were introduced.
✨ 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 on lines +5 to +7
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: pd.csi.storage.gke.io

Copy link
Copy Markdown

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

Choose exactly one default StorageClass for the generated overlay.

Both manifests set storageclass.kubernetes.io/is-default-class: "true", making PVC provisioning without an explicit class order-dependent.

  • assets/overlays/gcp-pd/base/storageclass.yaml#L5-L7: remove the default annotation or retain it as the sole default.
  • assets/overlays/gcp-pd/base/storageclass_hyperdisk_balanced.yaml#L5-L7: remove the default annotation or make this class mutually exclusive with standard-csi.
📍 Affects 2 files
  • assets/overlays/gcp-pd/base/storageclass.yaml#L5-L7 (this comment)
  • assets/overlays/gcp-pd/base/storageclass_hyperdisk_balanced.yaml#L5-L7
🤖 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/storageclass.yaml` around lines 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.

Comment on lines +36 to +43
livenessProbe:
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 10
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 5

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Add readiness probes for both driver containers.

Without readiness checks, Kubernetes can route CSI work before each driver is ready to serve its socket/health endpoint.

  • assets/overlays/gcp-pd/patches/controller_add_driver.yaml#L36-L43: add a readiness probe for the controller driver.
  • assets/overlays/gcp-pd/patches/node_add_driver.yaml#L52-L59: add a readiness probe for the node driver.

As per path instructions, Kubernetes manifests require “Liveness + readiness probes defined.”

📍 Affects 2 files
  • assets/overlays/gcp-pd/patches/controller_add_driver.yaml#L36-L43 (this comment)
  • assets/overlays/gcp-pd/patches/node_add_driver.yaml#L52-L59
🤖 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/patches/controller_add_driver.yaml` around lines 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.

Source: Path instructions

Comment on lines +56 to +59
resources:
requests:
memory: 50Mi
cpu: 10m

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Set CPU and memory limits for both driver containers.

Requests alone do not bound node resource consumption.

  • assets/overlays/gcp-pd/patches/controller_add_driver.yaml#L56-L59: add tuned CPU and memory limits.
  • assets/overlays/gcp-pd/patches/node_add_driver.yaml#L60-L63: add tuned CPU and memory limits.

As per path instructions, Kubernetes manifests require resource limits on every container.

📍 Affects 2 files
  • assets/overlays/gcp-pd/patches/controller_add_driver.yaml#L56-L59 (this comment)
  • assets/overlays/gcp-pd/patches/node_add_driver.yaml#L60-L63
🤖 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/patches/controller_add_driver.yaml` around lines 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.

Source: Path instructions

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
```
@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
@openshift-ci

openshift-ci Bot commented Jul 27, 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-gcp-csi 1d074fb link true /test e2e-gcp-csi
ci/prow/aws-efs-operator-e2e 43b0579 link true /test aws-efs-operator-e2e
ci/prow/e2e-azure-file-nfs-csi 1d074fb link true /test e2e-azure-file-nfs-csi
ci/prow/e2e-aws-ovn-upgrade 1d074fb link true /test e2e-aws-ovn-upgrade
ci/prow/e2e-azure-csi 1d074fb link true /test e2e-azure-csi
ci/prow/unit 43b0579 link true /test unit
ci/prow/e2e-gcp 1d074fb link true /test e2e-gcp
ci/prow/hypershift-e2e-aks 43b0579 link false /test hypershift-e2e-aks
ci/prow/e2e-azure-file-csi 1d074fb link true /test e2e-azure-file-csi
ci/prow/e2e-gcp-ovn-upgrade 1d074fb link true /test e2e-gcp-ovn-upgrade

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.

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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. 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.

2 participants