Skip to content

Commit 57b5c15

Browse files
fix: enable configuring state_dir with runtime configuration
Signed-off-by: Kate Goldenring <[email protected]>
1 parent e25bd7d commit 57b5c15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

containerd-shim-spin/src/trigger.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ fn factors_config() -> FactorsConfig {
5454
.then(|| RUNTIME_CONFIG_PATH.into());
5555
// Configure the application state directory path. This is used in the default
5656
// locations for logs, key value stores, etc.
57-
let state_dir = PathBuf::from(SPIN_TRIGGER_WORKING_DIR).join(SPIN_DEFAULT_STATE_DIR);
5857
FactorsConfig {
5958
working_dir: SPIN_TRIGGER_WORKING_DIR.into(),
6059
runtime_config_file,
61-
state_dir: UserProvidedPath::Provided(state_dir),
60+
local_app_dir: Some(SPIN_TRIGGER_WORKING_DIR.to_string()),
6261
// Explicitly do not set log dir in order to force logs to be displayed to stdout.
6362
// Otherwise, would default to the state directory.
6463
log_dir: UserProvidedPath::Unset,

0 commit comments

Comments
 (0)