-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathdevspace.yaml
More file actions
133 lines (129 loc) · 4.54 KB
/
devspace.yaml
File metadata and controls
133 lines (129 loc) · 4.54 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: v2beta1
name: ncx-infra-controller-core
vars:
LOCAL_DEV_NAMESPACE:
source: env
default: forge-system
LOCAL_DEV_CERT_ISSUER_KIND:
source: env
default: Issuer
LOCAL_DEV_CERT_ISSUER_NAME:
source: env
default: local-ca-issuer
LOCAL_DEV_CERT_ISSUER_GROUP:
source: env
default: cert-manager.io
images:
carbide-api:
image: carbide-api
custom:
command: |-
docker image inspect build-container-localdev >/dev/null 2>&1 || docker build --pull=false -t build-container-localdev -f dev/docker/Dockerfile.build-container-x86_64 .
docker build -t ${runtime.images.carbide-api.image}:${runtime.images.carbide-api.tag} -f dev/deployment/devspace/Dockerfile.api .
onChange:
- .dockerignore
- Cargo.toml
- Cargo.lock
- rust-toolchain.toml
- .cargo
- crates
- include
- dev/docker/Dockerfile.build-container-x86_64
- dev/deployment/devspace/Dockerfile.api
- pxe/templates
- pxe/static/blobs/internal/aarch64/secure-boot-pk.pem
carbide-bmc-proxy:
image: carbide-bmc-proxy
custom:
command: |-
docker image inspect build-container-localdev >/dev/null 2>&1 || docker build --pull=false -t build-container-localdev -f dev/docker/Dockerfile.build-container-x86_64 .
docker build -t ${runtime.images.carbide-bmc-proxy.image}:${runtime.images.carbide-bmc-proxy.tag} -f dev/deployment/devspace/Dockerfile.bmc-proxy .
onChange:
- .dockerignore
- Cargo.toml
- Cargo.lock
- rust-toolchain.toml
- .cargo
- crates
- dev/docker/Dockerfile.build-container-x86_64
- dev/deployment/devspace/Dockerfile.bmc-proxy
machine-a-tron:
image: machine-a-tron
custom:
command: |-
docker image inspect build-container-localdev >/dev/null 2>&1 || docker build --pull=false -t build-container-localdev -f dev/docker/Dockerfile.build-container-x86_64 .
docker build -t ${runtime.images.machine-a-tron.image}:${runtime.images.machine-a-tron.tag} -f dev/deployment/devspace/Dockerfile.machine-a-tron .
onChange:
- .dockerignore
- Cargo.toml
- Cargo.lock
- rust-toolchain.toml
- .cargo
- crates
- include
- dev/docker/Dockerfile.build-container-x86_64
- dev/deployment/devspace/Dockerfile.machine-a-tron
deployments:
carbide-local:
namespace: ${LOCAL_DEV_NAMESPACE}
updateImageTags: false
helm:
chart:
path: ./helm
values:
global:
image:
repository: ${runtime.images.carbide-api.image}
tag: ${runtime.images.carbide-api.tag}
pullPolicy: IfNotPresent
carbide-bmc-proxy:
image:
repository: ${runtime.images.carbide-bmc-proxy.image}
tag: ${runtime.images.carbide-bmc-proxy.tag}
pullPolicy: IfNotPresent
valuesFiles:
- dev/deployment/devspace/values.base.yaml
- dev/deployment/devspace/values.generated.yaml
machine-a-tron-local:
namespace: ${LOCAL_DEV_NAMESPACE}
updateImageTags: true
kubectl:
manifests:
- dev/deployment/devspace/machine-a-tron.yaml
patches:
- target:
apiVersion: cert-manager.io/v1
kind: Certificate
name: machine-a-tron-certificate
op: replace
path: spec.issuerRef.kind
value: ${LOCAL_DEV_CERT_ISSUER_KIND}
- target:
apiVersion: cert-manager.io/v1
kind: Certificate
name: machine-a-tron-certificate
op: replace
path: spec.issuerRef.name
value: ${LOCAL_DEV_CERT_ISSUER_NAME}
- target:
apiVersion: cert-manager.io/v1
kind: Certificate
name: machine-a-tron-certificate
op: replace
path: spec.issuerRef.group
value: ${LOCAL_DEV_CERT_ISSUER_GROUP}
hooks:
- name: load-images-into-local-cluster
events: ["before:deploy"]
command: |-
CONTEXT=$(kubectl config current-context 2>/dev/null || echo "")
case "$CONTEXT" in
kind-*)
echo "Loading images into kind cluster..."
kind load docker-image \
"${runtime.images.carbide-api.image}:${runtime.images.carbide-api.tag}" \
"${runtime.images.carbide-bmc-proxy.image}:${runtime.images.carbide-bmc-proxy.tag}" \
"${runtime.images.machine-a-tron.image}:${runtime.images.machine-a-tron.tag}"
;;
# Add new local K8s tools here
esac