Skip to content

Commit

Permalink
Pass AWS Token to Delta Lake if present.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonrnewhouse committed Nov 28, 2023
1 parent fe577d8 commit 0dc1640
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions arroyo-worker/src/connectors/filesystem/delta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ async fn update_s3_credentials(options: &mut HashMap<String, String>) -> Result<
AmazonS3ConfigKey::SecretAccessKey.as_ref().to_string(),
tmp_credentials.secret_key.clone(),
);
if let Some(token) = tmp_credentials.token.as_ref() {
options.insert(AmazonS3ConfigKey::Token.as_ref().to_string(), token.clone());
}
}
options.insert(AWS_S3_ALLOW_UNSAFE_RENAME.to_string(), "true".to_string());
Ok(())
Expand Down
1 change: 0 additions & 1 deletion arroyo-worker/src/connectors/kafka/sink/test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(clippy::unnecessary_mut_passed)]

use std::io::Write;
use std::time::{Duration, SystemTime};

use crate::engine::{Context, OutQueue};
Expand Down
8 changes: 4 additions & 4 deletions k8s/arroyo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ api:
image:
repository: ghcr.io/arroyosystems/arroyo-services
pullPolicy: IfNotPresent
tag: "0.8.0"
tag: "tip"
service:
type: ClusterIP
httpPort: 80
Expand All @@ -31,7 +31,7 @@ controller:
image:
repository: ghcr.io/arroyosystems/arroyo-services
pullPolicy: IfNotPresent
tag: "0.8.0"
tag: "tip"
service:
grpcPort: 9190
adminPort: 9191
Expand All @@ -46,7 +46,7 @@ compiler:
image:
repository: ghcr.io/arroyosystems/arroyo-compiler
pullPolicy: IfNotPresent
tag: "0.8.0"
tag: "tip"
service:
grpcPort: 9000
adminPort: 9001
Expand All @@ -61,7 +61,7 @@ worker:
image:
repository: ghcr.io/arroyosystems/arroyo-worker
pullPolicy: IfNotPresent
tag: "0.8.0"
tag: "tip"

postgresql:
# set to true to deploy a postgres instance in-cluster
Expand Down

0 comments on commit 0dc1640

Please sign in to comment.