Skip to content

Commit 4795827

Browse files
author
eliranb
committed
Refactor operator.yaml by removing unused RBAC roles and bindings, and update service port from 8443 to 8080 for improved configuration.
1 parent e0a1523 commit 4795827

File tree

1 file changed

+3
-46
lines changed

1 file changed

+3
-46
lines changed

examples/operator.yaml

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -304,30 +304,6 @@ rules:
304304
verbs:
305305
- get
306306
---
307-
# Source: lightrun-k8s-operator/templates/proxy-rbac.yaml
308-
apiVersion: rbac.authorization.k8s.io/v1
309-
kind: ClusterRole
310-
metadata:
311-
name: lightrun-k8s-operator-proxy-role
312-
labels:
313-
helm.sh/chart: lightrun-k8s-operator-0.1.0
314-
app.kubernetes.io/name: lightrun-k8s-operator
315-
app.kubernetes.io/instance: release-name
316-
app.kubernetes.io/managed-by: Helm
317-
rules:
318-
- apiGroups:
319-
- authentication.k8s.io
320-
resources:
321-
- tokenreviews
322-
verbs:
323-
- create
324-
- apiGroups:
325-
- authorization.k8s.io
326-
resources:
327-
- subjectaccessreviews
328-
verbs:
329-
- create
330-
---
331307
# Source: lightrun-k8s-operator/templates/manager-rbac.yaml
332308
apiVersion: rbac.authorization.k8s.io/v1
333309
kind: ClusterRoleBinding
@@ -347,25 +323,6 @@ subjects:
347323
name: 'lightrun-k8s-operator-controller-manager'
348324
namespace: 'lightrun-operator'
349325
---
350-
# Source: lightrun-k8s-operator/templates/proxy-rbac.yaml
351-
apiVersion: rbac.authorization.k8s.io/v1
352-
kind: ClusterRoleBinding
353-
metadata:
354-
name: lightrun-k8s-operator-proxy-rolebinding
355-
labels:
356-
helm.sh/chart: lightrun-k8s-operator-0.1.0
357-
app.kubernetes.io/name: lightrun-k8s-operator
358-
app.kubernetes.io/instance: release-name
359-
app.kubernetes.io/managed-by: Helm
360-
roleRef:
361-
apiGroup: rbac.authorization.k8s.io
362-
kind: ClusterRole
363-
name: 'lightrun-k8s-operator-proxy-role'
364-
subjects:
365-
- kind: ServiceAccount
366-
name: 'lightrun-k8s-operator-controller-manager'
367-
namespace: 'lightrun-operator'
368-
---
369326
# Source: lightrun-k8s-operator/templates/leader-election-rbac.yaml
370327
apiVersion: rbac.authorization.k8s.io/v1
371328
kind: Role
@@ -447,10 +404,10 @@ spec:
447404
app.kubernetes.io/name: lightrun-k8s-operator
448405
app.kubernetes.io/instance: release-name
449406
ports:
450-
- name: https
451-
port: 8443
407+
- name: http
408+
port: 8080
452409
protocol: TCP
453-
targetPort: 8443
410+
targetPort: 8080
454411
---
455412
# Source: lightrun-k8s-operator/templates/deployment.yaml
456413
apiVersion: apps/v1

0 commit comments

Comments
 (0)