mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 02:55:39 +00:00
kubernetes module: add support for common CA file
This commit is contained in:
parent
c96ca5f3bd
commit
c2622910ab
@ -49,7 +49,7 @@ let
|
||||
caFile = mkOption {
|
||||
description = "${prefix} certificate authrority file used to connect to kube-apiserver.";
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
default = cfg.caFile;
|
||||
};
|
||||
|
||||
certFile = mkOption {
|
||||
@ -256,13 +256,19 @@ in {
|
||||
|
||||
caFile = mkOption {
|
||||
description = "Etcd ca file.";
|
||||
default = null;
|
||||
default = cfg.caFile;
|
||||
type = types.nullOr types.path;
|
||||
};
|
||||
};
|
||||
|
||||
kubeconfig = mkKubeConfigOptions "Default kubeconfig";
|
||||
|
||||
caFile = mkOption {
|
||||
description = "Default kubernetes certificate authority";
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
};
|
||||
|
||||
dataDir = mkOption {
|
||||
description = "Kubernetes root directory for managing kubelet files.";
|
||||
default = "/var/lib/kubernetes";
|
||||
@ -335,7 +341,7 @@ in {
|
||||
|
||||
clientCaFile = mkOption {
|
||||
description = "Kubernetes apiserver CA file for client auth.";
|
||||
default = null;
|
||||
default = cfg.caFile;
|
||||
type = types.nullOr types.path;
|
||||
};
|
||||
|
||||
@ -427,7 +433,7 @@ in {
|
||||
|
||||
kubeletClientCaFile = mkOption {
|
||||
description = "Path to a cert file for connecting to kubelet.";
|
||||
default = null;
|
||||
default = cfg.caFile;
|
||||
type = types.nullOr types.path;
|
||||
};
|
||||
|
||||
@ -529,7 +535,7 @@ in {
|
||||
Kubernetes controller manager certificate authority file included in
|
||||
service account's token secret.
|
||||
'';
|
||||
default = null;
|
||||
default = cfg.caFile;
|
||||
type = types.nullOr types.path;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user