Skip to content

Commit a5c815b

Browse files
authored
chore(foundry): configures deployment (#162)
1 parent 27253c7 commit a5c815b

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed

foundry/operator/blueprint.cue

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,105 @@
1+
import "encoding/json"
2+
13
version: "1.0"
24
project: {
35
name: "foundry-operator"
6+
7+
deployment: {
8+
on: {
9+
merge: {}
10+
tag: {}
11+
}
12+
13+
bundle: {
14+
env: "shared-services"
15+
modules: {
16+
crd: {
17+
name: "crd"
18+
registry: "https://github.com/input-output-hk/catalyst-forge"
19+
type: "git"
20+
values: {
21+
paths: [
22+
"foundry/operator/config/crd/bases/foundry.projectcatalyst.io_releasedeployments.yaml",
23+
]
24+
}
25+
version: _ @forge(name="GIT_HASH_OR_TAG")
26+
}
27+
28+
main: {
29+
name: "app"
30+
version: "0.5.0"
31+
values: {
32+
deployment: containers: main: {
33+
image: {
34+
name: _ @forge(name="CONTAINER_IMAGE")
35+
tag: _ @forge(name="GIT_HASH_OR_TAG")
36+
}
37+
38+
env: {
39+
"CONFIG_PATH": {
40+
value: "/config/operator.json"
41+
}
42+
"NAMESPACE": {
43+
value: "default"
44+
}
45+
}
46+
47+
mounts: {
48+
config: {
49+
ref: config: name: "config"
50+
path: "/config"
51+
}
52+
}
53+
54+
// probes: {
55+
// liveness: path: "/healthz"
56+
// readiness: path: "/healthz"
57+
// }
58+
}
59+
60+
configs: config: data: "operator.json": json.Marshal({
61+
api_url: "http://foundry-api:8080"
62+
deployer: {
63+
git: {
64+
creds: {
65+
provider: "aws"
66+
path: "global/ci/deploy"
67+
}
68+
ref: "master"
69+
url: "https://github.com/input-output-hk/catalyst-world"
70+
}
71+
root_dir: "k8s"
72+
}
73+
max_attempts: 3
74+
})
75+
76+
serviceAccount: {
77+
create: false
78+
name: "foundry-operator"
79+
roles: rbac: rules: [
80+
{
81+
apiGroups: ["foundry.projectcatalyst.io"]
82+
resources: ["releasedeployments"]
83+
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]
84+
},
85+
{
86+
apiGroups: ["foundry.projectcatalyst.io"]
87+
resources: ["releasedeployments/finalizers"]
88+
verbs: ["update"]
89+
},
90+
{
91+
apiGroups: ["foundry.projectcatalyst.io"]
92+
resources: ["releasedeployments/status"]
93+
verbs: ["get", "patch", "update"]
94+
},
95+
]
96+
}
97+
}
98+
}
99+
}
100+
}
101+
}
102+
4103
release: {
5104
docker: {
6105
on: {

0 commit comments

Comments
 (0)