forked from devspace-sh/devspace
-
Notifications
You must be signed in to change notification settings - Fork 1
/
devspace-schema.json
2462 lines (2462 loc) · 91.8 KB
/
devspace-schema.json
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/loft-sh/devspace/pkg/devspace/config/versions/latest/config",
"$defs": {
"Attach": {
"properties": {
"enabled": {
"type": "boolean",
"description": "Enabled can be used to enable attaching to a container"
},
"disableReplace": {
"type": "boolean",
"description": "DisableReplace prevents DevSpace from actually replacing the pod with modifications so that\nthe pod starts up correctly."
},
"disableTTY": {
"type": "boolean",
"description": "DisableTTY is used to tell DevSpace to not use a TTY connection for attaching"
}
},
"type": "object"
},
"BandwidthLimits": {
"properties": {
"download": {
"type": "integer",
"description": "Download is the download limit in kilo bytes per second"
},
"upload": {
"type": "integer",
"description": "Upload is the upload limit in kilo bytes per second"
}
},
"type": "object",
"description": "BandwidthLimits defines the struct for specifying the sync bandwidth limits"
},
"BuildKitConfig": {
"properties": {
"inCluster": {
"$ref": "#/$defs/BuildKitInClusterConfig",
"description": "InCluster if specified, DevSpace will use BuildKit to build the image within the cluster"
},
"preferMinikube": {
"type": "boolean",
"description": "PreferMinikube if false, will not try to use the minikube docker daemon to build the image"
},
"args": {
"items": {
"type": "string"
},
"type": "array",
"description": "Args are additional arguments to call docker buildx build with"
},
"command": {
"items": {
"type": "string"
},
"type": "array",
"description": "Command to override the base command to create a builder and build images. Defaults to [\"docker\", \"buildx\"]"
}
},
"type": "object",
"description": "BuildKitConfig tells the DevSpace CLI to"
},
"BuildKitInClusterConfig": {
"properties": {
"name": {
"type": "string",
"description": "Name is the name of the builder to use. If omitted, DevSpace will try to create\nor reuse a builder in the form devspace-$NAMESPACE"
},
"namespace": {
"type": "string",
"description": "Namespace where to create the builder deployment in. Defaults to the current\nactive namespace."
},
"rootless": {
"type": "boolean",
"description": "Rootless if enabled will create a rootless builder deployment."
},
"image": {
"type": "string",
"description": "Image is the docker image to use for the BuildKit deployment"
},
"nodeSelector": {
"type": "string",
"description": "NodeSelector is the node selector to use for the BuildKit deployment"
},
"noCreate": {
"type": "boolean",
"description": "NoCreate. By default, DevSpace will try to create a new builder if it cannot be found.\nIf this is true, DevSpace will fail if the specified builder cannot be found."
},
"noRecreate": {
"type": "boolean",
"description": "NoRecreate. By default, DevSpace will try to recreate the builder if the builder configuration\nin the devspace.yaml differs from the actual builder configuration. If this is\ntrue, DevSpace will not try to do that."
},
"noLoad": {
"type": "boolean",
"description": "NoLoad if enabled, DevSpace will not try to load the built image into the local docker\ndaemon if skip push is defined"
},
"createArgs": {
"items": {
"type": "string"
},
"type": "array",
"description": "CreateArgs are additional args to create the builder with."
}
},
"type": "object",
"description": "BuildKitInClusterConfig holds the buildkit builder config"
},
"ChartConfig": {
"properties": {
"name": {
"type": "string",
"description": "Name is the name of the helm chart to deploy. Can also be a local path or an oci url",
"group": "repo",
"group_name": "Source: Helm Repository"
},
"version": {
"type": "string",
"description": "Version is the version of the helm chart to deploy",
"group": "repo"
},
"repo": {
"type": "string",
"description": "RepoURL is the url of the repo to deploy the chart from",
"group": "repo"
},
"username": {
"type": "string",
"description": "Username is the username to authenticate to the chart repo. When using an OCI chart, used for registry auth",
"group": "repo"
},
"password": {
"type": "string",
"description": "Password is the password to authenticate to the chart repo, When using an OCI chart, used for registry auth",
"group": "repo"
},
"path": {
"type": "string",
"description": "Path is the local path where DevSpace can find the artifact.\nThis option is mutually exclusive with the git option.",
"group": "path",
"group_name": "Source: Local Filesystem"
},
"git": {
"type": "string",
"description": "Git is the remote repository to download the artifact from. You can either use\nhttps projects or ssh projects here, but need to make sure git can pull the project.\nThis option is mutually exclusive with the path option.",
"group": "git",
"group_name": "Source: Git Repository"
},
"subPath": {
"type": "string",
"description": "SubPath is a path within the git repository where the artifact lies in",
"group": "git"
},
"branch": {
"type": "string",
"description": "Branch is the git branch to pull",
"group": "git"
},
"tag": {
"type": "string",
"description": "Tag is the tag to pull",
"group": "git"
},
"revision": {
"type": "string",
"description": "Revision is the git revision to pull",
"group": "git"
},
"cloneArgs": {
"items": {
"type": "string"
},
"type": "array",
"description": "CloneArgs are additional arguments that should be supplied to the git CLI",
"group": "git"
},
"disableShallow": {
"type": "boolean",
"description": "DisableShallow can be used to turn off shallow clones as these are the default used\nby devspace",
"group": "git"
},
"disablePull": {
"type": "boolean",
"description": "DisablePull will disable pulling every time DevSpace is reevaluating this source",
"group": "git"
}
},
"type": "object",
"description": "ChartConfig defines the helm chart options"
},
"CommandConfig": {
"properties": {
"name": {
"type": "string",
"description": "Name is the name of a command that is used via `devspace run NAME`"
},
"section": {
"type": "string",
"description": "Section can be used to group similar commands together in `devspace list commands`"
},
"command": {
"type": "string",
"description": "Command is the command that should be executed. For example: 'echo 123'"
},
"args": {
"items": {
"type": "string"
},
"type": "array",
"description": "Args are optional and if defined, command is not executed within a shell\nand rather directly."
},
"appendArgs": {
"type": "boolean",
"description": "AppendArgs will append arguments passed to the DevSpace command automatically to\nthe specified command."
},
"description": {
"type": "string",
"description": "Description describes what the command is doing and can be seen in `devspace list commands`"
},
"internal": {
"type": "boolean",
"description": "Internal commands are not show in list and are usable through run_command"
},
"after": {
"type": "string",
"description": "After is executed after the command was run. It is executed also when\nthe command was interrupted which will set the env variable COMMAND_INTERRUPT\nto true as well as when the command errored which will set the error string to\nCOMMAND_ERROR."
}
},
"type": "object",
"required": [
"command"
],
"description": "CommandConfig defines the command specification"
},
"CustomConfig": {
"properties": {
"command": {
"type": "string",
"description": "Command to execute to build the image. You can use ${runtime.images.my-image.image} and ${runtime.image.my-image.tag}\nto reference the image and tag that should get built."
},
"onChange": {
"items": {
"type": "string"
},
"type": "array",
"description": "OnChange will determine when the command should be rerun"
}
},
"type": "object",
"description": "CustomConfig tells the DevSpace CLI to build with a custom build script"
},
"DependencyConfig": {
"properties": {
"name": {
"type": "string",
"description": "Name is used internally"
},
"disabled": {
"type": "boolean",
"description": "Disabled excludes this dependency from variable resolution and pipeline runs"
},
"path": {
"type": "string",
"description": "Path is the local path where DevSpace can find the artifact.\nThis option is mutually exclusive with the git option.",
"group": "path",
"group_name": "Source: Local Filesystem"
},
"git": {
"type": "string",
"description": "Git is the remote repository to download the artifact from. You can either use\nhttps projects or ssh projects here, but need to make sure git can pull the project.\nThis option is mutually exclusive with the path option.",
"group": "git",
"group_name": "Source: Git Repository"
},
"subPath": {
"type": "string",
"description": "SubPath is a path within the git repository where the artifact lies in",
"group": "git"
},
"branch": {
"type": "string",
"description": "Branch is the git branch to pull",
"group": "git"
},
"tag": {
"type": "string",
"description": "Tag is the tag to pull",
"group": "git"
},
"revision": {
"type": "string",
"description": "Revision is the git revision to pull",
"group": "git"
},
"cloneArgs": {
"items": {
"type": "string"
},
"type": "array",
"description": "CloneArgs are additional arguments that should be supplied to the git CLI",
"group": "git"
},
"disableShallow": {
"type": "boolean",
"description": "DisableShallow can be used to turn off shallow clones as these are the default used\nby devspace",
"group": "git"
},
"disablePull": {
"type": "boolean",
"description": "DisablePull will disable pulling every time DevSpace is reevaluating this source",
"group": "git"
},
"pipeline": {
"type": "string",
"description": "Pipeline is the pipeline to deploy by default. Defaults to 'deploy'",
"default": "deploy",
"group": "execution",
"group_name": "Execution"
},
"vars": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "Vars are variables that should be passed to the dependency",
"group": "execution"
},
"overwriteVars": {
"type": "boolean",
"description": "OverwriteVars specifies if DevSpace should pass the parent variables to the dependency",
"group": "execution"
},
"ignoreDependencies": {
"type": "boolean",
"description": "IgnoreDependencies defines if dependencies of the dependency should be excluded",
"group": "execution"
},
"namespace": {
"type": "string",
"description": "Namespace specifies the namespace this dependency should be deployed to",
"group": "execution"
}
},
"type": "object",
"description": "DependencyConfig defines the devspace dependency"
},
"DeploymentConfig": {
"properties": {
"name": {
"type": "string",
"description": "Name of the deployment"
},
"helm": {
"$ref": "#/$defs/HelmConfig",
"description": "Helm tells DevSpace to deploy this deployment via helm"
},
"kubectl": {
"$ref": "#/$defs/KubectlConfig",
"description": "Kubectl tells DevSpace to deploy this deployment via kubectl or kustomize"
},
"tanka": {
"$ref": "#/$defs/TankaConfig",
"description": "Tanka tells DevSpace to deployment via Tanka"
},
"updateImageTags": {
"type": "boolean",
"description": "UpdateImageTags lets you define if DevSpace should update the tags of the images defined in the\nimages section with their most recent built tag.",
"default": true
},
"namespace": {
"type": "string",
"description": "Namespace where to deploy this deployment"
}
},
"type": "object",
"description": "DeploymentConfig defines the configuration how the devspace should be deployed"
},
"DevContainer": {
"properties": {
"container": {
"type": "string",
"description": "Container is the container name these services should get started.",
"group": "selector",
"group_name": "Selector"
},
"arch": {
"type": "string",
"description": "Target Container architecture to use for the devspacehelper (currently amd64 or arm64). Defaults to amd64, but\ndevspace tries to find out the architecture by itself by looking at the node this container runs on.",
"group": "selector"
},
"devImage": {
"type": "string",
"description": "DevImage is the image to use for this container and will replace the existing image\nif necessary.",
"group": "modifications",
"group_name": "Modifications"
},
"command": {
"items": {
"type": "string"
},
"type": "array",
"description": "Command can be used to override the entrypoint of the container",
"group": "modifications"
},
"args": {
"items": {
"type": "string"
},
"type": "array",
"description": "Args can be used to override the args of the container",
"group": "modifications"
},
"workingDir": {
"type": "string",
"description": "WorkingDir can be used to override the working dir of the container",
"group": "modifications"
},
"env": {
"items": {
"$ref": "#/$defs/EnvVar"
},
"type": "array",
"description": "Env can be used to add environment variables to the container. DevSpace will\nnot replace existing environment variables if an environment variable is defined here.",
"group": "modifications"
},
"resources": {
"$ref": "#/$defs/PodResources",
"description": "Resources can be used to override the resource definitions of the container",
"group": "modifications"
},
"reversePorts": {
"items": {
"$ref": "#/$defs/PortMapping"
},
"type": "array",
"description": "ReversePorts are port mappings to make local ports available inside the container",
"group": "ports",
"group_name": "Port Forwarding"
},
"sync": {
"items": {
"$ref": "#/$defs/SyncConfig"
},
"type": "array",
"description": "Sync allows you to sync certain local paths with paths inside the container",
"group": "sync",
"group_name": "File Sync"
},
"persistPaths": {
"items": {
"$ref": "#/$defs/PersistentPath"
},
"type": "array",
"description": "PersistPaths allows you to persist certain paths within this container with a persistent volume claim"
},
"terminal": {
"$ref": "#/$defs/Terminal",
"description": "Terminal allows you to tell DevSpace to open a terminal with screen support to this container",
"group": "workflows",
"group_name": "Foreground Dev Workflows"
},
"logs": {
"$ref": "#/$defs/Logs",
"description": "Logs allows you to tell DevSpace to stream logs from this container to the console",
"group": "workflows"
},
"attach": {
"$ref": "#/$defs/Attach",
"description": "Attach allows you to tell DevSpace to attach to this container",
"group": "workflows"
},
"ssh": {
"$ref": "#/$defs/SSH",
"description": "SSH allows you to create an SSH tunnel to this container"
},
"proxyCommands": {
"items": {
"$ref": "#/$defs/ProxyCommand"
},
"type": "array",
"description": "ProxyCommands allow you to proxy certain local commands to the container",
"group": "workflows_background"
},
"restartHelper": {
"$ref": "#/$defs/RestartHelper",
"description": "RestartHelper holds restart helper specific configuration. The restart helper is used to delay starting of\nthe container and restarting it and is injected via an annotation in the replaced pod.",
"group": "workflows_background"
}
},
"type": "object",
"description": "DevContainer holds options for dev services that should get started within a certain container of the selected pod"
},
"DevPod": {
"properties": {
"name": {
"type": "string",
"description": "Name of the dev configuration"
},
"imageSelector": {
"type": "string",
"description": "ImageSelector to select a pod",
"group": "selector"
},
"labelSelector": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "LabelSelector to select a pod",
"group": "selector"
},
"namespace": {
"type": "string",
"description": "Namespace where to select the pod",
"group": "selector"
},
"container": {
"type": "string",
"description": "Container is the container name these services should get started.",
"group": "selector",
"group_name": "Selector"
},
"arch": {
"type": "string",
"description": "Target Container architecture to use for the devspacehelper (currently amd64 or arm64). Defaults to amd64, but\ndevspace tries to find out the architecture by itself by looking at the node this container runs on.",
"group": "selector"
},
"devImage": {
"type": "string",
"description": "DevImage is the image to use for this container and will replace the existing image\nif necessary.",
"group": "modifications",
"group_name": "Modifications"
},
"command": {
"items": {
"type": "string"
},
"type": "array",
"description": "Command can be used to override the entrypoint of the container",
"group": "modifications"
},
"args": {
"items": {
"type": "string"
},
"type": "array",
"description": "Args can be used to override the args of the container",
"group": "modifications"
},
"workingDir": {
"type": "string",
"description": "WorkingDir can be used to override the working dir of the container",
"group": "modifications"
},
"env": {
"items": {
"$ref": "#/$defs/EnvVar"
},
"type": "array",
"description": "Env can be used to add environment variables to the container. DevSpace will\nnot replace existing environment variables if an environment variable is defined here.",
"group": "modifications"
},
"resources": {
"$ref": "#/$defs/PodResources",
"description": "Resources can be used to override the resource definitions of the container",
"group": "modifications"
},
"reversePorts": {
"items": {
"$ref": "#/$defs/PortMapping"
},
"type": "array",
"description": "ReversePorts are port mappings to make local ports available inside the container",
"group": "ports",
"group_name": "Port Forwarding"
},
"sync": {
"items": {
"$ref": "#/$defs/SyncConfig"
},
"type": "array",
"description": "Sync allows you to sync certain local paths with paths inside the container",
"group": "sync",
"group_name": "File Sync"
},
"persistPaths": {
"items": {
"$ref": "#/$defs/PersistentPath"
},
"type": "array",
"description": "PersistPaths allows you to persist certain paths within this container with a persistent volume claim"
},
"terminal": {
"$ref": "#/$defs/Terminal",
"description": "Terminal allows you to tell DevSpace to open a terminal with screen support to this container",
"group": "workflows",
"group_name": "Foreground Dev Workflows"
},
"logs": {
"$ref": "#/$defs/Logs",
"description": "Logs allows you to tell DevSpace to stream logs from this container to the console",
"group": "workflows"
},
"attach": {
"$ref": "#/$defs/Attach",
"description": "Attach allows you to tell DevSpace to attach to this container",
"group": "workflows"
},
"ssh": {
"$ref": "#/$defs/SSH",
"description": "SSH allows you to create an SSH tunnel to this container"
},
"proxyCommands": {
"items": {
"$ref": "#/$defs/ProxyCommand"
},
"type": "array",
"description": "ProxyCommands allow you to proxy certain local commands to the container",
"group": "workflows_background"
},
"restartHelper": {
"$ref": "#/$defs/RestartHelper",
"description": "RestartHelper holds restart helper specific configuration. The restart helper is used to delay starting of\nthe container and restarting it and is injected via an annotation in the replaced pod.",
"group": "workflows_background"
},
"ports": {
"items": {
"$ref": "#/$defs/PortMapping"
},
"type": "array",
"description": "Ports defines port mappings from the remote pod that should be forwarded to your local\ncomputer",
"group": "ports"
},
"persistenceOptions": {
"$ref": "#/$defs/PersistenceOptions",
"description": "PersistenceOptions are additional options for persisting paths within this pod",
"group": "modifications"
},
"patches": {
"items": {
"$ref": "#/$defs/PatchConfig"
},
"type": "array",
"description": "Patches are additional changes to the pod spec that should be applied",
"group": "modifications"
},
"open": {
"items": {
"$ref": "#/$defs/OpenConfig"
},
"type": "array",
"description": "Open defines urls that should be opened as soon as they are reachable",
"group": "workflows_background",
"group_name": "Background Dev Workflows"
},
"containers": {
"patternProperties": {
".*": {
"$ref": "#/$defs/DevContainer"
}
},
"type": "object",
"group": "selector"
}
},
"type": "object",
"description": "DevPod holds configurations for selecting a pod and starting dev services for that pod"
},
"DockerConfig": {
"properties": {
"disableFallback": {
"type": "boolean",
"description": "DisableFallback allows you to turn off kaniko building if docker isn't installed"
},
"preferMinikube": {
"type": "boolean",
"description": "PreferMinikube allows you to turn off using the minikube docker daemon if the minikube\ncontext is used."
},
"useCli": {
"type": "boolean",
"description": "UseCLI specifies if DevSpace should use the docker cli for building"
},
"args": {
"items": {
"type": "string"
},
"type": "array",
"description": "Args are additional arguments to pass to the docker cli"
}
},
"type": "object",
"description": "DockerConfig tells the DevSpace CLI to build with Docker on Minikube or on localhost"
},
"EnvVar": {
"properties": {
"name": {
"type": "string",
"description": "Name of the environment variable"
},
"value": {
"type": "string",
"description": "Value of the environment variable"
}
},
"type": "object",
"required": [
"name",
"value"
]
},
"HelmConfig": {
"properties": {
"releaseName": {
"type": "string",
"description": "ReleaseName of the helm configuration"
},
"chart": {
"$ref": "#/$defs/ChartConfig",
"description": "Chart holds the chart configuration and where DevSpace can find the chart"
},
"values": {
"type": "object",
"description": "Values are additional values that should get passed to deploying this chart"
},
"valuesFiles": {
"items": {
"type": "string"
},
"type": "array",
"description": "ValuesFiles are additional files that hold values for deploying this chart"
},
"displayOutput": {
"type": "boolean",
"description": "DisplayOutput allows you to display the helm output to the console"
},
"upgradeArgs": {
"items": {
"type": "string"
},
"type": "array",
"description": "UpgradeArgs are additional arguments to pass to `helm upgrade`"
},
"templateArgs": {
"items": {
"type": "string"
},
"type": "array",
"description": "TemplateArgs are additional arguments to pass to `helm template`"
},
"disableDependencyUpdate": {
"type": "boolean",
"description": "DisableDependencyUpdate disables helm dependencies update, default to false"
}
},
"type": "object",
"description": "HelmConfig defines the specific helm options used during deployment"
},
"HookConfig": {
"properties": {
"name": {
"type": "string",
"description": "Name is the name of the hook"
},
"disabled": {
"type": "boolean",
"description": "Disabled can be used to disable the hook"
},
"events": {
"items": {
"type": "string"
},
"type": "array",
"description": "Events are the events when the hook should be executed"
},
"command": {
"type": "string",
"description": "Command is the base command that is either executed locally or in a remote container.\nCommand is mutually exclusive with other hook actions. In the case this is defined\ntogether with where.container, DevSpace will until the target container is running and\nonly then execute the command. If the container does not start in time, DevSpace will fail."
},
"args": {
"items": {
"type": "string"
},
"type": "array",
"description": "Args are additional arguments passed together with the command to execute."
},
"os": {
"type": "string",
"description": "If an operating system is defined, the hook will only be executed for the given os.\nAll supported golang OS types are supported and multiple can be combined with ','."
},
"upload": {
"$ref": "#/$defs/HookSyncConfig",
"description": "If Upload is specified, DevSpace will upload certain local files or folders into a\nremote container."
},
"download": {
"$ref": "#/$defs/HookSyncConfig",
"description": "Same as Upload, but with this option DevSpace will download files or folders from\na remote container."
},
"logs": {
"$ref": "#/$defs/HookLogsConfig",
"description": "If logs is defined will print the logs of the target container. This is useful for containers\nthat should finish like init containers or job pods. Otherwise this hook will never terminate."
},
"wait": {
"$ref": "#/$defs/HookWaitConfig",
"description": "If wait is defined the hook will wait until the matched pod or container is running or is terminated\nwith a certain exit code."
},
"background": {
"type": "boolean",
"description": "If true, the hook will be executed in the background."
},
"silent": {
"type": "boolean",
"description": "If true, the hook will not output anything to the standard out of DevSpace except\nfor the case when the hook fails, where DevSpace will show the error including\nthe captured output streams of the hook."
},
"container": {
"$ref": "#/$defs/HookContainer",
"description": "Container specifies where the hook should be run. If this is omitted DevSpace expects a\nlocal command hook."
}
},
"type": "object",
"required": [
"events"
],
"description": "HookConfig defines a hook"
},
"HookContainer": {
"properties": {
"labelSelector": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "LabelSelector to select a container"
},
"pod": {
"type": "string",
"description": "Pod name to use"
},
"namespace": {
"type": "string",
"description": "Namespace to use"
},
"imageSelector": {
"type": "string",
"description": "ImageSelector to select a container"
},
"containerName": {
"type": "string",
"description": "ContainerName to use"
},
"wait": {
"type": "boolean",
"description": "Wait can be used to disable waiting"
},
"timeout": {
"type": "integer",
"description": "Timeout is how long to wait (in seconds) for the container to start. Default is 150 seconds.",
"default": 150
},
"once": {
"type": "boolean",
"description": "Once only executes an hook once in the container until it is restarted"
}
},
"type": "object",
"description": "HookContainer defines how to select one or more containers to execute a hook in"
},
"HookLogsConfig": {
"properties": {
"tailLines": {
"type": "integer",
"description": "If set, the number of lines from the end of the logs to show. If not specified,\nlogs are shown from the creation of the container"
}
},
"type": "object",
"description": "HookLogsConfig defines a hook logs config"
},
"HookSyncConfig": {
"properties": {
"localPath": {
"type": "string",
"description": "LocalPath to sync files from"
},
"containerPath": {
"type": "string",
"description": "ContainerPath to sync files to"
}
},
"type": "object",
"description": "HookSyncConfig defines a hook upload config"
},
"HookWaitConfig": {
"properties": {
"running": {
"type": "boolean",
"description": "If running is true, will wait until the matched containers are running. Can be used together with terminatedWithCode."
},
"terminatedWithCode": {
"type": "integer",
"description": "If terminatedWithCode is not nil, will wait until the matched containers are terminated with the given exit code.\nIf the container has exited with a different exit code, the hook will fail. Can be used together with running."
},
"timeout": {
"type": "integer",
"description": "The amount of seconds to wait until the hook will fail. Defaults to 150 seconds."
}
},
"type": "object",
"description": "HookWaitConfig defines a hook wait config"
},
"Image": {
"properties": {
"name": {
"type": "string",
"description": "Name of the image, will be filled automatically"
},
"image": {
"type": "string",
"description": "Image is the complete image name including registry and repository\nfor example myregistry.com/mynamespace/myimage"
},
"tags": {
"items": {
"type": "string"
},
"type": "array",
"description": "Tags is an array that specifies all tags that should be build during\nthe build process. If this is empty, devspace will generate a random tag"
},
"dockerfile": {
"type": "string",
"description": "Dockerfile specifies a path (relative or absolute) to the dockerfile. Defaults to ./Dockerfile.",
"default": "./Dockerfile",
"group": "buildConfig"
},
"context": {
"type": "string",
"description": "Context is the context path to build with. Defaults to the current working directory",
"default": "./",
"group": "buildConfig"
},
"entrypoint": {
"items": {
"type": "string"
},
"type": "array",
"description": "Entrypoint specifies an entrypoint that will be appended to the dockerfile during\nimage build in memory. Example: [\"sleep\", \"99999\"]",
"group": "overwrites",
"group_name": "In-Memory Overwrites"
},
"cmd": {
"items": {
"type": "string"
},
"type": "array",
"description": "Cmd specifies the arguments for the entrypoint that will be appended\nduring build in memory to the dockerfile",
"group": "overwrites"
},
"appendDockerfileInstructions": {
"items": {
"type": "string"
},
"type": "array",
"description": "AppendDockerfileInstructions are instructions that will be appended to the Dockerfile that is build\nat the current build target and are appended before the entrypoint and cmd instructions",
"group": "overwrites"
},
"buildArgs": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object",
"description": "BuildArgs are the build args that are to the build",
"group": "buildConfig",
"group_name": "Build Configuration"
},
"target": {
"type": "string",
"description": "Target is the target that should get used during the build. Only works if the dockerfile supports this",
"group": "buildConfig"
},
"network": {
"type": "string",
"description": "Network is the network that should get used to build the image",
"group": "buildConfig"
},
"rebuildStrategy": {
"type": "string",
"enum": [
"default",
"always",
"ignoreContextChanges"
],
"description": "RebuildStrategy is used to determine when DevSpace should rebuild an image. By default, devspace will\nrebuild an image if one of the following conditions is true:\n- The dockerfile has changed\n- The configuration within the devspace.yaml for the image has changed\n- A file within the docker context (excluding .dockerignore rules) has changed\nThis option is ignored for custom builds.",
"group": "buildConfig"
},
"skipPush": {
"type": "boolean",