dotfiles/terranix/main/kubernetes/generated/metallb/default.ClusterRole.metallb-controller.nix
magic_rb 03b54bd52b
Use helm2nix2terraform to create nix files from helm charts
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-04-07 13:24:08 +02:00

59 lines
1.8 KiB
Nix

{
apiVersion = "rbac.authorization.k8s.io/v1";
kind = "ClusterRole";
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";
};
rules = [
{
apiGroups = [""];
resources = ["services" "namespaces"];
verbs = ["get" "list" "watch"];
}
{
apiGroups = [""];
resources = ["nodes"];
verbs = ["list"];
}
{
apiGroups = [""];
resources = ["services/status"];
verbs = ["update"];
}
{
apiGroups = [""];
resources = ["events"];
verbs = ["create" "patch"];
}
{
apiGroups = ["admissionregistration.k8s.io"];
resourceNames = ["metallb-webhook-configuration"];
resources = ["validatingwebhookconfigurations" "mutatingwebhookconfigurations"];
verbs = ["create" "delete" "get" "list" "patch" "update" "watch"];
}
{
apiGroups = ["admissionregistration.k8s.io"];
resources = ["validatingwebhookconfigurations" "mutatingwebhookconfigurations"];
verbs = ["list" "watch"];
}
{
apiGroups = ["apiextensions.k8s.io"];
resourceNames = ["addresspools.metallb.io" "bfdprofiles.metallb.io" "bgpadvertisements.metallb.io" "bgppeers.metallb.io" "ipaddresspools.metallb.io" "l2advertisements.metallb.io" "communities.metallb.io"];
resources = ["customresourcedefinitions"];
verbs = ["create" "delete" "get" "list" "patch" "update" "watch"];
}
{
apiGroups = ["apiextensions.k8s.io"];
resources = ["customresourcedefinitions"];
verbs = ["list" "watch"];
}
];
}