mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/kubernetes: add extraConfig to kubelet config
Every now and then, kubernetes adds new configuration parameters to the kubelet configuration. Since this is defined using a nix attrset which is then converted to json/yaml, it would be nice to have an escape hatch similar to the extraOpts one that exists for additional CLI arguments. The typical use case would be to configure new settings before they are officially supported in the nixos module.
This commit is contained in:
parent
4b52ee1214
commit
5a03aa5a45
2 changed files with 9 additions and 0 deletions
|
@ -66,6 +66,7 @@ let
|
|||
// lib.optionalAttrs (cfg.clusterDomain != "") { clusterDomain = cfg.clusterDomain; }
|
||||
// lib.optionalAttrs (cfg.clusterDns != "") { clusterDNS = [ cfg.clusterDns ] ; }
|
||||
// lib.optionalAttrs (cfg.featureGates != {}) { featureGates = cfg.featureGates; }
|
||||
// lib.optionalAttrs (cfg.extraConfig != {}) cfg.extraConfig
|
||||
));
|
||||
|
||||
manifestPath = "kubernetes/manifests";
|
||||
|
@ -184,6 +185,12 @@ in
|
|||
type = separatedString " ";
|
||||
};
|
||||
|
||||
extraConfig = mkOption {
|
||||
description = "Kubernetes kubelet extra configuration file entries.";
|
||||
default = {};
|
||||
type = attrsOf attrs;
|
||||
};
|
||||
|
||||
featureGates = mkOption {
|
||||
description = "Attribute set of feature gate";
|
||||
default = top.featureGates;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue