From f251cba3632093b9e732b6f8e477c81751136d57 Mon Sep 17 00:00:00 2001 From: kklinch0 Date: Tue, 8 Jul 2025 10:02:30 +0300 Subject: [PATCH] bugfix: vm and vmi add svc to dashboard Signed-off-by: kklinch0 --- packages/apps/versions_map | 6 ++++-- packages/apps/virtual-machine/Chart.yaml | 2 +- .../virtual-machine/templates/dashboard-resourcemap.yaml | 7 +++++++ packages/apps/vm-instance/Chart.yaml | 2 +- .../apps/vm-instance/templates/dashboard-resourcemap.yaml | 7 +++++++ 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/packages/apps/versions_map b/packages/apps/versions_map index 357f607d..2efcd8b1 100644 --- a/packages/apps/versions_map +++ b/packages/apps/versions_map @@ -155,7 +155,8 @@ virtual-machine 0.9.1 93bdf411 virtual-machine 0.10.0 6130f43d virtual-machine 0.10.2 632224a3 virtual-machine 0.11.0 4369b031 -virtual-machine 0.12.0 HEAD +virtual-machine 0.12.0 70f82667 +virtual-machine 0.12.1 HEAD vm-disk 0.1.0 d971f2ff vm-disk 0.1.1 6130f43d vm-disk 0.1.2 632224a3 @@ -172,7 +173,8 @@ vm-instance 0.6.0 721c12a7 vm-instance 0.7.0 6130f43d vm-instance 0.7.2 632224a3 vm-instance 0.8.0 4369b031 -vm-instance 0.9.0 HEAD +vm-instance 0.9.0 70f82667 +vm-instance 0.9.1 HEAD vpn 0.1.0 263e47be vpn 0.2.0 53f2365e vpn 0.3.0 6c5cf5bf diff --git a/packages/apps/virtual-machine/Chart.yaml b/packages/apps/virtual-machine/Chart.yaml index 229f874b..c86bc876 100644 --- a/packages/apps/virtual-machine/Chart.yaml +++ b/packages/apps/virtual-machine/Chart.yaml @@ -17,7 +17,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: 0.12.0 +version: 0.12.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/packages/apps/virtual-machine/templates/dashboard-resourcemap.yaml b/packages/apps/virtual-machine/templates/dashboard-resourcemap.yaml index d9fa9346..4beac5dc 100644 --- a/packages/apps/virtual-machine/templates/dashboard-resourcemap.yaml +++ b/packages/apps/virtual-machine/templates/dashboard-resourcemap.yaml @@ -3,6 +3,13 @@ kind: Role metadata: name: {{ .Release.Name }}-dashboard-resources rules: +- apiGroups: + - "" + resources: + - services + resourceNames: + - {{ include "virtual-machine.fullname" . }} + verbs: ["get", "list", "watch"] - apiGroups: - cozystack.io resources: diff --git a/packages/apps/vm-instance/Chart.yaml b/packages/apps/vm-instance/Chart.yaml index 7b53ff1d..66c0a256 100644 --- a/packages/apps/vm-instance/Chart.yaml +++ b/packages/apps/vm-instance/Chart.yaml @@ -17,7 +17,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: 0.9.0 +version: 0.9.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/packages/apps/vm-instance/templates/dashboard-resourcemap.yaml b/packages/apps/vm-instance/templates/dashboard-resourcemap.yaml index 1abdfe7b..95e35401 100644 --- a/packages/apps/vm-instance/templates/dashboard-resourcemap.yaml +++ b/packages/apps/vm-instance/templates/dashboard-resourcemap.yaml @@ -3,6 +3,13 @@ kind: Role metadata: name: {{ .Release.Name }}-dashboard-resources rules: +- apiGroups: + - "" + resources: + - services + resourceNames: + - {{ include "virtual-machine.fullname" . }} + verbs: ["get", "list", "watch"] - apiGroups: - cozystack.io resources: