-
Notifications
You must be signed in to change notification settings - Fork 57
STOR-2997: Auto generate assets for gcp pd csi driver #585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
openshift-merge-bot
merged 7 commits into
openshift:main
from
mpatlasov:STOR-2997-auto-generate-assets-for-GCP-PD-CSI-driver
Jul 30, 2026
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
377cfac
Prepare base and patch yaml files and generator for GCP PD
mpatlasov 2a4579d
Auto-generate assets for GCP PD CSI driver operator
mpatlasov 62aa26c
Refactor applyPrerequisites() to accept and use assetFunc
mpatlasov 2c91c61
Preserve the expected asset list before calling applyPrerequisites()
mpatlasov 09e79d3
Remove prometheus Role and RoleBinding from ControlPlaneConfig
mpatlasov b529a19
Add inject-proxy and inject-proxy-cabundle annotations to csi driver …
mpatlasov 73cd503
GCP PD Operator: tell kebelet to use localhost (127.0.0.1) for node c…
mpatlasov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
assets/overlays/gcp-pd/base/controller_hostnetwork_binding.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| kind: ClusterRoleBinding | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| metadata: | ||
| name: gcp-pd-controller-hostnetwork-binding | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: gcp-pd-csi-driver-controller-sa | ||
| namespace: ${NAMESPACE} | ||
| roleRef: | ||
| kind: ClusterRole | ||
| name: gcp-pd-hostnetwork-role | ||
| apiGroup: rbac.authorization.k8s.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: storage.k8s.io/v1 | ||
| kind: CSIDriver | ||
| metadata: | ||
| name: pd.csi.storage.gke.io | ||
| spec: | ||
| attachRequired: true | ||
| podInfoOnMount: false | ||
| fsGroupPolicy: File | ||
| requiresRepublish: false | ||
| storageCapacity: false | ||
| seLinuxMount: true | ||
| volumeLifecycleModes: | ||
| - Persistent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| kind: ClusterRole | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| metadata: | ||
| name: gcp-pd-hostnetwork-role | ||
| rules: | ||
| - apiGroups: ["security.openshift.io"] | ||
| resourceNames: ["hostnetwork-v2"] | ||
| resources: ["securitycontextconstraints"] | ||
| verbs: ["use"] | ||
| - apiGroups: [""] | ||
| resources: ["nodes"] | ||
| verbs: ["get"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: storage.k8s.io/v1 | ||
| kind: StorageClass | ||
| metadata: | ||
| name: standard-csi | ||
| annotations: | ||
| storageclass.kubernetes.io/is-default-class: "true" | ||
| provisioner: pd.csi.storage.gke.io | ||
| parameters: | ||
| type: pd-standard | ||
| replication-type: none | ||
| volumeBindingMode: WaitForFirstConsumer | ||
| allowVolumeExpansion: true | ||
| reclaimPolicy: Delete | ||
13 changes: 13 additions & 0 deletions
13
assets/overlays/gcp-pd/base/storageclass_hyperdisk_balanced.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: storage.k8s.io/v1 | ||
| kind: StorageClass | ||
| metadata: | ||
| name: hyperdisk-balanced | ||
| annotations: | ||
| storageclass.kubernetes.io/is-default-class: "true" | ||
| provisioner: pd.csi.storage.gke.io | ||
| parameters: | ||
| type: hyperdisk-balanced | ||
| replication-type: none | ||
| volumeBindingMode: WaitForFirstConsumer | ||
| allowVolumeExpansion: true | ||
| reclaimPolicy: Delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| apiVersion: storage.k8s.io/v1 | ||
| kind: StorageClass | ||
| metadata: | ||
| name: ssd-csi | ||
| provisioner: pd.csi.storage.gke.io | ||
| parameters: | ||
| type: pd-ssd | ||
| replication-type: none | ||
| volumeBindingMode: WaitForFirstConsumer | ||
| allowVolumeExpansion: true | ||
| reclaimPolicy: Delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| apiVersion: snapshot.storage.k8s.io/v1 | ||
| kind: VolumeSnapshotClass | ||
| metadata: | ||
| name: csi-gce-pd-vsc | ||
| annotations: | ||
| snapshot.storage.kubernetes.io/is-default-class: "true" | ||
| driver: pd.csi.storage.gke.io | ||
| deletionPolicy: Delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| apiVersion: snapshot.storage.k8s.io/v1 | ||
| kind: VolumeSnapshotClass | ||
| metadata: | ||
| name: csi-gce-pd-vsc-images | ||
| driver: pd.csi.storage.gke.io | ||
| deletionPolicy: Delete | ||
| parameters: | ||
| snapshot-type: images |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,13 @@ | ||
| # Generated file. Do not edit. Update using "make update". | ||
| # | ||
| # Loaded from base/cabundle_cm.yaml | ||
| # | ||
| # | ||
|
|
||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| labels: | ||
| config.openshift.io/inject-trusted-cabundle: "true" | ||
| name: gcp-pd-csi-driver-trusted-ca-bundle | ||
| namespace: openshift-cluster-csi-drivers | ||
| namespace: ${NAMESPACE} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.