Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit 13a79fa

Browse files
JenTing Hsiaojordimassaguerpla
authored andcommitted
Fix kucero PSP (bsc#1175352)
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
1 parent f75ef83 commit 13a79fa

2 files changed

Lines changed: 14 additions & 33 deletions

File tree

internal/pkg/skuba/addons/kucero.go

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,6 @@ metadata:
4949
name: kucero
5050
namespace: kube-system
5151
---
52-
apiVersion: policy/v1beta1
53-
kind: PodSecurityPolicy
54-
metadata:
55-
name: kucero
56-
spec:
57-
allowedHostPaths:
58-
- pathPrefix: /etc/kubernetes/pki
59-
readOnly: true
60-
- pathPrefix: /var/lib/kubelet/pki
61-
readOnly: true
62-
fsGroup:
63-
rule: RunAsAny
64-
hostPID: true
65-
privileged: true
66-
runAsUser:
67-
rule: RunAsAny
68-
seLinux:
69-
rule: RunAsAny
70-
supplementalGroups:
71-
rule: RunAsAny
72-
volumes:
73-
- secret
74-
- hostPath
75-
---
7652
apiVersion: rbac.authorization.k8s.io/v1
7753
kind: Role
7854
metadata:
@@ -146,14 +122,6 @@ rules:
146122
- pods/eviction
147123
verbs:
148124
- create
149-
- apiGroups:
150-
- extensions
151-
resourceNames:
152-
- kucero
153-
resources:
154-
- podsecuritypolicies
155-
verbs:
156-
- use
157125
- apiGroups:
158126
- certificates.k8s.io
159127
resourceNames:
@@ -225,6 +193,19 @@ subjects:
225193
name: kucero
226194
namespace: kube-system
227195
---
196+
apiVersion: rbac.authorization.k8s.io/v1
197+
kind: ClusterRoleBinding
198+
metadata:
199+
name: suse:caasp:psp:kucero
200+
roleRef:
201+
kind: ClusterRole
202+
name: suse:caasp:psp:privileged
203+
apiGroup: rbac.authorization.k8s.io
204+
subjects:
205+
- kind: ServiceAccount
206+
name: kucero
207+
namespace: kube-system
208+
---
228209
apiVersion: apps/v1
229210
kind: DaemonSet
230211
metadata:

internal/pkg/skuba/kubernetes/versions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var (
107107
Dex: &AddonVersion{"2.23.0", 7},
108108
Gangway: &AddonVersion{"3.1.0-rev5", 5},
109109
MetricsServer: &AddonVersion{"0.3.6", 0},
110-
Kucero: &AddonVersion{"1.1.1", 0},
110+
Kucero: &AddonVersion{"1.1.1", 1},
111111
PSP: &AddonVersion{"", 2},
112112
},
113113
},

0 commit comments

Comments
 (0)