We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba830b6 commit 1b2a96aCopy full SHA for 1b2a96a
1 file changed
kubenix/rbac.nix
@@ -9,6 +9,33 @@ let
9
in
10
{
11
config = lib.mkIf cfg.enable {
12
+ kubernetes.resources.none = {
13
+ ClusterRole.nix-csi = mkNCSI {
14
+ rules = [
15
+ {
16
+ apiGroups = [ "" ];
17
+ resources = [ "pods" ];
18
+ verbs = [
19
+ "get"
20
+ "list"
21
+ ];
22
+ }
23
24
+ };
25
+ ClusterRoleBinding.nix-csi = mkNCSI {
26
+ subjects = lib.mkNamedList {
27
+ nix-csi = {
28
+ kind = "ServiceAccount";
29
+ namespace = cfg.namespace;
30
31
32
+ roleRef = {
33
+ kind = "ClusterRole";
34
+ name = "nix-csi";
35
+ apiGroup = "rbac.authorization.k8s.io";
36
37
38
39
kubernetes.resources.${cfg.namespace} = {
40
ServiceAccount.nix-csi = mkNCSI { };
41
0 commit comments