Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tags Configurations In dynamically Provisioning Access Points #1346

Open
joannazhou888 opened this issue May 9, 2024 · 5 comments
Open
Assignees

Comments

@joannazhou888
Copy link

Is your feature request related to a problem? Please describe.
When using dynamic provisioning, the access point created only has the tag efs.csi.aws.com/cluster = true.
Describe the solution you'd like in detail
A clear and concise description of what you want to happen.

We would like to be able to config tags in PVC

  spec:
    accessModes:
      - ReadWriteMany
    resources:
      requests:
        storage: xx
    storageClassName: xxx
    volumeMode: Filesystem
    tags:
       - service_name : my_service
       - team: infra
       - environment: development
       ... 

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
#700

Additional context
Add any other context or screenshots about the feature request here.

@omerap12
Copy link
Contributor

omerap12 commented May 19, 2024

Maybe I can help with that :)

@omerap12
Copy link
Contributor

/assign

@omerap12
Copy link
Contributor

omerap12 commented May 25, 2024

Hey @joannazhou888 ,
Kubernetes doesn't natively support a "tags" field for PVCs. instead I can make a PR to support tags for the storage-class instead. So your yaml file would looks like that:

kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: efs-sc
provisioner: efs.csi.aws.com
parameters:
  provisioningMode: efs-ap
  fileSystemId: xxxxx
  directoryPerms: "700"
  pvctags: "service_name=my_service,team=infra,environment=development"

output:
image

What do you think?

@joannazhou888
Copy link
Author

Hey @joannazhou888 , Kubernetes doesn't natively support a "tags" field for PVCs. instead I can make a PR to support tags for the storage-class instead. So your yaml file would looks like that:

kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: efs-sc
provisioner: efs.csi.aws.com
parameters:
  provisioningMode: efs-ap
  fileSystemId: xxxxx
  directoryPerms: "700"
  pvctags: "service_name=my_service,team=infra,environment=development"

output: image

What do you think?

@omerap12 Thanks! It looks good to me.

@omerap12
Copy link
Contributor

omerap12 commented Jul 2, 2024

Hey @joannazhou888 , Kubernetes doesn't natively support a "tags" field for PVCs. instead I can make a PR to support tags for the storage-class instead. So your yaml file would looks like that:

kind: StorageClass

apiVersion: storage.k8s.io/v1

metadata:

name: efs-sc

provisioner: efs.csi.aws.com

parameters:

provisioningMode: efs-ap

fileSystemId: xxxxx

directoryPerms: "700"

pvctags: "service_name=my_service,team=infra,environment=development"

output: image

What do you think?

@omerap12 Thanks! It looks good to me.

Cool. Just need to merge the PR now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants