Skip to content

Unable to add annotations in volumeClaimTemplates / annotations on PVC #326

Open
@ShahroZafar

Description

@ShahroZafar

Inorder to keep costs in check, we have a kyverno policy deployed in our kubernetes clusters which requires that each PVC which is created have a certain annotation. The result of the annotation is that it applies tags on EBS volumes in AWS.

There is no option (Atleast in docs and CRDs) in the aerospike cluster CRD using which we can either add annotation in volumeClaimTemplate section of statefulsets created by the operator or directly on PVCs.

The annotation described above is a must have for us. We already did some workarounds in other applications (non aerospike), where we disable kyverno policy for that application specifically and add a cronjob which annotate the PVCs but its not a very clean solution and have to be maintained independently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions