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

option: Skip NodeEncryptionOptOutLabels when marshalling to json #24470

Conversation

gandro
Copy link
Member

@gandro gandro commented Mar 20, 2023

This fixes an issue where the value of NodeEncryptionOptOutLabels could not be unmarshalled from JSON because of it being an interface type.

This resulted in the cilium-cli connectivity test setup to fail with the following error:

connectivity test failed: unmarshaling cilium runtime config json: json: cannot unmarshal array into Go struct field DaemonConfig.NodeEncryptionOptOutLabels of type labels.Selector

This fixes an issue where the value of `NodeEncryptionOptOutLabels`
could not be unmarshalled from JSON because of it being an interface
type.

This resulted in the cilium-cli connectivity test setup to fail with the
following error:

```
connectivity test failed: unmarshaling cilium runtime config json: json: cannot unmarshal array into Go struct field DaemonConfig.NodeEncryptionOptOutLabels of type labels.Selector
```

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
@gandro gandro added the release-note/misc This PR makes changes that have no direct user impact. label Mar 20, 2023
@gandro gandro requested review from a team as code owners March 20, 2023 14:28
@gandro gandro requested review from bimmlerd and rolinh March 20, 2023 14:28
Copy link
Contributor

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ this is how i would have fixed it too :amaze:

@gandro gandro removed the request for review from rolinh March 20, 2023 15:31
@gandro
Copy link
Member Author

gandro commented Mar 20, 2023

/test

@gandro
Copy link
Member Author

gandro commented Mar 20, 2023

https://jenkins.cilium.io/job/Cilium-PR-K8s-1.25-kernel-4.19/1371/ looks like a variant of #24453

@gandro
Copy link
Member Author

gandro commented Mar 20, 2023

/test-1.25-4.19

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 20, 2023
@michi-covalent michi-covalent merged commit 914de57 into cilium:master Mar 20, 2023
42 checks passed
michi-covalent added a commit to cilium/cilium-cli that referenced this pull request Mar 20, 2023
Need cilium/cilium#24470 to fix this error that
happens during cilium connectivity test setup:

    connectivity test failed: unmarshaling cilium runtime config json: json: cannot unmarshal array into Go struct field DaemonConfig.NodeEncryptionOptOutLabels of type labels.Selector

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
michi-covalent added a commit to cilium/cilium-cli that referenced this pull request Mar 20, 2023
Need cilium/cilium#24470 to fix this error that
happens during cilium connectivity test setup:

    connectivity test failed: unmarshaling cilium runtime config json: json: cannot unmarshal array into Go struct field DaemonConfig.NodeEncryptionOptOutLabels of type labels.Selector

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
michi-covalent added a commit to michi-covalent/cilium that referenced this pull request May 30, 2023
Need cilium#24470 to fix this error that
happens during cilium connectivity test setup:

    connectivity test failed: unmarshaling cilium runtime config json: json: cannot unmarshal array into Go struct field DaemonConfig.NodeEncryptionOptOutLabels of type labels.Selector

Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants