Skip to content

Commit

Permalink
✨ feat(k8sgpt-sa.yaml): add new ServiceAccount for k8sgpt-operator
Browse files Browse the repository at this point in the history
The new ServiceAccount 'k8sgpt' is created to provide identity for processes that run in a Pod. This is crucial for the k8sgpt-operator to interact with Kubernetes APIs. The ServiceAccount is labeled with metadata to indicate its component, creator, and the part of the application it belongs to, which aids in better resource management and tracking.

Signed-off-by: MateSousa <[email protected]>
  • Loading branch information
MateSousa committed Nov 30, 2023
1 parent 89248c1 commit b7dd30c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chart/operator/templates/k8sgpt-sa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: "k8sgpt"
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: k8sgpt-operator
app.kubernetes.io/part-of: k8sgpt-operator
{{- include "chart.labels" . | nindent 4 }}

0 comments on commit b7dd30c

Please sign in to comment.