Skip to content

Commit 36059a8

Browse files
author
igor.grzankowski
committed
Remove rbac bindings
1 parent 3f5cd59 commit 36059a8

17 files changed

+33
-228
lines changed

.github/workflows/helm-test-workflow.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- develop
66
- main
7+
- bugfix/remove-rbac-bindings
78
- feature**
89
jobs:
910
build-operator-image:

config/debug/manager_auth_proxy_patch.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

config/default/kustomization-cluster.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ bases:
2727
#- ../prometheus
2828

2929
patchesStrategicMerge:
30-
# Protect the /metrics endpoint by putting it behind auth.
31-
# If you want your controller-manager to expose the /metrics
32-
# endpoint w/o any authn/z, please comment the following line.
33-
- manager_auth_proxy_patch.yaml
34-
3530
# Mount the controller config file for loading manager configurations
3631
# through a ComponentConfig type
3732
#- manager_config_patch.yaml

config/default/kustomization.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ bases:
2727
#- ../prometheus
2828

2929
patchesStrategicMerge:
30-
# Protect the /metrics endpoint by putting it behind auth.
31-
# If you want your controller-manager to expose the /metrics
32-
# endpoint w/o any authn/z, please comment the following line.
33-
- manager_auth_proxy_patch.yaml
34-
3530
# Mount the controller config file for loading manager configurations
3631
# through a ComponentConfig type
3732
#- manager_config_patch.yaml

config/default/manager_auth_proxy_patch.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

config/rbac/auth_proxy_role.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

config/rbac/auth_proxy_service.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

config/rbac/kustomization-cluster.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,3 @@ resources:
99
- role_binding.yaml
1010
- leader_election_role.yaml
1111
- leader_election_role_binding.yaml
12-
# Comment the following 4 lines if you want to disable
13-
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
14-
# which protects your /metrics endpoint.
15-
- auth_proxy_service.yaml
16-
- auth_proxy_role.yaml
17-
- auth_proxy_role_binding.yaml
18-
- auth_proxy_client_clusterrole.yaml

config/rbac/kustomization.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ resources:
99
- role_binding.yaml
1010
- leader_election_role.yaml
1111
- leader_election_role_binding.yaml
12-
# Comment the following 4 lines if you want to disable
13-
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
14-
# which protects your /metrics endpoint.
15-
- auth_proxy_service.yaml
16-
- auth_proxy_role.yaml
17-
- auth_proxy_role_binding.yaml
18-
- auth_proxy_client_clusterrole.yaml
12+
- metrics_auth_proxy_role.yaml
13+
- metrics_auth_proxy_role_binding.yaml
14+
- metrics_reader_role.yaml
15+
- metrics_reader_role_binding.yaml
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: metrics-auth-proxy-role
5+
rules:
6+
- apiGroups: ["authentication.k8s.io"]
7+
resources: ["tokenreviews"]
8+
verbs: ["create"]
9+
- apiGroups: ["authorization.k8s.io"]
10+
resources: ["subjectaccessreviews"]
11+
verbs: ["create"]

0 commit comments

Comments
 (0)