From debadb31091600368d1f559f8d16d43835dd4b67 Mon Sep 17 00:00:00 2001 From: Dan Norris Date: Thu, 28 Mar 2024 09:13:21 -0400 Subject: [PATCH] fix: use the correct OCI registry environment variables for newer hosts In wasmCloud 0.81.0 we deprecated the old `OCI_REGISTRY` variables in favor of prefixing them with `WASMCLOUD`. 0.82.0 fully removed those variables, so this updates the controller to use the new variables with an eye towards wasmCloud 1.0 compatibility. Signed-off-by: Dan Norris --- src/controller.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controller.rs b/src/controller.rs index c11a005..a2466f9 100644 --- a/src/controller.rs +++ b/src/controller.rs @@ -470,7 +470,7 @@ async fn configure_hosts(config: &WasmCloudHostConfig, ctx: Arc) -> Res env_vars = vec![ EnvVar { - name: "OCI_REGISTRY_USER".to_string(), + name: "WASMCLOUD_OCI_REGISTRY_USER".to_string(), value: Some( docker_config .auths @@ -483,7 +483,7 @@ async fn configure_hosts(config: &WasmCloudHostConfig, ctx: Arc) -> Res ..Default::default() }, EnvVar { - name: "OCI_REGISTRY_PASSWORD".to_string(), + name: "WASMCLOUD_OCI_REGISTRY_PASSWORD".to_string(), value: Some( docker_config .auths @@ -497,7 +497,7 @@ async fn configure_hosts(config: &WasmCloudHostConfig, ctx: Arc) -> Res ..Default::default() }, EnvVar { - name: "OCI_REGISTRY".to_string(), + name: "WASMCLOUD_OCI_REGISTRY".to_string(), value: Some(docker_config.auths.keys().next().unwrap().clone()), ..Default::default() },