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(crd): add omitempty in spec for crds #1547

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

rajaSahil
Copy link
Contributor

Purpose of PR?:

Fixes #

  • Issues with respect to generation of CR using go-client which was failing because of required fields for MatchCapabilitiesType and MatchProtocols.
  • Add omitempy for the above mentioned fields.

Does this PR introduce a breaking change?

If the changes in this PR are manually verified, list down the scenarios covered::

Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Checklist:

  • Bug fix. Fixes #
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Commit has unit tests
  • Commit has integration tests

Copy link
Member

@daemon1024 daemon1024 left a comment

Choose a reason for hiding this comment

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

matchPaths is already omitempty so shouldn't cause issues.

@rajaSahil rajaSahil force-pushed the fix-crd branch 2 times, most recently from d826736 to 1dd4e7f Compare December 15, 2023 03:18
Copy link
Member

@daemon1024 daemon1024 left a comment

Choose a reason for hiding this comment

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

Can you rebase your PR from main, we have made fixes to CI

@daemon1024
Copy link
Member

Can you rebase PR again 😓 the tests should be fixed now.

Signed-off-by: sahil <sahilraja242@gmail.com>
@anurag-rajawat
Copy link
Contributor

Can we merge this?

@daemon1024 daemon1024 merged commit 35cf928 into kubearmor:main Feb 8, 2024
12 checks passed
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.

None yet

5 participants