Skip to content

Commit

Permalink
Add ns in LB RBAC
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed May 30, 2024
1 parent 3802c51 commit e0c3356
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion IM/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: IM
description: Deploy a HA Infrastructure Manager
version: 1.6.2
version: 1.6.3
type: application
home: https://www.grycap.upv.es/im
sources:
Expand Down
22 changes: 11 additions & 11 deletions IM/templates/im_lb_rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -63,7 +63,7 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -99,33 +99,33 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
subjects:
- kind: ServiceAccount
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
namespace: {{ .Release.Namespace }}
- apiGroup: rbac.authorization.k8s.io
kind: User
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
subjects:
- kind: ServiceAccount
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
namespace: {{ .Release.Namespace }}
- apiGroup: rbac.authorization.k8s.io
kind: User
name: im-load-balancer
name: {{ .Release.Namespace }}-im-load-balancer
{{ end }}

0 comments on commit e0c3356

Please sign in to comment.