@startuml
!includeurl https://raw.githubusercontent.com/michiel/plantuml-kubernetes-sprites/master/resource/k8s-sprites-unlabeled-25pct.iuml

!define CLOUDOGUURL https://raw.githubusercontent.com/cloudogu/plantuml-cloudogu-sprites/master
!includeurl CLOUDOGUURL/dogus/cloudogu.puml  
!includeurl CLOUDOGUURL/tools/k8s.puml

!define CLOUDOGU_BLUE #23a3dd

' Remove this line for transparent background
skinparam backgroundColor #FFFFF0

title <color:blue><$k8s></color> **Role Based Access Control (RBAC) Resources** <color:blue><$k8s></color>\n


rectangle "<$psp>\nPermission" as psp
rectangle "<$role>\n(Cluster-)Role" as role
rectangle "<$rb>\n(Cluster-)RoleBinding" as rb
rectangle "<$sa>\nSubject" as sa
  
psp <- role: grant
role <- rb: bind
rb -> sa: bind

legend
<color:#23a3dd><$cloudogu></color> [[https://cloudogu.com cloudogu.com]]
end legend


skinparam arrow {
    Color CLOUDOGU_BLUE
}

skinparam rectangle {
    BackgroundColor CLOUDOGU_BLUE
    BorderColor #16688d
    FontColor WHITE
}

skinparam legend {
    BackgroundColor WHITE
    BorderColor #16688d
}

@enduml