We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cadbfa commit d1016f1Copy full SHA for d1016f1
config/rbac/role.yaml
@@ -5,6 +5,14 @@ metadata:
5
creationTimestamp: null
6
name: appuio-cloud-agent
7
rules:
8
+- apiGroups:
9
+ - ""
10
+ resources:
11
+ - namespaces
12
+ verbs:
13
+ - get
14
+ - list
15
+ - watch
16
- apiGroups:
17
- ""
18
resources:
webhooks/ratio_validator.go
@@ -20,6 +20,7 @@ import (
20
)
21
22
// +kubebuilder:rbac:groups="",resources=pods,verbs=get;list;watch
23
+// +kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list;watch
24
25
// RatioValidator checks for every action in a namespace whether the Memory to CPU ratio limit is exceeded and will return a warning if it is.
26
type RatioValidator struct {
0 commit comments