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

[ST] Re-enable applying of NetworkPolicies during namespace creation #9656

Merged
merged 2 commits into from Feb 10, 2024

Conversation

im-konge
Copy link
Member

@im-konge im-konge commented Feb 7, 2024

Type of change

  • Bugfix

Description

During work on NamespaceManager I found out that the NetworkPolicies, that were part of the Namespace creation, are not created at all -> the NetworkPolicyTemplates.applyDefaultNetworkPolicy() method, even though named as "apply", just returned the NetworkPolicy object, which was then never actually created (only in OauthAbstractST, where it's done by ResourceManager from the beginning).

This PR fixes this issue. It adds the correct deployment of NetworkPolicies to NamespaceManager, so it is on one place and removes it from anywhere else. Also, it removes old and not used methods after changes, that were made in last PRs.

Checklist

  • Make sure all tests pass

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
Signed-off-by: Lukas Kral <lukywill16@gmail.com>
@im-konge im-konge requested a review from a team February 7, 2024 16:35
@im-konge im-konge added this to the 0.40.0 milestone Feb 7, 2024
@im-konge im-konge self-assigned this Feb 7, 2024
@im-konge
Copy link
Member Author

im-konge commented Feb 7, 2024

/packit test --labels regression

@im-konge
Copy link
Member Author

im-konge commented Feb 7, 2024

/azp run upgrade

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

im-konge commented Feb 7, 2024

/azp list

@im-konge
Copy link
Member Author

im-konge commented Feb 7, 2024

/azp run namespace-rbac-scope-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@jankalinic jankalinic left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@see-quick see-quick left a comment

Choose a reason for hiding this comment

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

LGTM, thanks 👍

@im-konge
Copy link
Member Author

im-konge commented Feb 9, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@im-konge
Copy link
Member Author

Test failures in TF are not related to my PR, they are being fixed in #9649 and then in another PR

@im-konge im-konge merged commit dd165a1 into strimzi:main Feb 10, 2024
34 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants