kubearmor / kvm-service

Kubearmor Virtual Machine Service allows orchestrating policies to VMs and Bare-Metal environments using either k8s or non-k8s control plane.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to apply policy on a VM with multiple labels

seswarrajan opened this issue · comments

Issue :
Not able to apply policy to a VM which is configured with multiple labels

Steps to reproduce:

  1. Onboard/Configure a VM with multiple labels.
  2. Create and apply a policy with any one of the configured labels.
  3. Now apply the policy.

Expected behaviour:
The policy will be applied to VMs of all configured labels

Actual/Observed behaviour:
The policy is not getting applied for the VM and also the first configured label is ignored.

Issue is fixed and tested in GKE and MINIKUBE clusters.
Issue is merged into dev branch.