-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from shiftstack/add-cinder-csi
OSASINFRA-3618: Add Cinder CSI support (part 2)
- Loading branch information
Showing
329 changed files
with
190,725 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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,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." |
This file contains 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
This file contains 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
This file contains 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,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 |
This file contains 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,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
10
assets/overlays/openstack-cinder/base/volumesnapshotclass.yaml
This file contains 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,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" |
13 changes: 13 additions & 0 deletions
13
assets/overlays/openstack-cinder/generated/standalone/cabundle_cm.yaml
This file contains 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 @@ | ||
# 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} |
Oops, something went wrong.