cloudnative-pg / cloudnative-pg/plugin-barman-cloud
[feature request] Allow ObjectStore config to use endpointCA from ConfigMap in addition to Secret
- Dominant language
- Go
- Stars
- 191
- Forks
- 72
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 21
Description
Currently, the ObjectStore config [only allows specifying the CA certificates from a secret](https://cloudnative-pg.io/plugin-barman-cloud/docs/object_stores/#using-object-storage-with-a-private-ca). We are using trust manager to distribute the certificates as config maps. The [`BarmanObjectStoreConfiguration`](https://pkg.go.dev/github.com/cloudnative-pg/barman-cloud/pkg/api#BarmanObjectStoreConfiguration) however only allows secrets to be specified.
e.g.:
```yaml
apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
name: my-obj-store
spec:
configuration:
endpointURL: https://
endpointCA:
configMapRef:
name: my-ca-configmap
key: ca.crt
```
Contributor guide
Assessment
This issue has not been assessed yet.