Skip to content

Conversation

@jaer-tsun
Copy link
Contributor

What this PR does / why we need it:
Create namespace set if it doesn't exist. This fixes reboot bug where entries don't get added after failing to append non-existing namespace to all-namespaces.

When NPM reboots, namespace details do not always sync before policies and pods do. In those cases the namespace will need to be added before we proceed with add/update pod/networkpolicy workflow.

replaces #461

@saiyan86
Copy link
Contributor

/lgtm

@jaer-tsun jaer-tsun merged commit 570f9b0 into Azure:master Dec 20, 2019
@jaer-tsun jaer-tsun deleted the npmRebootNamespaceRaceV2 branch December 20, 2019 05:39
ashutoshishere04 pushed a commit to ashutoshishere04/azure-container-networking that referenced this pull request Jan 23, 2020
* poll api-server version for a minute before panicking

* always add namespace set, when adding nw policy

* create the ns set in add pod, if add namespace has not been called yet
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.

3 participants