fix: move host-scanner to kubescape namespace

Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
This commit is contained in:
Alessio Greggi
2023-05-24 09:45:12 +02:00
parent e151c5bf81
commit 7840ecb5da
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -25789,7 +25789,7 @@
},
{
"guid": "",
"name": "exclude-kubescape-host-scanner-resources",
"name": "exclude-host-scanner-resources",
"attributes": {
"systemException": true
},
@@ -25804,7 +25804,7 @@
"attributes": {
"kind": "DaemonSet",
"name": "host-scanner",
"namespace": "kubescape-host-scanner"
"namespace": "kubescape"
}
}
],
+2 -2
View File
@@ -6,13 +6,13 @@ metadata:
k8s-app: kubescape-host-scanner
kubernetes.io/metadata.name: kubescape-host-scanner
tier: kubescape-host-scanner-control-plane
name: kubescape-host-scanner
name: kubescape
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: host-scanner
namespace: kubescape-host-scanner
namespace: kubescape
labels:
app: host-scanner
k8s-app: kubescape-host-scanner
@@ -34,7 +34,7 @@ func TestHostSensorHandler(t *testing.T) {
})
t.Run("should return namespace", func(t *testing.T) {
require.Equal(t, "kubescape-host-scanner", h.GetNamespace())
require.Equal(t, "kubescape", h.GetNamespace())
})
t.Run("should collect resources from pods - happy path", func(t *testing.T) {
@@ -62743,7 +62743,7 @@
},
{
"guid": "",
"name": "exclude-kubescape-host-scanner-resources",
"name": "exclude-host-scanner-resources",
"attributes": {
"systemException": true
},
@@ -62758,7 +62758,7 @@
"attributes": {
"kind": "DaemonSet",
"name": "host-scanner",
"namespace": "kubescape-host-scanner"
"namespace": "kubescape"
}
}
],