File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 55
55
- name : api
56
56
image : {{ .Values.backend_image }}
57
57
imagePullPolicy : {{ .Values.backend_pull_policy }}
58
- {{- if .Values.backend_api_command_override }}
58
+ {{- if .Values.skaffold_dev }}
59
59
command :
60
60
{{- range .Values.backend_api_command_override }}
61
61
- {{ . | quote }}
@@ -147,7 +147,7 @@ spec:
147
147
- name : op
148
148
image : {{ .Values.backend_image }}
149
149
imagePullPolicy : {{ .Values.backend_pull_policy }}
150
- {{- if .Values.backend_op_command_override }}
150
+ {{- if .Values.skaffold_dev }}
151
151
command :
152
152
{{- range .Values.backend_op_command_override }}
153
153
- {{ . | quote }}
@@ -198,6 +198,7 @@ spec:
198
198
cpu : {{ .Values.backend_cpu }}
199
199
memory : {{ .Values.backend_memory }}
200
200
201
+ {{- if not (.Values.skaffold_dev) }}
201
202
startupProbe :
202
203
httpGet :
203
204
path : /healthz
@@ -206,6 +207,7 @@ spec:
206
207
periodSeconds : 5
207
208
failureThreshold : 5
208
209
successThreshold : 1
210
+ {{- end }}
209
211
210
212
readinessProbe :
211
213
httpGet :
@@ -216,6 +218,7 @@ spec:
216
218
failureThreshold : 5
217
219
successThreshold : 1
218
220
221
+ {{- if not (.Values.skaffold_dev) }}
219
222
livenessProbe :
220
223
httpGet :
221
224
path : /healthz
@@ -224,7 +227,7 @@ spec:
224
227
periodSeconds : 30
225
228
failureThreshold : 15
226
229
successThreshold : 1
227
-
230
+ {{- end }}
228
231
229
232
230
233
---
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ deploy:
55
55
# we hardcoded this earlier so make sure it has same value
56
56
# across the helm chart
57
57
opPort : 8756
58
+ # we need to override some settings for skaffold dev
59
+ skaffold_dev : true
58
60
# hot reloading doesn't work with default gunicorn command
59
61
# so need to override to use uvicorn
60
62
# plus need to start the process with debugpy to debug
@@ -64,7 +66,7 @@ deploy:
64
66
- >
65
67
pip install --no-input debugpy
66
68
&&
67
- python -m debugpy --listen 0.0.0.0:5678
69
+ python -Xfrozen_modules=off - m debugpy --listen 0.0.0.0:5678
68
70
-m uvicorn btrixcloud.main:app_root
69
71
--reload --host 0.0.0.0 --port 8000
70
72
backend_op_command_override :
@@ -73,6 +75,6 @@ deploy:
73
75
- >
74
76
pip install --no-input debugpy
75
77
&&
76
- python -m debugpy --listen 0.0.0.0:5679
78
+ python -Xfrozen_modules=off - m debugpy --listen 0.0.0.0:5679
77
79
-m uvicorn btrixcloud.main_op:app_root
78
80
--reload --host 0.0.0.0 --port 8756
You can’t perform that action at this time.
0 commit comments