This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add export destination, s3 related fields for Virtual Machine Volume Export CRD - modify controller logic to add s3 related env vars for exporter pod - add e2e testcase to export to s3 - fix exporter image version to v1.2.0
- Loading branch information
Showing
15 changed files
with
267 additions
and
138 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
deploy/crds/hypercloud.tmaxanc.com_v1alpha1_virtualmachinevolumeexport_s3_cr.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 @@ | ||
apiVersion: hypercloud.tmaxanc.com/v1alpha1 | ||
kind: VirtualMachineVolumeExport | ||
metadata: | ||
name: s3-export | ||
spec: | ||
virtualMachineVolume: | ||
name: myrootdisk | ||
destination: | ||
s3: | ||
# s3 endpoint with bucket and object name in virtual hosted style, https://bucketname.s3.region.amazonaws.com/objectkeyname | ||
url: "http://ceph-bucket.rook-ceph-rgw-my-store.rook-ceph:80/disk.img" | ||
# the name of secret which contains accessKeyID and secretAccessKey of the s3 endpoint | ||
secretRef: secret-example |
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,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: secret-example | ||
type: Opaque | ||
data: | ||
AWS_ACCESS_KEY_ID: "QllVQjdMQUcwU1hMT0NHS0lCWUc=" # your key or user name (base64 encoded) | ||
AWS_SECRET_ACCESS_KEY: "ZHFCWFRUUEs2c3U4TlFXY29XUzk2dURpREVGU0V0TnlwRTAzRDMxVQ==" # your secret or password (base64 encoded) |
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,7 @@ | ||
apiVersion: objectbucket.io/v1alpha1 | ||
kind: ObjectBucketClaim | ||
metadata: | ||
name: ceph-delete-bucket | ||
spec: | ||
generateBucketName: ceph-bkt | ||
storageClassName: rook-ceph-bucket |
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: rook-ceph-bucket | ||
provisioner: rook-ceph.ceph.rook.io/bucket | ||
reclaimPolicy: Delete | ||
parameters: | ||
objectStoreName: my-store | ||
objectStoreNamespace: rook-ceph | ||
region: us-east-1 |
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,18 @@ | ||
apiVersion: ceph.rook.io/v1 | ||
kind: CephObjectStore | ||
metadata: | ||
name: my-store | ||
namespace: rook-ceph | ||
spec: | ||
metadataPool: | ||
replicated: | ||
size: 1 | ||
dataPool: | ||
replicated: | ||
size: 1 | ||
preservePoolsOnDelete: false | ||
gateway: | ||
type: s3 | ||
port: 80 | ||
securePort: | ||
instances: 1 |
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
Oops, something went wrong.