From cdfc9fd2d94c9d1beb6366395ed43af33cfe0729 Mon Sep 17 00:00:00 2001 From: Saul Paredes Date: Thu, 12 Jun 2025 13:30:31 -0700 Subject: [PATCH] agent: add feature flag to secure_mount method This method is not used when guest-pull is not used. Add a flag that prevents a compile error when building with rust version > 1.84.0 and not using guest-pull Signed-off-by: Saul Paredes --- src/agent/src/cdh.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/agent/src/cdh.rs b/src/agent/src/cdh.rs index 46ca3c64f6..d34ad20388 100644 --- a/src/agent/src/cdh.rs +++ b/src/agent/src/cdh.rs @@ -74,6 +74,7 @@ impl CDHClient { Ok(unsealed_secret.plaintext) } + #[cfg(feature = "guest-pull")] pub async fn secure_mount( &self, volume_type: &str,