Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit a9bec42

Browse files
committed
Trying to fix some operator issues: updating crds and rbac rules
1 parent d1def44 commit a9bec42

File tree

5 files changed

+62
-0
lines changed

5 files changed

+62
-0
lines changed

operator/crds/execution.experimental.securecodebox.io_scans.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,21 @@ spec:
113113
description: RawResultType determines which kind of ParseDefinition
114114
will be used to turn the raw results of the scanner into findings
115115
type: string
116+
readAndWriteHookStatus:
117+
items:
118+
properties:
119+
hookName:
120+
type: string
121+
jobName:
122+
type: string
123+
state:
124+
description: HookState Describes the State of a Hook on a Scan
125+
type: string
126+
required:
127+
- hookName
128+
- state
129+
type: object
130+
type: array
116131
state:
117132
type: string
118133
type: object
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: rbac.authorization.k8s.io/v1beta1
2+
kind: ClusterRole
3+
metadata:
4+
name: metrics-reader
5+
rules:
6+
- nonResourceURLs: ["/metrics"]
7+
verbs: ["get"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: proxy-role
5+
rules:
6+
- apiGroups: ["authentication.k8s.io"]
7+
resources:
8+
- tokenreviews
9+
verbs: ["create"]
10+
- apiGroups: ["authorization.k8s.io"]
11+
resources:
12+
- subjectaccessreviews
13+
verbs: ["create"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: proxy-rolebinding
5+
roleRef:
6+
apiGroup: rbac.authorization.k8s.io
7+
kind: ClusterRole
8+
name: proxy-role
9+
subjects:
10+
- kind: ServiceAccount
11+
name: default
12+
namespace: {{ .Release.Namespace }}
13+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
labels:
5+
control-plane: controller-manager
6+
name: controller-manager-metrics-service
7+
namespace: system
8+
spec:
9+
ports:
10+
- name: https
11+
port: 8443
12+
targetPort: https
13+
selector:
14+
control-plane: controller-manager

0 commit comments

Comments
 (0)