mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-03 13:36:12 +01:00
03b54bd52b
Signed-off-by: magic_rb <magic_rb@redalder.org>
75 lines
1.7 KiB
Nix
75 lines
1.7 KiB
Nix
{
|
|
apiVersion = "rbac.authorization.k8s.io/v1";
|
|
kind = "Role";
|
|
metadata = {
|
|
labels = {
|
|
"app.kubernetes.io/instance" = "metallb";
|
|
"app.kubernetes.io/managed-by" = "Helm";
|
|
"app.kubernetes.io/name" = "metallb";
|
|
"app.kubernetes.io/version" = "v0.14.3";
|
|
"helm.sh/chart" = "metallb-0.14.3";
|
|
};
|
|
name = "metallb-controller";
|
|
namespace = "metallb-system";
|
|
};
|
|
rules = [
|
|
{
|
|
apiGroups = [""];
|
|
resources = ["secrets"];
|
|
verbs = ["create" "get" "list" "watch"];
|
|
}
|
|
{
|
|
apiGroups = [""];
|
|
resourceNames = ["metallb-memberlist"];
|
|
resources = ["secrets"];
|
|
verbs = ["list"];
|
|
}
|
|
{
|
|
apiGroups = ["apps"];
|
|
resourceNames = ["metallb-controller"];
|
|
resources = ["deployments"];
|
|
verbs = ["get"];
|
|
}
|
|
{
|
|
apiGroups = [""];
|
|
resources = ["secrets"];
|
|
verbs = ["create" "delete" "get" "list" "patch" "update" "watch"];
|
|
}
|
|
{
|
|
apiGroups = ["metallb.io"];
|
|
resources = ["addresspools"];
|
|
verbs = ["get" "list" "watch"];
|
|
}
|
|
{
|
|
apiGroups = ["metallb.io"];
|
|
resources = ["ipaddresspools"];
|
|
verbs = ["get" "list" "watch"];
|
|
}
|
|
{
|
|
apiGroups = ["metallb.io"];
|
|
resources = ["bgppeers"];
|
|
verbs = ["get" "list"];
|
|
}
|
|
{
|
|
apiGroups = ["metallb.io"];
|
|
resources = ["bgpadvertisements"];
|
|
verbs = ["get" "list"];
|
|
}
|
|
{
|
|
apiGroups = ["metallb.io"];
|
|
resources = ["l2advertisements"];
|
|
verbs = ["get" "list"];
|
|
}
|
|
{
|
|
apiGroups = ["metallb.io"];
|
|
resources = ["communities"];
|
|
verbs = ["get" "list" "watch"];
|
|
}
|
|
{
|
|
apiGroups = ["metallb.io"];
|
|
resources = ["bfdprofiles"];
|
|
verbs = ["get" "list" "watch"];
|
|
}
|
|
];
|
|
}
|