How to Register Snapshot Repository in ECK using StackConfigPolicy with ConfigMap?


I would like to register a Snapshot Repository using S3 compatible storage with the StackConfigPolicy resource. In my environment, I use an Object Bucket with Rook/Ceph as the S3 compatible storage. When deploying the Object Bucket, information such as BUCKET_HOST, BUCKET_NAME, and BUCKET_PORT becomes available through a ConfigMap.

I want to pass this information to the snapshotRepositories field of the StackConfigPolicy. However, since StackConfigPolicy is a Custom Resource (CR), it is not possible to mount a ConfigMap directly. Is there a workaround for this issue in the current version of ECK?

Thank you.