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

Omit empty spec.egress in the managed network policies #28

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

simu
Copy link
Member

@simu simu commented Jun 21, 2022

Field spec.egress is optional, so it doesn't need to be present in the resources, if it's empty.

This commit ensures that we omit the field in the managed network policies.

Fixes #26

Checklist

  • PR contains a single logical change (to build a better changelog).
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Link this PR to related issues or PRs.

Field `spec.egress` is optional, so it doesn't need to be present in the
resources, if it's empty.

This commit ensures that we omit the field in the managed network
policies.

Fixes #26
@simu simu requested review from glrf and bastjan June 21, 2022 14:52
@simu simu merged commit b154823 into master Jun 21, 2022
@simu simu deleted the fix/omit-empty-egress branch June 21, 2022 15:01
@simu simu added the bug Something isn't working label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty array for optional egress field
2 participants