Skip to content

Commit 937a762

Browse files
authored
add annotation to container spec and add validation to it (#661)
* add annotation to container spec and add validation to it Signed-off-by: Stephanie <[email protected]> * cleanup Signed-off-by: Stephanie <[email protected]> * move ingress/route annotation to endpoints Signed-off-by: Stephanie <[email protected]>
1 parent dabee4e commit 937a762

26 files changed

+2490
-16
lines changed

crds/workspace.devfile.io_devworkspaces.v1beta1.yaml

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,21 @@ spec:
335335
description: Allows adding and configuring devworkspace-related
336336
containers
337337
properties:
338+
annotation:
339+
description: Annotations that should be added to specific
340+
resources for this container
341+
properties:
342+
deployment:
343+
additionalProperties:
344+
type: string
345+
description: Annotations to be added to deployment
346+
type: object
347+
service:
348+
additionalProperties:
349+
type: string
350+
description: Annotations to be added to service
351+
type: object
352+
type: object
338353
args:
339354
description: "The arguments to supply to the command running
340355
the dockerimage component. The arguments are supplied
@@ -365,6 +380,12 @@ spec:
365380
endpoints:
366381
items:
367382
properties:
383+
annotation:
384+
additionalProperties:
385+
type: string
386+
description: Annotations to be added to Kubernetes
387+
Ingress or Openshift Route
388+
type: object
368389
attributes:
369390
description: "Map of implementation-dependant string-based
370391
free-form attributes. \n Examples of Che-specific
@@ -648,6 +669,12 @@ spec:
648669
endpoints:
649670
items:
650671
properties:
672+
annotation:
673+
additionalProperties:
674+
type: string
675+
description: Annotations to be added to Kubernetes
676+
Ingress or Openshift Route
677+
type: object
651678
attributes:
652679
description: "Map of implementation-dependant string-based
653680
free-form attributes. \n Examples of Che-specific
@@ -756,6 +783,12 @@ spec:
756783
endpoints:
757784
items:
758785
properties:
786+
annotation:
787+
additionalProperties:
788+
type: string
789+
description: Annotations to be added to Kubernetes
790+
Ingress or Openshift Route
791+
type: object
759792
attributes:
760793
description: "Map of implementation-dependant string-based
761794
free-form attributes. \n Examples of Che-specific
@@ -1082,6 +1115,23 @@ spec:
10821115
description: Allows adding and configuring devworkspace-related
10831116
containers
10841117
properties:
1118+
annotation:
1119+
description: Annotations that should be added
1120+
to specific resources for this container
1121+
properties:
1122+
deployment:
1123+
additionalProperties:
1124+
type: string
1125+
description: Annotations to be added to
1126+
deployment
1127+
type: object
1128+
service:
1129+
additionalProperties:
1130+
type: string
1131+
description: Annotations to be added to
1132+
service
1133+
type: object
1134+
type: object
10851135
args:
10861136
description: "The arguments to supply to the
10871137
command running the dockerimage component.
@@ -1113,6 +1163,12 @@ spec:
11131163
endpoints:
11141164
items:
11151165
properties:
1166+
annotation:
1167+
additionalProperties:
1168+
type: string
1169+
description: Annotations to be added to
1170+
Kubernetes Ingress or Openshift Route
1171+
type: object
11161172
attributes:
11171173
description: "Map of implementation-dependant
11181174
string-based free-form attributes. \n
@@ -1387,6 +1443,12 @@ spec:
13871443
endpoints:
13881444
items:
13891445
properties:
1446+
annotation:
1447+
additionalProperties:
1448+
type: string
1449+
description: Annotations to be added to
1450+
Kubernetes Ingress or Openshift Route
1451+
type: object
13901452
attributes:
13911453
description: "Map of implementation-dependant
13921454
string-based free-form attributes. \n
@@ -1505,6 +1567,12 @@ spec:
15051567
endpoints:
15061568
items:
15071569
properties:
1570+
annotation:
1571+
additionalProperties:
1572+
type: string
1573+
description: Annotations to be added to
1574+
Kubernetes Ingress or Openshift Route
1575+
type: object
15081576
attributes:
15091577
description: "Map of implementation-dependant
15101578
string-based free-form attributes. \n
@@ -1943,6 +2011,21 @@ spec:
19432011
description: Allows adding and configuring devworkspace-related
19442012
containers
19452013
properties:
2014+
annotation:
2015+
description: Annotations that should be added to specific
2016+
resources for this container
2017+
properties:
2018+
deployment:
2019+
additionalProperties:
2020+
type: string
2021+
description: Annotations to be added to deployment
2022+
type: object
2023+
service:
2024+
additionalProperties:
2025+
type: string
2026+
description: Annotations to be added to service
2027+
type: object
2028+
type: object
19462029
args:
19472030
description: "The arguments to supply to the command
19482031
running the dockerimage component. The arguments
@@ -1974,6 +2057,12 @@ spec:
19742057
endpoints:
19752058
items:
19762059
properties:
2060+
annotation:
2061+
additionalProperties:
2062+
type: string
2063+
description: Annotations to be added to Kubernetes
2064+
Ingress or Openshift Route
2065+
type: object
19772066
attributes:
19782067
description: "Map of implementation-dependant
19792068
string-based free-form attributes. \n Examples
@@ -2233,6 +2322,12 @@ spec:
22332322
endpoints:
22342323
items:
22352324
properties:
2325+
annotation:
2326+
additionalProperties:
2327+
type: string
2328+
description: Annotations to be added to Kubernetes
2329+
Ingress or Openshift Route
2330+
type: object
22362331
attributes:
22372332
description: "Map of implementation-dependant
22382333
string-based free-form attributes. \n Examples
@@ -2342,6 +2437,12 @@ spec:
23422437
endpoints:
23432438
items:
23442439
properties:
2440+
annotation:
2441+
additionalProperties:
2442+
type: string
2443+
description: Annotations to be added to Kubernetes
2444+
Ingress or Openshift Route
2445+
type: object
23452446
attributes:
23462447
description: "Map of implementation-dependant
23472448
string-based free-form attributes. \n Examples
@@ -2675,6 +2776,23 @@ spec:
26752776
description: Allows adding and configuring devworkspace-related
26762777
containers
26772778
properties:
2779+
annotation:
2780+
description: Annotations that should be
2781+
added to specific resources for this container
2782+
properties:
2783+
deployment:
2784+
additionalProperties:
2785+
type: string
2786+
description: Annotations to be added
2787+
to deployment
2788+
type: object
2789+
service:
2790+
additionalProperties:
2791+
type: string
2792+
description: Annotations to be added
2793+
to service
2794+
type: object
2795+
type: object
26782796
args:
26792797
description: "The arguments to supply to
26802798
the command running the dockerimage component.
@@ -2708,6 +2826,13 @@ spec:
27082826
endpoints:
27092827
items:
27102828
properties:
2829+
annotation:
2830+
additionalProperties:
2831+
type: string
2832+
description: Annotations to be added
2833+
to Kubernetes Ingress or Openshift
2834+
Route
2835+
type: object
27112836
attributes:
27122837
description: "Map of implementation-dependant
27132838
string-based free-form attributes.
@@ -2999,6 +3124,13 @@ spec:
29993124
endpoints:
30003125
items:
30013126
properties:
3127+
annotation:
3128+
additionalProperties:
3129+
type: string
3130+
description: Annotations to be added
3131+
to Kubernetes Ingress or Openshift
3132+
Route
3133+
type: object
30023134
attributes:
30033135
description: "Map of implementation-dependant
30043136
string-based free-form attributes.
@@ -3123,6 +3255,13 @@ spec:
31233255
endpoints:
31243256
items:
31253257
properties:
3258+
annotation:
3259+
additionalProperties:
3260+
type: string
3261+
description: Annotations to be added
3262+
to Kubernetes Ingress or Openshift
3263+
Route
3264+
type: object
31263265
attributes:
31273266
description: "Map of implementation-dependant
31283267
string-based free-form attributes.

0 commit comments

Comments
 (0)