-
Notifications
You must be signed in to change notification settings - Fork 922
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
Metadata field of nested objects inside CR getting erased #1066
Comments
Your server version is a bit out of date. Are you able to reproduce this on a supported version? We're going to need an easier way to reproduce this. Can you please create a repo with a minimum reproducible example? |
/triage accept |
@soltysh: The label(s) In response to this:
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. |
See kubernetes/enhancements#515 for details. |
@soltysh: Closing this issue. In response to this:
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. |
What happened:
I am writing an operator using operator-sdk. One of my resource has a map of another resource in its spec. The metadata field of the child resource is getting erased from the parent resource object.
What you expected to happen:
The metadata field should be present as provided.
How to reproduce it (as minimally and precisely as possible):
Here are the Resource types :
I m creating this resource using
client.Client.Create()
:When I run
kubectl describe -n namespace-1 workergroup wg-2
, this I what I get:As you can see the metadata is empty.
Anything else we need to know?:
I tried writing a yaml file and using
kubectl apply -f
. Same issue.Environment:
kubectl version
):Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.0", GitCommit:"cb303e613a121a29364f75cc67d3d580833a7479", GitTreeState:"clean", BuildDate:"2021-04-08T16:31:21Z", GoVersion:"go1.16.1", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.8", GitCommit:"9f2892aab98fe339f3bd70e3c470144299398ace", GitTreeState:"clean", BuildDate:"2020-08-13T16:04:18Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
cat /etc/os-release
):The text was updated successfully, but these errors were encountered: