1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00

Add Kiali

This commit is contained in:
Antonio Gurgel 2023-11-24 12:44:01 -08:00
parent dbb65668ee
commit e48d34df84

View file

@ -0,0 +1,44 @@
{
charts,
lib,
pkgs,
...
}: let
# TODO: borrow more directly from lib/rake.nix.
ls = dir: with builtins; attrNames (readDir dir);
revision =
# Won't guarantee latest rev due to ASCIIbetical order,
# but will guarantee _a_ rev. The only time there's
# more than one is during upgrades anyway.
pkgs.lib.lists.last
(builtins.filter (x: x != "kiali") (ls ./..));
in {
builder = lib.builders.helmChart;
args = {
chart = charts.kiali.operator;
values = {
image.tag = "v1.65.0";
fullnameOverride = "kiali-operator";
};
values.cr = {
create = true;
namespace = "istio-system";
spec = {
auth.strategy = "anonymous";
deployment.accessible_namespaces = ["**"];
external_services = {
istio = {
config_map_name = "istio-${revision}";
istio_sidecar_injector_config_map_name = "istio-sidecar-injector-${revision}";
istiod_deployment_name = "istiod-${revision}";
};
prometheus.url = "http://kube-prometheus-stack-prometheus.monitoring:9090";
};
};
};
};
extraObjects = [(lib.eureka.resources.mkSvcHTTPRoute "kiali" "kiali" 20001)];
}