Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hypershift admin ClusterRole is intentionally privileged; suppress noisy RBAC policy checks.
KSV-0041
KSV-0045
KSV-0046
KSV-0049
KSV-0056
AVD-KSV-0041
AVD-KSV-0045
AVD-KSV-0046
AVD-KSV-0049
AVD-KSV-0056
16 changes: 16 additions & 0 deletions templates/rbac/hcp-sudo-crolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.rbac.create }}
{{- range .Values.rbac.sudoerGroups }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ lower . }}-sudoer-crb
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: sudoer
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: {{ . }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rbac:
name: hcp-admins-crb
users: []
groups: []
sudoerGroups: []

clusterGroup:
isHubCluster: true
Expand Down