Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set list w/ atomic map types is not yet supported #163

Open
yue9944882 opened this issue May 13, 2020 · 16 comments
Open

Set list w/ atomic map types is not yet supported #163

yue9944882 opened this issue May 13, 2020 · 16 comments
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@yue9944882
Copy link
Member

case child.IsMap():
// TODO: atomic maps should be acceptable.
return pe, errors.New("associative list without keys has an element that's a map type")

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

@fejta-bot
Copy link

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

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 11, 2020
@apelisse
Copy link
Contributor

@jpbetz Good question, we should definitely add a test for that

@jpbetz
Copy link
Contributor

jpbetz commented Aug 11, 2020

@yue9944882 What was your exact case?

@yue9944882
Copy link
Member Author

@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

@fejta-bot
Copy link

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

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Sep 11, 2020
@fejta-bot
Copy link

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

@k8s-ci-robot
Copy link
Contributor

@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.

@yue9944882
Copy link
Member Author

/reopen
/lifecycle frozen

@k8s-ci-robot k8s-ci-robot reopened this Oct 12, 2020
@k8s-ci-robot
Copy link
Contributor

@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.

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Oct 12, 2020
@apelisse
Copy link
Contributor

Thanks @yue9944882, I think @jpbetz solved this one.

Feel free to re-open if I'm wrong.
/close

@k8s-ci-robot
Copy link
Contributor

@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.

@apelisse
Copy link
Contributor

apelisse commented Jan 6, 2021

/reopen

This is clearly not implemented yet :-)

@k8s-ci-robot k8s-ci-robot reopened this Jan 6, 2021
@k8s-ci-robot
Copy link
Contributor

@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.

@apelisse
Copy link
Contributor

apelisse commented Jan 6, 2021

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)?

@apelisse
Copy link
Contributor

apelisse commented Jan 6, 2021

@apelisse
Copy link
Contributor

apelisse commented Jan 7, 2021

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:

  1. The current documentation says that's its not possible,
  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

5 participants