AppManager: Format cue files
Change-Id: Ia37908797b0227ab3b66e0faab08dcc2379e5282
diff --git a/core/installer/values-tmpl/dodo-app-instance.cue b/core/installer/values-tmpl/dodo-app-instance.cue
index ad20ac7..7255852 100644
--- a/core/installer/values-tmpl/dodo-app-instance.cue
+++ b/core/installer/values-tmpl/dodo-app-instance.cue
@@ -3,34 +3,34 @@
)
input: {
- repoAddr: string
- repoHost: string
- branch: string
+ repoAddr: string
+ repoHost: string
+ branch: string
gitRepoPublicKey: string
// TODO(gio): auto generate
fluxKeys: #SSHKey
}
-name: "Dodo App Instance"
-namespace: "dodo-app-instance"
-readme: "Deploy app by pushing to Git repository"
+name: "Dodo App Instance"
+namespace: "dodo-app-instance"
+readme: "Deploy app by pushing to Git repository"
description: "Deploy app by pushing to Git repository"
-icon: ""
+icon: ""
resources: {
"config-kustomization": {
apiVersion: "kustomize.toolkit.fluxcd.io/v1"
- kind: "Kustomization"
+ kind: "Kustomization"
metadata: {
- name: "app"
+ name: "app"
namespace: release.namespace
}
spec: {
interval: "1m"
- path: "./"
+ path: "./"
sourceRef: {
- kind: "GitRepository"
- name: "app"
+ kind: "GitRepository"
+ name: "app"
namespace: release.namespace
}
prune: true
@@ -38,31 +38,31 @@
}
"config-secret": {
apiVersion: "v1"
- kind: "Secret"
- type: "Opaque"
+ kind: "Secret"
+ type: "Opaque"
metadata: {
- name: "app"
+ name: "app"
namespace: release.namespace
}
data: {
- identity: base64.Encode(null, input.fluxKeys.private)
+ identity: base64.Encode(null, input.fluxKeys.private)
"identity.pub": base64.Encode(null, input.fluxKeys.public)
- known_hosts: base64.Encode(null, "\(input.repoHost) \(input.gitRepoPublicKey)")
+ known_hosts: base64.Encode(null, "\(input.repoHost) \(input.gitRepoPublicKey)")
}
}
"config-source": {
apiVersion: "source.toolkit.fluxcd.io/v1"
- kind: "GitRepository"
+ kind: "GitRepository"
metadata: {
- name: "app"
+ name: "app"
namespace: release.namespace
}
spec: {
interval: "1m0s"
- ref: branch: input.branch
+ ref: branch: input.branch
secretRef: name: "app"
timeout: "60s"
- url: input.repoAddr
+ url: input.repoAddr
}
}
}