pub async fn run_helm(
    command: &str,
    deployment: &Deployment,
    task: &DeploymentTask,
) -> Result<String> {
    let values = create_values_and_secrets(deployment, task).await?;
    let client = kube::Client::try_default().await?;
    execute_pod(
        Api::namespaced(client, CONFIG.self_namespace()),
        helm_pod(command, task, deployment, values).await?,
    )
    .await
}
// -------------------------------------------------------------------------
// Runs helm in a pod in the current cluster. We do this, instead of running
// the helm pod in the target cluster, because we need the service account
// with permissions to the remote cluster.
// Helm will run with a kubeconfig containing only the target cluster.
// -------------------------------------------------------------------------
Runs helm in a pod in the current cluster. We do this, instead of running
the helm pod in the target cluster, because we need the service account
with permissions to the remote cluster.
Helm will run with a kubeconfig containing only the target cluster.
Runs helm in a pod in the current cluster . We do this instead of running the helm pod in the target cluster because we need the service account with permissions to the remote cluster . Helm will run with a kubeconfig containing only the target cluster .
pub async fn run_helm(
    command: &str,
    deployment: &Deployment,
    task: &DeploymentTask,
) -> Result<String> {
    let values = create_values_and_secrets(deployment, task).await?;
    let client = kube::Client::try_default().await?;
    execute_pod(
        Api::namespaced(client, CONFIG.self_namespace()),
        helm_pod(command, task, deployment, values).await?,
    )
    .await
}
pub async fn run_helm ( command : & str , deployment : & Deployment , task : & DeploymentTask , ) -> Result < String > { let values = create_values_and_secrets ( deployment , task ) . await ? ; let client = kube :: Client :: try_default ( ) . await ? ; execute_pod ( Api :: namespaced ( client , CONFIG . self_namespace ( ) ) , helm_pod ( command , task , deployment , values ) . await ? , ) . await }
Runs helm in a pod in the current cluster.
Runs helm in a pod in the current cluster .
command
&str
deployment
&Deployment
task
&DeploymentTask
command
&str
deployment
&Deployment
task
&DeploymentTask