Skip to content

Commit

Permalink
fix: remove roleb hardcoded namespace and create dedicated sa for the…
Browse files Browse the repository at this point in the history
… cleanup
  • Loading branch information
Tamir David authored and Tamir David committed Jul 17, 2024
1 parent 99b98af commit 80f1c74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/odigos/templates/cleanup/cleanup-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
backoffLimit: 0
template:
spec:
serviceAccountName: cleanup-sa
containers:
- name: cleanup
{{- if .Values.imagePrefix }}
Expand Down
4 changes: 2 additions & 2 deletions charts/odigos/templates/cleanup/cleanup-rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: cleanup-clusterrolebinding
subjects:
- kind: ServiceAccount
name: default
namespace: odigos-system
name: cleanup-sa
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: cleanup-clusterrole
Expand Down
5 changes: 5 additions & 0 deletions charts/odigos/templates/cleanup/service-account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: cleanup-sa
namespace: {{ .Release.Namespace }}

0 comments on commit 80f1c74

Please sign in to comment.