Need to remove `Chart.yaml` so that Argo doesn't try to treat `app-of-apps/` as a Helm application (because that would stop it from using Jsonnet parsing).main
parent
d1e000dc10
commit
b107f1e839
@ -1,7 +0,0 @@ |
||||
apiVersion: v2 |
||||
name: jackjack-app-of-apps |
||||
description: App-of-apps for deployment to Homelab |
||||
|
||||
type: application |
||||
version: 0.1.0 |
||||
appVersion: "0.1.0" |
@ -0,0 +1,35 @@ |
||||
{ |
||||
helmApplication( |
||||
name, |
||||
sourceRepoUrl, |
||||
sourceChart, |
||||
sourceTargetRevision, |
||||
namespace="") :: |
||||
{ |
||||
apiVersion: "argoproj.io/v1alpha1", |
||||
kind: "Application", |
||||
metadata: { |
||||
name: name, |
||||
namespace: "argo", |
||||
finalizers: ["resources-finalizer.argocd.argoproj.io"] |
||||
}, |
||||
spec: { |
||||
project: "default", |
||||
source: { |
||||
chart: sourceChart, |
||||
repoURL: sourceRepoUrl, |
||||
targetRevision: sourceTargetRevision |
||||
}, |
||||
destination: { |
||||
server: "https://kubernetes.default.svc", |
||||
namespace: if namespace == "" then name else namespace |
||||
}, |
||||
syncPolicy: { |
||||
automated: { |
||||
prune: true |
||||
}, |
||||
syncOptions: ["CreateNamespace=true"] |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,10 @@ |
||||
// https://docs.crossplane.io/v1.15/software/install/#installed-deployments |
||||
local appDef = import './app-definitions.libsonnet'; |
||||
|
||||
appDef.helmApplication( |
||||
name="crossplane", |
||||
sourceRepoUrl="https://charts.crossplane.io/stable", |
||||
sourceChart="crossplane", |
||||
sourceTargetRevision="1.15.0", |
||||
namespace="crossplane-system" |
||||
) |
Loading…
Reference in new issue