Skip to content

Commit 4bef5f3

Browse files
committed
codegen
On-behalf-of: @SAP [email protected]
1 parent 40aa688 commit 4bef5f3

File tree

10 files changed

+453
-20
lines changed

10 files changed

+453
-20
lines changed

deploy/crd/kcp.io/syncagent.kcp.io_publishedresources.yaml

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,84 @@ spec:
149149
type: object
150150
x-kubernetes-map-type: atomic
151151
type: object
152+
mutation:
153+
description: |-
154+
Mutation allows to configure "rewrite rules" to modify the objects in both
155+
directions during the synchronization.
156+
properties:
157+
spec:
158+
items:
159+
properties:
160+
delete:
161+
properties:
162+
path:
163+
type: string
164+
required:
165+
- path
166+
type: object
167+
regex:
168+
properties:
169+
path:
170+
type: string
171+
pattern:
172+
description: |-
173+
Pattern can be left empty to simply replace the entire value with the
174+
replacement.
175+
type: string
176+
replacement:
177+
type: string
178+
required:
179+
- path
180+
type: object
181+
template:
182+
properties:
183+
path:
184+
type: string
185+
template:
186+
type: string
187+
required:
188+
- path
189+
- template
190+
type: object
191+
type: object
192+
type: array
193+
status:
194+
items:
195+
properties:
196+
delete:
197+
properties:
198+
path:
199+
type: string
200+
required:
201+
- path
202+
type: object
203+
regex:
204+
properties:
205+
path:
206+
type: string
207+
pattern:
208+
description: |-
209+
Pattern can be left empty to simply replace the entire value with the
210+
replacement.
211+
type: string
212+
replacement:
213+
type: string
214+
required:
215+
- path
216+
type: object
217+
template:
218+
properties:
219+
path:
220+
type: string
221+
template:
222+
type: string
223+
required:
224+
- path
225+
- template
226+
type: object
227+
type: object
228+
type: array
229+
type: object
152230
naming:
153231
description: |-
154232
Naming can be used to control how the namespace and names for local objects
@@ -251,6 +329,84 @@ spec:
251329
kind:
252330
description: ConfigMap or Secret
253331
type: string
332+
mutation:
333+
description: |-
334+
Mutation configures optional transformation rules for the related resource.
335+
Status mutations are only performed when the related resource originates in kcp.
336+
properties:
337+
spec:
338+
items:
339+
properties:
340+
delete:
341+
properties:
342+
path:
343+
type: string
344+
required:
345+
- path
346+
type: object
347+
regex:
348+
properties:
349+
path:
350+
type: string
351+
pattern:
352+
description: |-
353+
Pattern can be left empty to simply replace the entire value with the
354+
replacement.
355+
type: string
356+
replacement:
357+
type: string
358+
required:
359+
- path
360+
type: object
361+
template:
362+
properties:
363+
path:
364+
type: string
365+
template:
366+
type: string
367+
required:
368+
- path
369+
- template
370+
type: object
371+
type: object
372+
type: array
373+
status:
374+
items:
375+
properties:
376+
delete:
377+
properties:
378+
path:
379+
type: string
380+
required:
381+
- path
382+
type: object
383+
regex:
384+
properties:
385+
path:
386+
type: string
387+
pattern:
388+
description: |-
389+
Pattern can be left empty to simply replace the entire value with the
390+
replacement.
391+
type: string
392+
replacement:
393+
type: string
394+
required:
395+
- path
396+
type: object
397+
template:
398+
properties:
399+
path:
400+
type: string
401+
template:
402+
type: string
403+
required:
404+
- path
405+
- template
406+
type: object
407+
type: object
408+
type: array
409+
type: object
254410
origin:
255411
description: '"service" or "kcp"'
256412
type: string

sdk/apis/syncagent/v1alpha1/zz_generated.deepcopy.go

Lines changed: 10 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/applyconfiguration/syncagent/v1alpha1/publishedresourcespec.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/applyconfiguration/syncagent/v1alpha1/relatedresourcespec.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/applyconfiguration/syncagent/v1alpha1/resourcedeletemutation.go

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/applyconfiguration/syncagent/v1alpha1/resourcemutation.go

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)