summaryrefslogtreecommitdiffstats
path: root/src/sandbox/kata.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sandbox/kata.rs')
-rw-r--r--src/sandbox/kata.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sandbox/kata.rs b/src/sandbox/kata.rs
index a54110a..cfc3bd6 100644
--- a/src/sandbox/kata.rs
+++ b/src/sandbox/kata.rs
@@ -40,7 +40,7 @@ pub trait Provisioner: Send + Sync {
/// TTL even if the hub dies. The token rides in args for v1; a production
/// deployment should mount it from a Secret, and this comment is the honest
/// place that says so.
-pub(crate) fn sandbox_cr(req: &ProvisionRequest) -> serde_json::Value {
+fn sandbox_cr(req: &ProvisionRequest) -> serde_json::Value {
serde_json::json!({
"apiVersion": "agents.x-k8s.io/v1alpha1",
"kind": "Sandbox",
@@ -75,7 +75,7 @@ pub(crate) fn sandbox_cr(req: &ProvisionRequest) -> serde_json::Value {
}
impl K8sSandboxProvisioner {
- pub(crate) fn for_config(cfg: &Config) -> Option<Self> {
+ fn for_config(cfg: &Config) -> Option<Self> {
match &cfg.sandbox {
crate::config::Sandbox::AgentSandbox { api, namespace, bearer, .. } => Some(Self {
api: api.clone(),
@@ -87,7 +87,7 @@ impl K8sSandboxProvisioner {
}
}
-pub(crate) struct K8sSandboxProvisioner {
+struct K8sSandboxProvisioner {
pub api: String,
pub bearer: String,
pub namespace: String,