Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
de02e17
openstack-cinder: Add base assets
stephenfin Sep 13, 2024
6087470
openstack-cinder: Add controller driver overlay patch
stephenfin Sep 13, 2024
87152cf
openstack-cinder: Add node driver overlay patch
stephenfin Sep 13, 2024
f4d96c4
openstack-cinder: Add cluster-role-binding overlay patch
stephenfin Sep 25, 2024
fa73767
openstack-cinder: Add provisioner sidecar overlay patch
stephenfin Sep 26, 2024
d0a77f2
openstack-cinder: Add cmd/main.go
stephenfin Aug 26, 2024
a5bde06
openstack-cinder: Add generator implementation
stephenfin Aug 26, 2024
a80f953
openstack-cinder: Copy configsync controller
stephenfin Sep 19, 2024
5f70440
openstack-cinder: go mod tidy && go mod vendor
stephenfin Sep 19, 2024
1303357
openstack-cinder: Rework config map syncer
stephenfin Sep 19, 2024
d099948
openstack-cinder: Enable generation of assets
stephenfin Sep 19, 2024
bce5a21
openstack-cinder: Build from csi-operator
stephenfin Sep 17, 2024
db6d7ef
README: Add OpenStack Cinder to supported operators
stephenfin Sep 23, 2024
7d9b622
openstack-cinder: Remove use of host network from controller
stephenfin Sep 27, 2024
9861c10
openstack-cinder: Document rationale for use of hostNetwork: true
stephenfin Sep 27, 2024
900b1bb
openstack-cinder: Remove duplicate const
stephenfin Oct 9, 2024
05a2ddd
openstack-cinder: Add missing function docstrings
stephenfin Oct 9, 2024
0162e3b
openstack-cinder: Reduce indentation
stephenfin Oct 9, 2024
2c314fa
openstack-cinder: Add comment explaining why we need ENABLE_TOPOLOGY
stephenfin Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions Dockerfile.openstack-cinder
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/openshift/openstack-cinder-csi-driver-operator
COPY legacy/openstack-cinder-csi-driver-operator .
WORKDIR /go/src/github.com/openshift/csi-operator
COPY . .
RUN make

FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
COPY --from=builder /go/src/github.com/openshift/openstack-cinder-csi-driver-operator/openstack-cinder-csi-driver-operator /usr/bin/
COPY --from=builder /go/src/github.com/openshift/csi-operator/bin/openstack-cinder-csi-driver-operator /usr/bin/
ENTRYPOINT ["/usr/bin/openstack-cinder-csi-driver-operator"]
LABEL io.k8s.display-name="OpenShift OpenStack Cinder CSI Driver Operator" \
io.k8s.description="The OpenStack Cinder CSI Driver Operator installs and maintains the OpenStack Cinder CSI Driver on a cluster."
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Lifecycle Manager (OLM).
* aws-efs-csi-driver-operator
* azure-disk-csi-driver-operator
* azure-file-csi-driver-operator
* openstack-cinder-csi-driver-operator
* smb-csi-driver-operator

## Automatic generation of CSI driver assets
Expand Down Expand Up @@ -37,7 +38,7 @@ Good starting points are `pkg/generator` and `pkg/generated-assets`.
### AWS EBS CSI driver operator

Before running the operator manually, you must remove the operator installed by
CSO/CVO
CSO/CVO:

```shell
# Scale down CVO and CSO
Expand Down
4 changes: 2 additions & 2 deletions assets/base/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ spec:
annotations:
# This annotation allows the workload pinning feature to work when clusters are configured for it.
# An admission webhook will look for this annotation when Pod admission occurs to modify the
# memory and cpu resources to a custom resource name that the schedular will use to correctly
# assign Pods in a workload pinned cluster. This annotation will be stripped from Pods when
# memory and cpu resources to a custom resource name that the schedular will use to correctly
# assign Pods in a workload pinned cluster. This annotation will be stripped from Pods when
# the cluster is not configured for workload pinning.
# See (openshift/enhancements#1213) for more info.
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
Expand Down
16 changes: 16 additions & 0 deletions assets/overlays/openstack-cinder/base/csidriver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
name: cinder.csi.openstack.org
annotations:
# This CSIDriver is managed by an OCP CSI operator
csi.openshift.io/managed: "true"
spec:
attachRequired: true
podInfoOnMount: true
fsGroupPolicy: File
requiresRepublish: false
storageCapacity: false
seLinuxMount: true
volumeLifecycleModes:
- Persistent
10 changes: 10 additions & 0 deletions assets/overlays/openstack-cinder/base/storageclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: standard-csi
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: cinder.csi.openstack.org
reclaimPolicy: "Delete"
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
10 changes: 10 additions & 0 deletions assets/overlays/openstack-cinder/base/volumesnapshotclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
name: standard-csi
annotations:
snapshot.storage.kubernetes.io/is-default-class: "true"
driver: cinder.csi.openstack.org
deletionPolicy: Delete
parameters:
force-create: "false"
Original file line number Diff line number Diff line change
@@ -0,0 +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: openstack-cinder-csi-driver-trusted-ca-bundle
namespace: ${NAMESPACE}
Loading