aws-fsx-csi-driver
aws-fsx-csi-driver copied to clipboard
Support Data Repository Associations for Lusture 2.12 or newer filesystems(e.g. `PERSISTENT_2` deployment type)
Is this a bug fix or adding new feature?
new feature fixes #367
What is this PR about? / Why do we need it?
This PR supports Data Repository Association(API reference) for Lusture 2.12 or newer filesystems(e.g. PERSISTENT_2 deployment type) like below:
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: fsx-sc
provisioner: fsx.csi.aws.com
parameters:
subnetId: subnet-0d7b5e117ad7b4961
securityGroupIds: sg-05a37bfe01467059a
deploymentType: PERSISTENT_2
perUnitStorageThroughput: "125"
# User can specify multiple data repository associations like this
dataRepositoryAssociations: |
- batchImportMetaDataOnCreate: true
dataRepositoryPath: s3://ml-training-data-000
fileSystemPath: /ml-training-data-000
s3:
autoExportPolicy:
events: ["NEW", "CHANGED", "DELETED" ]
autoImportPolicy:
events: ["NEW", "CHANGED", "DELETED" ]
- batchImportMetaDataOnCreate: true
dataRepositoryPath: s3://ml-training-data-001
fileSystemPath: /ml-training-data-001
s3:
autoExportPolicy:
events: ["NEW", "CHANGED", "DELETED" ]
autoImportPolicy:
events: ["NEW", "CHANGED", "DELETED" ]
# NOTE: These parameters can't be set when using dataRepositoryAssociations
# as document explained:: https://docs.aws.amazon.com/fsx/latest/APIReference/API_CreateFileSystemLustreConfiguration.html
# s3ImportPath: s3://ml-training-data-000
# s3ExportPath: s3://ml-training-data-000/export
# autoImportPolicy: NEW_CHANGED
What testing is done?
make test
# with setting GINKGO_FOCUS=".*fsx-csi-e2e.*PERSISTENT_2.*"
make test-e2e
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: everpeace Once this PR has been reviewed and has the lgtm label, please assign olemarkus for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/retest pull-aws-fsx-csi-driver-e2e
@everpeace: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:
/test pull-aws-fsx-csi-driver-e2e/test pull-aws-fsx-csi-driver-unit/test pull-aws-fsx-csi-driver-verify
Use /test all to run all jobs.
In response to this:
/retest pull-aws-fsx-csi-driver-e2e
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/test pull-aws-fsx-csi-driver-e2e
/test pull-aws-fsx-csi-driver-e2e
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle stale - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle rotten - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
This has been up for a while, sorry. Going to freeze this PR for now, seems like there are some open comments and design decisions to be made here /lifecycle frozen
/lifecycle frozen
@jacobwolfaws: The lifecycle/frozen label cannot be applied to Pull Requests.
In response to this:
/lifecycle frozen
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
Seems like I can't freeze a PR :(
/remove-lifecycle rotten