Migrate from fleet-ci bucket to Ingest bucket
jlind23 opened this issue · 2 comments
In our Buildkite pipelines we are still relying on the fleet-ci buckets for DRA stage.
We need to stop using this one and rather start pushing artifacts to the ingest specific pipelines.
This change should be then back ported to the following branches:
- 7.17
- 8.12
@mrodm Looking at this it should be as easy as updating the vault value used to retrieved the gcs bucket name right?
Bucket name is retrieved here:
fleet-server/.buildkite/hooks/pre-command
Line 65 in 5e8a1e9
And bucket is used here:
fleet-server/.buildkite/scripts/common.sh
Line 105 in 5e8a1e9
It's also used in get_bucket_uri()
:
fleet-server/.buildkite/scripts/common.sh
Line 121 in 5e8a1e9
The problem of updating the value directly in that vault path is that it could not be tested if that works or not in advance, and other builds (of any branch or PR) could fail.
It is needed to ensure that the current service account has the required permissions to upload/write files into the new bucket. The service account used here is retrieved from this vault path:
NOTE: Just realized that get_bucket_uri()
function is duplicated in buildkite/scripts/common.sh
, and it could be removed one of them:
fleet-server/.buildkite/scripts/common.sh
Lines 119 to 139 in 5e8a1e9