Skip to content

Commit

Permalink
COSI-75: add-brownfield-custom-resources
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Dec 18, 2024
1 parent 0ed07f5 commit 0df0e54
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cosi-examples/brownfield/bucket.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: objectstorage.k8s.io/v1alpha1
kind: Bucket
metadata:
name: brownfield-bucket # should be same as bucket name
namespace: scality-object-storage
spec:
bucketClaim: {}
bucketClassName: brownfield-bucket-class
driverName: cosi.scality.com
deletionPolicy: Retain
existingBucketID: brownfield-bucket # name of pre-existing bucket in S3
parameters:
objectStorageSecretName: s3-secret-for-cosi
objectStorageSecretNamespace: default
protocols:
- S3
10 changes: 10 additions & 0 deletions cosi-examples/brownfield/bucketaccess.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: objectstorage.k8s.io/v1alpha1
kind: BucketAccess
metadata:
name: brownfield-bucket-access
namespace: scality-object-storage
spec:
bucketAccessClassName: brownfield-bucket-access-class
bucketClaimName: brownfield-bucket-claim
credentialsSecretName: brownfield-bucket-secret
protocol: s3
10 changes: 10 additions & 0 deletions cosi-examples/brownfield/bucketaccessclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kind: BucketAccessClass
apiVersion: objectstorage.k8s.io/v1alpha1
metadata:
name: brownfield-bucket-access-class
namespace: scality-object-storage
driverName: cosi.scality.com
authenticationType: KEY
parameters:
objectStorageSecretName: s3-secret-for-cosi
objectStorageSecretNamespace: default
10 changes: 10 additions & 0 deletions cosi-examples/brownfield/bucketclaim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: objectstorage.k8s.io/v1alpha1
kind: BucketClaim
metadata:
name: brownfield-bucket-claim
namespace: scality-object-storage
spec:
bucketClassName: brownfield-bucket-class
existingBucketName: brownfield-bucket # name of Bucket object
protocols:
- S3
10 changes: 10 additions & 0 deletions cosi-examples/brownfield/bucketclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: objectstorage.k8s.io/v1alpha1
kind: BucketClass
metadata:
name: brownfield-bucket-class
namespace: scality-object-storage
driverName: cosi.scality.com
deletionPolicy: Delete
parameters:
objectStorageSecretName: s3-secret-for-cosi
objectStorageSecretNamespace: default

0 comments on commit 0df0e54

Please sign in to comment.