-
Notifications
You must be signed in to change notification settings - Fork 0
/
devspace.yaml
49 lines (44 loc) · 1.11 KB
/
devspace.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: v2beta1
name: edgenetwork-operator
functions:
wait_for: |-
#!/bin/bash
set -e
echo "wait for $1 $2 (ns: $3) for condition=$4"
until kubectl wait --for=condition=$4 $1 $2 -n $3 --timeout=60s 2>/dev/null; do echo -n "." && sleep 2; done
deployments:
metacontroller:
kubectl:
kustomize: true
manifests:
- https://github.com/metacontroller/metacontroller/manifests/production
controller:
kubectl:
manifests:
- manifests/**/
pipelines:
deploy: |-
#!/bin/bash
set -e
create_deployments metacontroller
wait_for pod "-l app.kubernetes.io/name=metacontroller" metacontroller Ready
create_deployments controller
dev:
controller:
labelSelector:
app: edgenetwork-operator
devImage: ghcr.io/loft-sh/devspace-containers/go:1.20-alpine
namespace: metacontroller
terminal: {}
ports:
- port: "2345"
- port: "8080"
sync:
- path: ./:/app
excludePaths:
- .git
patches:
- op: remove
path: spec.securityContext
- op: remove
path: spec.containers[0].resources