feat(k8s): optimizate, do not double evaluate aliased options

This commit is contained in:
Jaka Hudoklin 2019-03-13 10:15:07 +01:00
parent 0910b9b42e
commit 2ad7db5df0
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95
9 changed files with 9 additions and 685 deletions

View file

@ -365,9 +365,7 @@ in {
\"${resource.resource}\" = ${genResourceOptions resource};
") latestResourcesByKind)}};
config = {${concatStrings (mapAttrsToList (name: resource: "
\"${resource.group}\".\"${resource.version}\".\"${resource.kind}\" = config.\"${resource.resource}\";
") latestResourcesByKind)}} // {
config = {
inherit definitions;
resources = [${concatStrings (mapAttrsToList (name: resource: "{