nixos/rancher: add nodeExternalIP option to match nodeIP option (#505398)

This commit is contained in:
rorosen 2026-04-06 21:17:43 +00:00 committed by GitHub
commit c0d2e7ccb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -518,6 +518,12 @@ let
default = null;
};
nodeExternalIP = lib.mkOption {
type = lib.types.nullOr lib.types.str;
description = "IPv4/IPv6 external addresses to advertise for node.";
default = null;
};
selinux = lib.mkOption {
type = lib.types.bool;
description = "Enable SELinux in containerd.";
@ -936,6 +942,7 @@ let
++ (lib.optionals (cfg.nodeLabel != [ ]) (map (l: "--node-label=${l}") cfg.nodeLabel))
++ (lib.optionals (cfg.nodeTaint != [ ]) (map (t: "--node-taint=${t}") cfg.nodeTaint))
++ (lib.optional (cfg.nodeIP != null) "--node-ip=${cfg.nodeIP}")
++ (lib.optional (cfg.nodeExternalIP != null) "--node-external-ip=${cfg.nodeExternalIP}")
++ (lib.optional cfg.selinux "--selinux")
++ (lib.optional (kubeletParams != { }) "--kubelet-arg=config=${kubeletConfig}")
++ (lib.optional (cfg.extraKubeProxyConfig != { }) "--kube-proxy-arg=config=${kubeProxyConfig}")