[release-5.0] OCPBUGS-114002: GCP-1074: feat(gcp-pd): enable HyperShift support for GCP PD CSI driver operator - #607
Conversation
…ft support for GCP PD CSI driver operator Enables HyperShift asset generation and runtime support for the GCP PD CSI driver operator: - Add --guest-kubeconfig flag so the operator can run against a HyperShift guest cluster. - Remove StandaloneOnly gating in GetGCPPDGeneratorConfig and generate the hypershift asset overlay alongside standalone. - Add controller_add_hypershift_controller_minter.yaml patch: wires the token-minter sidecar and hosted-kubeconfig volume, fixes the GOOGLE_APPLICATION_CREDENTIALS filename mismatch with HyperShift's WIF credentials secret, disables hostNetwork (blocked by GKE Autopilot), sets explicit ephemeral-storage requests per container (GKE Autopilot pod-level cap), and disables the node service on the controller (--run-node-service=false, since hostNetwork is off). - Remove the HyperShift-unsupported error in GetGCPPDOperatorControllerConfig and gate OldControllerPrivilegedBindingRemoval to Standalone only. - Add unit tests covering Standalone vs HyperShift controller config. make update run against release-5.0 to regenerate assets. Co-authored-by: Cursor <cursoragent@cursor.com> (cherry picked from commit 81451bc)
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@ckandag: This pull request references Jira Issue OCPBUGS-114002, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
/jira refresh |
|
@rhrmo: This pull request references Jira Issue OCPBUGS-114002, which is invalid:
Comment DetailsIn response to this:
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. |
|
/jira refresh |
|
@rhrmo: This pull request references Jira Issue OCPBUGS-114002, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
DetailsIn response to this:
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. |
|
/lgtm |
|
Scheduling required tests: |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ckandag, rhrmo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test e2e-azure-ovn-upgrade |
|
/test e2e-azure-file-nfs-csi |
|
/test e2e-azure-file-csi |
1 similar comment
|
/test e2e-azure-file-csi |
|
/verified later @ckandag |
|
@ckandag: This PR has been marked to be verified later by DetailsIn response to this:
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. |
|
/test e2e-azure-file-csi |
1 similar comment
|
/test e2e-azure-file-csi |
|
@ckandag: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Manual cherry-pick of #601 to
release-5.0.The automatic
/cherry-pickbot flow was tried first (see #606, now closed) but per CSI team guidance a manual cherry-pick is safer here since the original PR (#601) was merged without a bug reference targeting 5.1, which could interact unpredictably with the bot's Jira-linking automation on the backport.Changes
Same as #601:
--guest-kubeconfigflag so the operator can run against a HyperShift guest cluster.StandaloneOnlygating inGetGCPPDGeneratorConfigand generate the hypershift asset overlay alongside standalone.controller_add_hypershift_controller_minter.yamlpatch: wires the token-minter sidecar and hosted-kubeconfig volume, fixes theGOOGLE_APPLICATION_CREDENTIALSfilename mismatch with HyperShift's WIF credentials secret, disableshostNetwork(blocked by GKE Autopilot), sets explicit ephemeral-storage requests per container (GKE Autopilot pod-level cap), and disables the node service on the controller (--run-node-service=false, since hostNetwork is off).GetGCPPDOperatorControllerConfigand gateOldControllerPrivilegedBindingRemovalto Standalone only.Note on generated assets
release-5.0's shared base templates (assets/base/controller.yaml,assets/base/node.yaml) still use the deprecatedserviceAccount:field name, whereasmainhas since been updated toserviceAccountName:. Ranhack/update-generated-assets.shagainst this branch (rather than copyingmain's regenerated output verbatim) so the two are equivalent — this avoids pulling in an unrelated base-template rename and keepsverify-generated-assetspassing onrelease-5.0.make verifyandgo test ./pkg/driver/gcp-pd/...pass locally.Bug: https://redhat.atlassian.net/browse/OCPBUGS-114002 (backport of GCP-1074)
Made with Cursor