pub fn generate_argocd_application(
contract: &DeploymentContract,
argo: &ArgocdConfig,
identity: Option<&ContractIdentity>,
) -> StringAvailable 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);