git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/kubernetes: dashboard 1.8.3 -> 1.10.1

- add option to specify extra cmdline arguments to the dashboard

commitf738618637d6d98fb013517a9429980214416b2d authorJohan Thomsen <jth@dbc.dk> dateMon 18 Feb 2019, 15:08 (8 years ago) parent5af74e1
1 file changed+11−4
nixos/modules/services/cluster/kubernetes/dashboard.nix+11−4
nixos/modules/services/cluster/kubernetes/dashboard.nix+11−4
@@ -8,6 +8,13 @@ in {
88 options.services.kubernetes.addons.dashboard = {
99 enable = mkEnableOption "kubernetes dashboard addon";
1010
11+ extraArgs = mkOption {
12+ description = "Extra arguments to append to the dashboard cmdline";
13+ type = types.listOf types.str;
14+ default = [];
15+ example = ["--enable-skip-login"];
16+ };
17+
1118 rbac = mkOption {
1219 description = "Role-based access control (RBAC) options";
1320 default = {};
@@ -31,7 +38,7 @@ in {
3138 version = mkOption {
3239 description = "Which version of the kubernetes dashboard to deploy";
3340 type = types.str;
34− default = "v1.8.3";
41+ default = "v1.10.1";
3542 };
3643
3744 image = mkOption {
@@ -39,9 +46,9 @@ in {
3946 type = types.attrs;
4047 default = {
4148 imageName = "k8s.gcr.io/kubernetes-dashboard-amd64";
42− imageDigest = "sha256:dc4026c1b595435ef5527ca598e1e9c4343076926d7d62b365c44831395adbd0";
49+ imageDigest = "sha256:0ae6b69432e78069c5ce2bcde0fe409c5c4d6f0f4d9cd50a17974fea38898747";
4350 finalImageTag = cfg.version;
44− sha256 = "18ajcg0q1vignfjk2sm4xj4wzphfz8wah69ps8dklqfvv0164mc8";
51+ sha256 = "01xrr4pwgr2hcjrjsi3d14ifpzdfbxzqpzxbk2fkbjb9zkv38zxy";
4552 };
4653 };
4754 };
@@ -99,7 +106,7 @@ in {
99106 memory = "100Mi";
100107 };
101108 };
102− args = ["--auto-generate-certificates"];
109+ args = ["--auto-generate-certificates"] ++ cfg.extraArgs;
103110 volumeMounts = [{
104111 name = "tmp-volume";
105112 mountPath = "/tmp";