diff --git a/src/controllers/replica/resources.rs b/src/controllers/replica/resources.rs index 5bd3b55..fea4198 100644 --- a/src/controllers/replica/resources.rs +++ b/src/controllers/replica/resources.rs @@ -213,6 +213,14 @@ fi value: Some(backup_type.clone()), ..Default::default() }, + // Region comes from the canopy-creds Secret the syncer + // materialises alongside this Job; the sidecar signs S3 + // requests for it before forwarding upstream. + crate::controllers::jobs::env_from_secret_name( + "PGRO_REGION", + source.secret_name(), + "region", + ), EnvVar { name: "PGRO_STATS_CALLBACK_URL".to_string(), value: Some(proxy.stats_callback_url.to_string()), diff --git a/src/controllers/restore/builders.rs b/src/controllers/restore/builders.rs index 9b302dc..2d0a944 100644 --- a/src/controllers/restore/builders.rs +++ b/src/controllers/restore/builders.rs @@ -821,6 +821,14 @@ echo -n "$VERSION" > /dev/termination-log value: Some(backup_type.clone()), ..Default::default() }, + // Region comes from the canopy-creds Secret the syncer + // materialises alongside this Job; the sidecar signs S3 + // requests for it before forwarding upstream. + crate::controllers::jobs::env_from_secret_name( + "PGRO_REGION", + source.secret_name(), + "region", + ), EnvVar { name: "PGRO_STATS_CALLBACK_URL".to_string(), value: Some(proxy.stats_callback_url.to_string()),