@@ -319,88 +319,6 @@ spec:
319319 related :
320320 items :
321321 properties :
322- destination :
323- description : Destination describes where to place the copy of the object on the destination side.
324- properties :
325- expression :
326- description : |-
327- Expression is a Go templated string that can make use of variables to
328- construct the resulting string.
329- type : string
330- namespace :
331- description : |-
332- Namespace configures in what namespace the related object should be created
333- in. If not specified, the same namespace as the main object is assumed.
334- If the main object is cluster-scoped, an error will be raised during
335- syncing.
336- properties :
337- expression :
338- description : |-
339- Expression is a Go templated string that can make use of variables to
340- construct the resulting string.
341- type : string
342- reference :
343- description : |-
344- Reference points to a field inside the main object. This reference is
345- evaluated on both source and destination sides to find the related object.
346- properties :
347- path :
348- description : |-
349- Path is a simplified JSONPath expression like "metadata.name". A reference
350- must always select at least _something_ in the object, even if the value
351- is discarded by the regular expression.
352- type : string
353- regex :
354- description : |-
355- Regex is a Go regular expression that is optionally applied to the selected
356- value from the path.
357- properties :
358- pattern :
359- description : |-
360- Pattern can be left empty to simply replace the entire value with the
361- replacement.
362- type : string
363- replacement :
364- description : |-
365- Replacement is the string that the matched pattern is replaced with. It
366- can contain references to groups in the pattern by using \N.
367- type : string
368- type : object
369- required :
370- - path
371- type : object
372- type : object
373- reference :
374- description : |-
375- Reference points to a field inside the main object. This reference is
376- evaluated on both source and destination sides to find the related object.
377- properties :
378- path :
379- description : |-
380- Path is a simplified JSONPath expression like "metadata.name". A reference
381- must always select at least _something_ in the object, even if the value
382- is discarded by the regular expression.
383- type : string
384- regex :
385- description : |-
386- Regex is a Go regular expression that is optionally applied to the selected
387- value from the path.
388- properties :
389- pattern :
390- description : |-
391- Pattern can be left empty to simply replace the entire value with the
392- replacement.
393- type : string
394- replacement :
395- description : |-
396- Replacement is the string that the matched pattern is replaced with. It
397- can contain references to groups in the pattern by using \N.
398- type : string
399- type : object
400- required :
401- - path
402- type : object
403- type : object
404322 identifier :
405323 description : |-
406324 Identifier is a unique name for this related resource. The name must be unique within one
@@ -489,28 +407,18 @@ spec:
489407 type : object
490408 type : array
491409 type : object
492- origin :
493- description : ' "service" or "kcp"'
494- type : string
495- source :
496- description : Source describes how the related resource can be found on the side where it originates.
410+ object :
411+ description : |-
412+ Object describes how the related resource can be found on the origin side
413+ and where it is to supposed to be created on the destination side.
497414 properties :
498- expression :
499- description : |-
500- Expression is a Go templated string that can make use of variables to
501- construct the resulting string.
502- type : string
503415 namespace :
504416 description : |-
505417 Namespace configures in what namespace the related object resides in. If
506418 not specified, the same namespace as the main object is assumed. If the
507- main object is cluster-scoped, an error will be raised during syncing.
419+ main object is cluster-scoped, this field is required and an error will be
420+ raised during syncing if the field is not specified.
508421 properties :
509- expression :
510- description : |-
511- Expression is a Go templated string that can make use of variables to
512- construct the resulting string.
513- type : string
514422 reference :
515423 description : |-
516424 Reference points to a field inside the main object. This reference is
@@ -586,8 +494,45 @@ spec:
586494 map is equivalent to an element of matchExpressions, whose key field is "key", the
587495 operator is "In", and the values array contains only "value". The requirements are ANDed.
588496 type : object
497+ rewrite :
498+ properties :
499+ regex :
500+ description : |-
501+ Regex is a Go regular expression that is optionally applied to the selected
502+ value from the path.
503+ properties :
504+ pattern :
505+ description : |-
506+ Pattern can be left empty to simply replace the entire value with the
507+ replacement.
508+ type : string
509+ replacement :
510+ description : |-
511+ Replacement is the string that the matched pattern is replaced with. It
512+ can contain references to groups in the pattern by using \N.
513+ type : string
514+ type : object
515+ template :
516+ description : |-
517+ TemplateExpression is a Go templated string that can make use of variables to
518+ construct the resulting string.
519+ properties :
520+ template :
521+ type : string
522+ type : object
523+ type : object
524+ required :
525+ - rewrite
589526 type : object
590527 x-kubernetes-map-type : atomic
528+ template :
529+ description : |-
530+ Template is a Go templated string that can make use of variables to
531+ construct the resulting string.
532+ properties :
533+ template :
534+ type : string
535+ type : object
591536 type : object
592537 reference :
593538 description : |-
@@ -664,15 +609,54 @@ spec:
664609 map is equivalent to an element of matchExpressions, whose key field is "key", the
665610 operator is "In", and the values array contains only "value". The requirements are ANDed.
666611 type : object
612+ rewrite :
613+ properties :
614+ regex :
615+ description : |-
616+ Regex is a Go regular expression that is optionally applied to the selected
617+ value from the path.
618+ properties :
619+ pattern :
620+ description : |-
621+ Pattern can be left empty to simply replace the entire value with the
622+ replacement.
623+ type : string
624+ replacement :
625+ description : |-
626+ Replacement is the string that the matched pattern is replaced with. It
627+ can contain references to groups in the pattern by using \N.
628+ type : string
629+ type : object
630+ template :
631+ description : |-
632+ TemplateExpression is a Go templated string that can make use of variables to
633+ construct the resulting string.
634+ properties :
635+ template :
636+ type : string
637+ type : object
638+ type : object
639+ required :
640+ - rewrite
667641 type : object
668642 x-kubernetes-map-type : atomic
643+ template :
644+ description : |-
645+ Template is a Go templated string that can make use of variables to
646+ construct the resulting string.
647+ properties :
648+ template :
649+ type : string
650+ type : object
669651 type : object
652+ origin :
653+ description : ' "service" or "kcp"'
654+ type : string
670655 required :
671- - destination
672656 - identifier
673657 - kind
658+ - object
674659 - origin
675- - source
676660 type : object
677661 type : array
678662 resource :
0 commit comments