Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Fix bundle role/rolebinding naming conflict (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfox1111 committed Jun 16, 2023
1 parent b66077e commit c97a788
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/spire/charts/spire-server/templates/roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "spire-server.fullname" . }}-bundle
name: {{ include "spire-lib.bundle-configmap" . }}
namespace: {{ .Values.notifier.k8sbundle.namespace | default $namespace }}
rules:
- apiGroups: [""]
Expand Down Expand Up @@ -50,15 +50,15 @@ roleRef:
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "spire-server.fullname" . }}-bundle
name: {{ include "spire-lib.bundle-configmap" . }}
namespace: {{ .Values.notifier.k8sbundle.namespace | default $namespace }}
subjects:
- kind: ServiceAccount
name: {{ include "spire-server.serviceAccountName" . }}
namespace: {{ $namespace }}
roleRef:
kind: Role
name: {{ include "spire-server.fullname" . }}-bundle
name: {{ include "spire-lib.bundle-configmap" . }}
apiGroup: rbac.authorization.k8s.io

{{- if and .Values.nodeAttestor.k8sPsat.enabled }}
Expand Down

0 comments on commit c97a788

Please sign in to comment.