structured-merge-diff
structured-merge-diff copied to clipboard
Set list w/ atomic map types is not yet supported
https://github.com/kubernetes-sigs/structured-merge-diff/blob/17912732856ce1817c889fd8a8815083f6e0f826/typed/helpers.go#L211-L213
i was hitting above line when using an atomic map as the element of a set-list. is there a plan for supporting such schema? thanks! @apelisse @jennybuckley
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale
@jpbetz Good question, we should definitely add a test for that
@yue9944882 What was your exact case?
@apelisse @jpbetz thanks for reviving this thread. for my case, an example will be kubefed's model deifinition:
https://github.com/kubernetes-sigs/kubefed/blob/fd10623848151303a8e9e0d60a0dcace49cf9c43/example/sample1/federatedconfigmap.yaml#L16-L19
the model has an array of json-patches which is a map of op, path, value
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close
@fejta-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity. Reopen the issue with
/reopen. Mark the issue as fresh with/remove-lifecycle rotten.Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/reopen /lifecycle frozen
@yue9944882: Reopened this issue.
In response to this:
/reopen /lifecycle frozen
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Thanks @yue9944882, I think @jpbetz solved this one.
Feel free to re-open if I'm wrong. /close
@apelisse: Closing this issue.
In response to this:
Thanks @yue9944882, I think @jpbetz solved this one.
Feel free to re-open if I'm wrong. /close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/reopen
This is clearly not implemented yet :-)
@apelisse: Reopened this issue.
In response to this:
/reopen
This is clearly not implemented yet :-)
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
I don't think it's specifically super hard to implement. I wouldn't be completely opposed to forbidding it also (I'm not completely convinced we have a good use-case for that). What does the documentation say about this (for CRDs)?
https://v1-18.docs.kubernetes.io/docs/reference/using-api/api-concepts/#merge-strategy
i was hitting above line when using an atomic map as the element of a set-list. is there a plan for supporting such schema?
I'd love to understand the use-case to know if it's really useful, I have concerns because:
- The current documentation says that's its not possible,
- We have to save the entire atomic element in the managedFields if they are part of a set (to know who owns which one). If people start using it by accident, they may break things in unexpected ways.