diff options
author | Peter Hoeg <peter@hoeg.com> | 2017-04-13 19:31:43 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2017-04-13 19:31:43 +0800 |
commit | bf4be8f1dd29612a4e706589ce2bde9be9742ce9 (patch) | |
tree | 1d74f4923b6fa954c4eba9a672d3508bb0c1cb67 /nixos | |
parent | 048114eb4f79f3e125dadee106b454e3d72ccdfc (diff) |
k8s: convert int to string to avoid interpolation error
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/cluster/kubernetes.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/cluster/kubernetes.nix b/nixos/modules/services/cluster/kubernetes.nix index 9ccc7295019a..25eaf70850c1 100644 --- a/nixos/modules/services/cluster/kubernetes.nix +++ b/nixos/modules/services/cluster/kubernetes.nix @@ -45,7 +45,7 @@ let cniConfig = pkgs.buildEnv { name = "kubernetes-cni-config"; paths = imap (i: entry: - pkgs.writeTextDir "${10+i}-${entry.type}.conf" (builtins.toJSON entry) + pkgs.writeTextDir "${toString (10+i)}-${entry.type}.conf" (builtins.toJSON entry) ) cfg.kubelet.cni.config; }; |