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

blackbox-exporter: respect .global.networkPolicy.enabled #1999

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

pgvishnuram
Copy link
Contributor

@pgvishnuram pgvishnuram commented Sep 20, 2023

Description

Black box exporter service applies network policies while global.networkPolicy is set to false. This PR fixes the behaviour and respects the global.networkPolicy flag

Related Issues

https://github.com/astronomer/issues/issues/5843

Testing

QA should able to validate with no network policies when global.networkPolicy set to false

Merging

cherry-pick to release-0.30,0.32,0.33

@pgvishnuram pgvishnuram marked this pull request as ready for review September 20, 2023 05:16
@pgvishnuram pgvishnuram requested a review from a team as a code owner September 20, 2023 05:16
@danielhoherd danielhoherd changed the title fix network policies when global networkPolicy flag is disabled blackbox-exporter: respect global networkPolicy flag Sep 20, 2023
@danielhoherd danielhoherd changed the title blackbox-exporter: respect global networkPolicy flag blackbox-exporter: respect .global.networkPolicy.enabled Sep 20, 2023
Copy link
Member

@danielhoherd danielhoherd left a comment

Choose a reason for hiding this comment

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

LGTM! good catch

@pgvishnuram pgvishnuram merged commit b4211cd into master Sep 20, 2023
7 of 8 checks passed
@pgvishnuram pgvishnuram deleted the netpol-chart-fix branch September 20, 2023 17:21
pgvishnuram added a commit that referenced this pull request Oct 4, 2023
* make new blackbox-exporter network policies respect global.networkPolicy.enabled

* update global network policy test cases

---------

Co-authored-by: Rob J. Caskey <rob.caskey@astronomer.io>
pgvishnuram added a commit that referenced this pull request Oct 18, 2023
* make new blackbox-exporter network policies respect global.networkPolicy.enabled

* update global network policy test cases

---------

Co-authored-by: Rob J. Caskey <rob.caskey@astronomer.io>
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

3 participants