WASdev / websphere-liberty-operator

Deploy and manage containerized Liberty applications on Kubernetes. Documentation: https://ibm.biz/wlo-docs
Apache License 2.0
9 stars 4 forks source link

Network Policy configuration instructions unclear #551

Open danielguinan1 opened 1 year ago

danielguinan1 commented 1 year ago

When attempting to configure an application's network policy to allow traffic from other pods in the same namespace I added the following from the docs which did not work:

spec:
  networkPolicy:
    namespaceLabels:
      kubernetes.io/metadata.name: example

It was later determined that I needed to have labels set to empty for it to work:

  networkPolicy:
    fromLabels: {}
    namespaceLabels:
      kubernetes.io/metadata.name: acmeair

It would be helpful if there was logic that automatically added fromLabels as empty if missing, or at the very least the docs were updated. https://www.ibm.com/docs/en/was-liberty/nd?topic=operator-configuration-examples

danielguinan1 commented 1 year ago

fyi @mtamboli