Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve rbac manifests #18

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: necoperf-daemon-role
name: necoperf-cli-service-discovery
namespace: necoperf
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get","list"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: necoperf-cli-role
name: necoperf-cli
namespace: default
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get","list"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
20 changes: 10 additions & 10 deletions config/rbac/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: necoperf-cli-rolebinding
name: necoperf-cli-binding
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: necoperf-cli-role
name: necoperf-cli
subjects:
- kind: ServiceAccount
name: necoperf-sa
namespace: default
- kind: ServiceAccount
name: necoperf-cli
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: necoperf-daemon-rolebinding
name: necoperf-cli-service-discovery-binding
namespace: necoperf
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: necoperf-daemon-role
name: necoperf-cli-service-discovery
subjects:
- kind: ServiceAccount
name: necoperf-sa
namespace: default
- kind: ServiceAccount
name: necoperf-cli
namespace: default
2 changes: 1 addition & 1 deletion config/rbac/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: necoperf-sa
name: necoperf-cli
namespace: default
10 changes: 5 additions & 5 deletions e2e/manifests/necoperf-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ metadata:
namespace: default
spec:
containers:
- name: necoperf-client
image: necoperf-cli:dev
imagePullPolicy: IfNotPresent
command: ["pause"]
- name: necoperf-client
image: necoperf-cli:dev
imagePullPolicy: IfNotPresent
command: ["pause"]
securityContext:
runAsUser: 10000
runAsGroup: 10000
serviceAccountName: necoperf-sa
serviceAccountName: necoperf-cli