Details
-
Bug
-
Resolution: Declined
-
Minor
-
5.5.0
-
None
-
Untriaged
-
Unknown
Description
As of now, depcfg looks like the following:
"depcfg": {
"buckets": [
{
"alias": "tgt",
"bucket_name": "target"
},
{
"alias": "src_logs",
"bucket_name": "logs"
}
],
"metadata_bucket": "metadata",
"source_bucket": "logs"
},
The format above has the following issues:
- Not readable
- Not future-proof
Recommendation
- Move metadata_bucket and source_bucket to TLDs
- Call the structure as "bindings" and use the following format:
"bindings" : {
[
{"type":"alias", "bucket_name":"<src_bucket>", "value":"src_bucket"},
{"type":"alias", "bucket_name":"<tgt_bucket>", "value":"tgt_bucket"},
{"type":"key", "key_name":"<key_name>", "value":"key_value"},
]
}
It is important that this be done for beta, as otherwise the current exported structure will have to be supported for future, making it cumbersome during upgrades.
Attachments
For Gerrit Dashboard: MB-29078 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
92552,3 | MB-29078 Sanitise depcfg in exported file | unstable | eventing | Status: ABANDONED | 0 | 0 |