FORMAT: use jsonnet for templating
* add jsonnet templates * rewrite all charts to jsonnet
This commit is contained in:
parent
bf2aa26963
commit
e2fe9bb682
19 changed files with 244 additions and 237 deletions
27
_templates/argo_base.template
Normal file
27
_templates/argo_base.template
Normal file
|
@ -0,0 +1,27 @@
|
|||
# vim:ft=jsonnet:
|
||||
{
|
||||
name:: error "name must be defined",
|
||||
namespace:: $.name,
|
||||
syncOptions:: ["CreateNamespace=true"],
|
||||
|
||||
apiVersion: "argoproj.io/v1alpha1",
|
||||
kind: "Application",
|
||||
metadata: {
|
||||
name: $.name,
|
||||
namespace: "argocd",
|
||||
},
|
||||
spec: {
|
||||
project: "baseline",
|
||||
destination: {
|
||||
server: "https://kubernetes.default.svc",
|
||||
namespace: $.namespace,
|
||||
},
|
||||
syncPolicy: {
|
||||
automated: {
|
||||
selfHeal: true,
|
||||
prune: true,
|
||||
},
|
||||
syncOptions: $.syncOptions,
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue