Slide 17
Slide 17 text
(without introducing more risk)
Gareth Rushgrove
Jsonnet functions
function(cfg)
local if_enabled(addon, manifest) = if cfg.phase3[addon] then manifest
local join(arr) = std.foldl(function(a, b) a + b, arr, {});
if_enabled("run_addons",
join([
if_enabled("kube_proxy", (import "kube-proxy/kube-proxy.jsonnet"
if_enabled("dashboard", (import "dashboard/dashboard.jsonnet")(c
if_enabled("heapster", (import "heapster/heapster.jsonnet")(cfg)
if_enabled("kube_dns", (import "kube-dns/kube-dns.jsonnet")(cfg)
]))