From 3fa1c0e7dcacf97f751bf4efdee821af619aee0b Mon Sep 17 00:00:00 2001 From: Jian Wang Date: Thu, 27 Feb 2025 15:23:10 +0100 Subject: [PATCH] Add virtualmachines to harvester-network-webhook rbac Check vm when a NAD is deleted Signed-off-by: Jian Wang --- charts/harvester-network-controller/Chart.yaml | 2 +- charts/harvester-network-controller/templates/rbac.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/harvester-network-controller/Chart.yaml b/charts/harvester-network-controller/Chart.yaml index c4767a3a..8673775e 100644 --- a/charts/harvester-network-controller/Chart.yaml +++ b/charts/harvester-network-controller/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.5.0-dev.0 +version: 1.5.0-dev.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/harvester-network-controller/templates/rbac.yaml b/charts/harvester-network-controller/templates/rbac.yaml index d9ab5e80..e07349d1 100644 --- a/charts/harvester-network-controller/templates/rbac.yaml +++ b/charts/harvester-network-controller/templates/rbac.yaml @@ -121,7 +121,7 @@ rules: resources: [ "validatingwebhookconfigurations", "mutatingwebhookconfigurations" ] verbs: [ "*" ] - apiGroups: [ "kubevirt.io" ] - resources: [ "virtualmachineinstances" ] + resources: [ "virtualmachineinstances", "virtualmachines" ] verbs: [ "get", "watch", "list" ] - apiGroups: [ "network.harvesterhci.io" ] resources: [ "vlanconfigs", "vlanstatuses", "clusternetworks" ]