9
9
propertyRules :
10
10
# `replacement` is a `String` that will be used verbatim as the property's Rust type,
11
11
# if this rule matches.
12
- - replacement : k8s_openapi::api::core::v1:: ResourceRequirements
12
+ - replacement : ResourceRequirements
13
13
14
14
# 1. Name-directed matching.
15
15
#
@@ -91,20 +91,22 @@ propertyRules:
91
91
#
92
92
# Generally, it is not advised to omit type-directed matching completely, since you could possibly
93
93
# over-eagerly perform replacement of completely unrelated types.
94
- - replacement : k8s_openapi::api::core::v1:: Affinity
94
+ - replacement : Affinity
95
95
matchName :
96
96
- exact : affinity
97
-
98
- - replacement : k8s_openapi::api::core::v1::TopologySpreadConstraint
99
- matchName :
100
- - exact : topologySpreadConstraints
101
-
102
- - replacement : Vec<k8s_openapi::api::core::v1::Toleration>
103
- matchName :
104
- - exact : tolerations
97
+ # matchSchema:
98
+ # subset:
99
+ # type: object
100
+ # properties:
101
+ # nodeAffinity:
102
+ # type: object
103
+ # podAffinity:
104
+ # type: object
105
+ # podAntiAffinity:
106
+ # type: object
105
107
106
108
# You can modify all matched names with the same `replacement` type, if the `matchSchema` succeeds.
107
- - replacement : k8s_openapi::api::core::v1:: Probe
109
+ - replacement : Probe
108
110
matchName :
109
111
- exact : livenessProbe
110
112
- exact : readinessProbe
@@ -131,7 +133,7 @@ propertyRules:
131
133
# have the same `matchName` expressions, but differing `matchSchema` expressions.
132
134
133
135
# Replace the container security context.
134
- - replacement : k8s_openapi::api::core::v1:: SecurityContext
136
+ - replacement : SecurityContext
135
137
matchName :
136
138
- exact : securityContext
137
139
matchSchema :
@@ -201,7 +203,7 @@ propertyRules:
201
203
type : string
202
204
203
205
# Replace the pod security context.
204
- - replacement : k8s_openapi::api::core::v1:: PodSecurityContext
206
+ - replacement : PodSecurityContext
205
207
matchName :
206
208
- exact : securityContext
207
209
matchSchema :
@@ -268,7 +270,7 @@ propertyRules:
268
270
runAsUserName :
269
271
type : string
270
272
271
- - replacement : Vec<k8s_openapi::api::core::v1:: LocalObjectReference>
273
+ - replacement : Vec<LocalObjectReference>
272
274
matchAnyName :
273
275
- exact :
274
276
matchSchema :
@@ -280,7 +282,7 @@ propertyRules:
280
282
name :
281
283
type : string
282
284
283
- - replacement : k8s_openapi::api::core::v1:: EnvVar
285
+ - replacement : Vec< EnvVar>
284
286
matchName :
285
287
- exact : env
286
288
matchSchema :
@@ -296,7 +298,7 @@ propertyRules:
296
298
valueFrom :
297
299
type : object
298
300
299
- - replacement : k8s_openapi::api::core::v1:: VolumeMount
301
+ - replacement : Vec< VolumeMount>
300
302
matchName :
301
303
- exact : volumeMounts
302
304
matchSchema :
@@ -320,9 +322,9 @@ propertyRules:
320
322
subPathExpr :
321
323
type : string
322
324
323
- - replacement : k8s_openapi::api::core::v1:: Volume
325
+ - replacement : Vec< Volume>
324
326
matchName :
325
- - exact : volume
327
+ - exact : volumes
326
328
matchSchema :
327
329
subset :
328
330
type : array
@@ -351,3 +353,69 @@ propertyRules:
351
353
type : boolean
352
354
secretName :
353
355
type : string
356
+
357
+ - replacement : Vec<Toleration>
358
+ matchName :
359
+ - exact : tolerations
360
+ matchSchema :
361
+ exhaustive :
362
+ type : array
363
+ items :
364
+ type : object
365
+ properties :
366
+ effect :
367
+ type : string
368
+ key :
369
+ type : string
370
+ operator :
371
+ type : string
372
+ tolerationSeconds :
373
+ type : integer
374
+ value :
375
+ type : string
376
+
377
+ - replacement : TopologySpreadConstraint
378
+ matchName :
379
+ - exact : topologySpreadConstraints
380
+ matchSchema :
381
+ exhaustive :
382
+ type : array
383
+ items :
384
+ type : object
385
+ properties :
386
+ labelSelector :
387
+ type : object
388
+ properties :
389
+ matchExpressions :
390
+ type : array
391
+ items :
392
+ type : object
393
+ properties :
394
+ key :
395
+ type : string
396
+ operator :
397
+ type : string
398
+ values :
399
+ type : array
400
+ items :
401
+ type : string
402
+ matchLabels :
403
+ additionalProperties :
404
+ type : string
405
+ type : object
406
+ matchLabelKeys :
407
+ type : array
408
+ items :
409
+ type : string
410
+ maxSkew :
411
+ type : integer
412
+ minDomains :
413
+ type : integer
414
+ nodeAffinityPolicy :
415
+ type : string
416
+ nodeTaintsPolicy :
417
+ type : string
418
+ topologyKey :
419
+ type : string
420
+ whenUnsatisfiable :
421
+ type : string
0 commit comments