Skip to content

Specify filesystemID from kubernetes secret #1615

@zevisert-aaico

Description

@zevisert-aaico

Is your feature request related to a problem? Please describe.

It's annoying to specify the EFS filesystemID to PVs or StorageClasses

Describe the solution you'd like in detail

I would like to be able to populate the filesystemID from a secret or configmap, maybe like:

kind: StorageClass 
apiVersion: storage.k8s.io/v1 
metadata: 
  name: efs-sc 
provisioner: efs.csi.aws.com 
parameters: 
  provisioningMode: efs-ap 
  fileSystemIdSecretRef: # <-- this is the ask
    name: my-filesystem-secret
    namespace: some-namespace
    key: id

Describe alternatives you've considered

  • None, I guess. We just hard-code the filesystem ID into our PV

Additional context

The ask is similar to #1052 where the OP is creating a resource in terraform with some specific AWS tags. I'm using crossplane and we deploy a filesystem from this custom resource:

apiVersion: efs.aws.upbound.io/v1beta1
kind: FileSystem
metadata:
  name: filesystem
spec:
  providerConfigRef:
    name: crossplane-aws
  forProvider:
    region: ${AWS_REGION}
    creationToken: ${EKS_CLUSTER_NAME}-filesystem
    performanceMode: generalPurpose
    throughputMode: bursting

It has the ability to write details about the created resource to a secret, so this is an in-cluster discovery mechanism instead of discovering via AWS tags

Metadata

Metadata

Assignees

No one assigned

    Labels

    assignedAssigned the issue to someone.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions