Skip to main content

generate_argocd_application

Function generate_argocd_application 

Source
pub fn generate_argocd_application(
    contract: &DeploymentContract,
    argo: &ArgocdConfig,
    identity: Option<&ContractIdentity>,
) -> String
Available on crate feature deployment only.
Expand description

Generate an ArgoCD Application custom-resource YAML from the deployment contract.

The CR points at a Helm chart in a git repo (typically the chart that generate_chart produces). Apply with:

kubectl apply -n argocd -f application.yaml

ยงExample

use hyperi_rustlib::deployment::{ArgocdConfig, generate_argocd_application};
let argo = ArgocdConfig {
    repo_url: "https://github.com/hyperi-io/dfe-loader".into(),
    ..Default::default()
};
let yaml = generate_argocd_application(&contract, &argo, None);