-
Notifications
You must be signed in to change notification settings - Fork 36
/
devspace.yaml
62 lines (62 loc) · 1.4 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
50
51
52
53
54
55
56
57
58
59
60
61
62
version: v1beta10
vars:
- name: IMAGE
value: loftsh/jspolicy
images:
controller:
image: ${IMAGE}
rebuildStrategy: ignoreContextChanges
build:
buildKit:
skipPush: true
options:
target: builder
deployments:
- name: jspolicy
helm:
chart:
name: ./chart
values:
image: ${IMAGE}
dev:
replacePods:
- imageSelector: ${IMAGE}
patches:
- op: remove
path: spec.containers[0].resources
- op: remove
path: spec.containers[0].readinessProbe
- op: remove
path: spec.containers[0].securityContext
- op: remove
path: spec.containers[0].livenessProbe
- op: replace
path: spec.containers[0].command
value: ["sleep"]
- op: replace
path: spec.containers[0].args
value: ["99999999999"]
terminal:
imageSelector: ${IMAGE}
sync:
- imageSelector: ${IMAGE}
excludePaths:
- '**'
- '!/cmd'
- '!/pkg'
- '!/hack'
- '!/vendor'
- '!/go.mod'
- '!/go.sum'
commands:
- name: dev
command: "devspace dev -n jspolicy"
- name: deploy
command: "devspace deploy -n jspolicy -d --profile deploy"
profiles:
- name: deploy
patches:
- op: remove
path: images.controller.build
- op: remove
path: images.controller.rebuildStrategy