Skip to content

[networks]: add decoder/encoder to Attachment and NetworkStatus#1216

Merged
JaewonHur merged 6 commits intoapple:mainfrom
saehejkang:add-init-decoder-for-attachment-and-network-config
Mar 17, 2026
Merged

[networks]: add decoder/encoder to Attachment and NetworkStatus#1216
JaewonHur merged 6 commits intoapple:mainfrom
saehejkang:add-init-decoder-for-attachment-and-network-config

Conversation

@saehejkang
Copy link
Contributor

@saehejkang saehejkang commented Feb 14, 2026

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Adds backward-compatible JSON decoding/encoding fallback for Attachment and NetworkStatus to prevent keyNotFound errors when communicating with older container-apiserver versions.

Temporary fix but closes #1196

Testing

Tests ✅ based on comment here

@saehejkang
Copy link
Contributor Author

saehejkang commented Feb 26, 2026

@jglogan bringing this to your inbox as it a blocker for socktainer and should get merged soon

@saehejkang
Copy link
Contributor Author

@JaewonHur ready for your ✅ again

@JaewonHur
Copy link
Contributor

Looks like some conflicts with main..?

@saehejkang saehejkang force-pushed the add-init-decoder-for-attachment-and-network-config branch from 44f7cce to 1389b63 Compare March 6, 2026 02:23
@saehejkang saehejkang force-pushed the add-init-decoder-for-attachment-and-network-config branch from 1389b63 to 0c125a6 Compare March 6, 2026 02:29
@saehejkang
Copy link
Contributor Author

Looks like some conflicts with main..?

should be fixed now I think

@saehejkang
Copy link
Contributor Author

@JaewonHur bump 😄

case macAddress
// TODO: retain for deserialization compatibility for now, remove later
case address
case gateway
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for the delay.
Seems mtu field is added.
Let me approve and merge it once it is done!

Copy link
Contributor Author

@saehejkang saehejkang Mar 17, 2026

Choose a reason for hiding this comment

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

I just pushed the changes that should fix the ci issues. Completely forgot about the mtu field that was just added.

@JaewonHur JaewonHur merged commit 9fd15f0 into apple:main Mar 17, 2026
3 checks passed
@vxnkjyffmq-code
Copy link

Appreciate it

Copy link

@vxnkjyffmq-code vxnkjyffmq-code left a comment

Choose a reason for hiding this comment

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

Shelf stable

@saehejkang saehejkang deleted the add-init-decoder-for-attachment-and-network-config branch March 18, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attachment and NetworkStatus lack backward-compatible decoding (unlike NetworkConfiguration)

5 participants