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

fix: make targetRef required #5593

Merged
merged 5 commits into from
Jan 9, 2023

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 a.p.senapati008@gmail.com

Checklist prior to review

Changelog: fix(policy): make targetRef required

Remove omitempty for all TargetRefs and regenerate the policies

Signed-off-by: AyushSenapati <a.p.senapati008@gmail.com>
@AyushSenapati AyushSenapati requested review from a team, michaelbeaumont and Automaat 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>
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
@michaelbeaumont michaelbeaumont self-assigned this Jan 9, 2023
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
@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 <a.p.senapati008@gmail.com>
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
Co-authored-by: Mike Beaumont <mjboamail@gmail.com>
Signed-off-by: Bart Smykla <bartek@smykla.com>
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