Skip to content

Commit

Permalink
✨ feat(k8sgpt-cluster-role-binding.yaml): add new Kubernetes ClusterR…
Browse files Browse the repository at this point in the history
…oleBinding configuration

The new ClusterRoleBinding configuration file is added to manage permissions for the service account "k8sgpt". This change allows the service account to have the necessary permissions to perform its tasks within the specified namespace, improving the security and management of the Kubernetes cluster.
  • Loading branch information
MateSousa committed Nov 30, 2023
1 parent 83a9cd8 commit bea17bf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions chart/operator/templates/k8sgpt-cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "chart.fullname" . }}-k8sgpt
labels:
{{- include "chart.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "chart.fullname" . }}-k8sgpt
subjects:
- kind: ServiceAccount
name: "k8sgpt"
namespace: {{ .Release.Namespace }}

0 comments on commit bea17bf

Please sign in to comment.