Add Oracle Cloud Infrastructure (OCI) Object Storage backend#7718
Add Oracle Cloud Infrastructure (OCI) Object Storage backend#7718harsha-yuvaraj wants to merge 6 commits into
Conversation
Signed-off-by: Harsha Yuvaraj <harshavardanyuvaraj@gmail.com>
Signed-off-by: Harsha Yuvaraj <harshavardanyuvaraj@gmail.com>
Signed-off-by: Harsha Yuvaraj <harshavardanyuvaraj@gmail.com>
Signed-off-by: Harsha Yuvaraj <harshavardanyuvaraj@gmail.com>
Signed-off-by: Harsha Yuvaraj <harshavardanyuvaraj@gmail.com>
|
Should this PR be broken down? |
CharlieTLe
left a comment
There was a problem hiding this comment.
Hi @harsha-yuvaraj, thanks for working on this. Were you able to get this working in a real OCI setup?
|
Hi @CharlieTLe, yes, validated end-to-end against a real OCI Object Storage bucket (Always Free tier), using the I ran the backend's full read/write cycle through The check drove the same |
…-backend Signed-off-by: Harsha Yuvaraj <harshavardanyuvaraj@gmail.com> # Conflicts: # vendor/modules.txt
|
Hey @CharlieTLe, synced onto latest One thing worth noting on the size: |
What this PR does:
Adds Oracle Cloud Infrastructure (OCI) Object Storage as a storage backend for blocks, ruler, and alertmanager, wrapping the OCI provider already shipped by Thanos
objstore. Select it withbackend: ociand configure via-<prefix>.oci.*flags.pkg/storage/bucket/oci/config.go— config struct + flags (auth providers:default,instance-principal,raw,oke-workload-identity)pkg/storage/bucket/oci/bucket_client.go— thin wrapper overobjstore/providers/ocipkg/storage/bucket/client.go— backend registration (constant,SupportedBackends, config field,NewClientcase)github.com/oracle/oci-go-sdk/v65Because ruler/alertmanager/blocks validate against
bucket.SupportedBackends, OCI is available to all three with no extra wiring. Retries are enabled by default (max_request_retries: 3,request_retry_interval: 10s) for parity with the other backends; the provider performs no retries when these are0/1.Which issue(s) this PR fixes:
Fixes #7593
Checklist
CHANGELOG.mdupdateddocs/configuration/v1-guarantees.mdupdated (OCI listed as experimental)