Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Added CRDs for bucket creation flow
Browse files Browse the repository at this point in the history
Issue: S3C-9222
  • Loading branch information
anurag4DSB committed Sep 13, 2024
1 parent c3e9aee commit e53684d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cosi-examples/bucketclaim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: BucketClaim
apiVersion: objectstorage.k8s.io/v1alpha1
metadata:
name: bucket-claim-1
spec:
bucketClassName: bucket-1-name-prefix
protocols:
- s3
9 changes: 9 additions & 0 deletions cosi-examples/bucketclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
kind: BucketClass
apiVersion: objectstorage.k8s.io/v1alpha1
metadata:
name: bucket-1-name-prefix # name of the bucket
driverName: cosi.scality.com
deletionPolicy: Delete
parameters:
COSI_OBJECT_STORAGE_PROVIDER_SECRET_NAME: s3-secret-for-cosi
COSI_OBJECT_STORAGE_PROVIDER_SECRET_NAMESPACE: default
11 changes: 11 additions & 0 deletions cosi-examples/s3-secret-for-cosi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Secret
metadata:
name: s3-secret-for-cosi
namespace: default
type: Opaque
stringData:
COSI_S3_ACCESS_KEY_ID: accessKey1 # Plain text access key
COSI_S3_ACCESS_SECRET_KEY: verySecretKey1 # Plain text secret key
COSI_S3_ENDPOINT: http://localhost:8000 # Plain text endpoint
COSI_S3_REGION: us-west-1 # Plain text region

0 comments on commit e53684d

Please sign in to comment.