Skip to content

Add optional StorageClass creation for AWS EFS #116

Description

@vlucaj

Proposed changes

Add optional StorageClass creation for AWS EFS volumes in environments where StorageClass creation is restricted with the ability to target a pre-existing StorageClass.

Context

Deployments fail in environments where service accounts lack permission to create cluster-scoped resources. The chart automatically creates a StorageClass for AWS EFS volumes when EFS is enabled, causing deployment errors in restricted environments.

Error example:

Error: UPGRADE FAILED: cannot patch "dg-models-aws-efs-sc" with kind StorageClass:
storageclasses.storage.k8s.io "dg-models-aws-efs-sc" is forbidden:
User "u-xxxxxxxxxx" cannot patch resource "storageclasses" in API group "storage.k8s.io" at the cluster scope

Possible Implementation

Support both scenarios:

  • Creating a new StorageClass (default behavior)
  • Using an existing StorageClass by reference (for restricted environments)
  1. Add configuration flags in values.yaml
  2. Update StorageClass template with conditional rendering
  3. Modify PersistentVolume and PersistentVolumeClaim templates to reference configurable StorageClass name

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions