-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
structured-merge-diff supports only 'set' type for associative list #115330
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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 can reproduce it with the following branch: It occurs in an integration test:
kubernetes/staging/src/k8s.io/api/resource/v1alpha1/types.go Lines 115 to 117 in ea09f81
It contains: kubernetes/staging/src/k8s.io/api/resource/v1alpha1/types.go Lines 367 to 382 in ea09f81
I suppose the "map type" is the One possible fix would be to turn /assign |
/sig node |
This seems to work:
|
What happened?
kube-apiserver has has this kind of entries in log
What did you expect to happen?
I expected those lines not to appear in kube-apiserver logs, and structured-merge-diff to support map types, like the comment says at https://github.com/kubernetes/kubernetes/blob/master/vendor/sigs.k8s.io/structured-merge-diff/v4/typed/helpers.go#L233
How can we reproduce it (as minimally and precisely as possible)?
I ran into it during Dynamic Resource Allocation usage. It requires a either a CRI-O v1.23, or containerd 1.7+ (has to be built from git at the moment); the cluster has to be initialized "DynamicResourceAllocation" feature-gate and alpha apis enabled, for instance with this config for kubeadm :
Deploy pod with inline resource-claim for instance the following (the issue will appear immediately even though the resource-claim is malformed. Proper resource claim would require resource-driver to be deployed, but it's not necessary for issue to be manifested):
Anything else we need to know?
The code where the issue happens appears to be at https://github.com/kubernetes/kubernetes/blob/master/vendor/sigs.k8s.io/structured-merge-diff/v4/typed/helpers.go#L233
Kubernetes version
Cloud provider
OS version
Install tools
Unrelated
Container runtime (CRI) and version (if applicable)
Unrelated
Related plugins (CNI, CSI, ...) and versions (if applicable)
Dynamic Resource Allocation has to be enabled, - Resource Claim is the only API object I know of that triggers this issue and / or has maps in associative list.
The text was updated successfully, but these errors were encountered: