Skip to content

Conversation

@AyushSenapati
Copy link
Contributor

@AyushSenapati AyushSenapati commented Jan 7, 2023

Remove omitempty for all TargetRefs and regenerate the policies (Closes #5548)

Signed-off-by: AyushSenapati [email protected]

Checklist prior to review

Changelog: fix(policy): make targetRef required

Remove omitempty for all TargetRefs and regenerate the policies

Signed-off-by: AyushSenapati <[email protected]>
@AyushSenapati AyushSenapati requested review from a team, Automaat and michaelbeaumont and removed request for a team January 7, 2023 16:23
@AyushSenapati
Copy link
Contributor Author

kuma-commit workflow is failing because, it tests the generated policies by kumactl install with some golden testdata files. As targetRef is now a required field, policy output format is changed a bit. so we need to adjust the testdata files in order for these testcases to pass. I am not sure if I should update the testdata files or this is reserved for maintainers only.

@michaelbeaumont
Copy link
Contributor

/format /golden_files

github-actions bot and others added 2 commits January 9, 2023 08:25
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@michaelbeaumont michaelbeaumont self-assigned this Jan 9, 2023
@michaelbeaumont
Copy link
Contributor

/format /golden_files

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@michaelbeaumont michaelbeaumont changed the title fix: TargetRef is omitempty fix: make targetRef required Jan 9, 2023
Copy link
Contributor

@lobkovilya lobkovilya left a comment

Choose a reason for hiding this comment

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

Thank you @AyushSenapati for the contribution!

FYI I fixed the flaky e2e test we had here in #5596

@lobkovilya lobkovilya merged commit 5a5969f into kumahq:master Jan 9, 2023
@AyushSenapati AyushSenapati deleted the fix/targetref-omitempty branch January 9, 2023 11:54
bartsmykla pushed a commit to bartsmykla/kuma that referenced this pull request Jan 14, 2023
Signed-off-by: AyushSenapati <[email protected]>
Signed-off-by: Mike Beaumont <[email protected]>
Co-authored-by: Mike Beaumont <[email protected]>
Signed-off-by: Bart Smykla <[email protected]>
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.

policy-gen: targetRef should not be "omitempty"

3 participants