MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / decide_k8s

Function decide_k8s

crates/openshell-server/src/certgen.rs:114–121  ·  view source on GitHub ↗
(server_exists: bool, client_exists: bool, jwt_exists: bool)

Source from the content-addressed store, hash-verified

112}
113
114fn decide_k8s(server_exists: bool, client_exists: bool, jwt_exists: bool) -> K8sAction {
115 match (server_exists, client_exists, jwt_exists) {
116 (true, true, true) => K8sAction::SkipExists,
117 (true, true, false) => K8sAction::CreateJwtOnly,
118 (false, false, false) => K8sAction::CreateAll,
119 _ => K8sAction::PartialState,
120 }
121}
122
123async fn run_kubernetes(args: &CertgenArgs, bundle: &PkiBundle) -> Result<()> {
124 let namespace = args

Callers 1

run_kubernetesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected