Skip to content

Conversation

@elweb9858
Copy link
Contributor

Signed-off-by: elweb9858 [email protected]

Several fields in the NatPolicy and AclPolicy v1 schema structs do not reflect the omitEmpty json field. This can be problematic in cases of integer fields because if the user does not specify a value for this field, it will be assigned a 0 during marshalling. In cases like protocol, a value of 0 is not something HNS recognizes so policy application will fail. This PR reflects all the omitEmpty fields properly in the hcsshim v1 policy schema structs (all v2 structs are currently up to date).

@elweb9858 elweb9858 requested a review from a team as a code owner July 19, 2021 18:42
@elweb9858
Copy link
Contributor Author

PTAL @negup @sbangari @Keith-Mange @vikas-bh

Copy link
Contributor

@dcantah dcantah left a comment

Choose a reason for hiding this comment

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

lgtm

@netal
Copy link
Contributor

netal commented Jul 19, 2021

lgtm

@dcantah
Copy link
Contributor

dcantah commented Jul 23, 2021

@elweb9858 Are we ok to check this in? Any others we're waiting to take a look?

@elweb9858
Copy link
Contributor Author

@dcantah this is ok to check in

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.

3 participants