(server_exists: bool, client_exists: bool, jwt_exists: bool)
| 112 | } |
| 113 | |
| 114 | fn 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 | |
| 123 | async fn run_kubernetes(args: &CertgenArgs, bundle: &PkiBundle) -> Result<()> { |
| 124 | let namespace = args |