|
57 | 57 | 'apiserver_crt' => 'foo', |
58 | 58 | 'apiserver_key' => 'foo', |
59 | 59 | 'apiserver_extra_arguments' => ['--some-extra-arg=foo'], |
| 60 | + 'apiserver_extra_volumes' => [{ |
| 61 | + 'name' => 'customvolume', |
| 62 | + 'hostPath' => '/path/on/host', |
| 63 | + 'mountPath' => '/path/in/container', |
| 64 | + 'readOnly' => true, |
| 65 | + }], |
60 | 66 | 'kubernetes_fqdn' => 'kube.foo.dev', |
61 | 67 | 'ca_crt' => 'foo', |
62 | 68 | 'ca_key' => 'foo', |
|
109 | 115 | should contain_file('/etc/kubernetes/manifests/kube-apiserver.yaml') |
110 | 116 | .with_content(/^\s*- --experimental-bootstrap-token-auth=true$/) # with kubernetes_version = 1.7.x |
111 | 117 | .with_content(/^\s*- --some-extra-arg=foo$/) |
| 118 | + .with_content(/^\s*- mountPath: \/path\/in\/container\n\s*name: customvolume\n\s*readOnly: true$/) |
| 119 | + .with_content(/^\s*- hostPath:\n\s*path: \/path\/on\/host\n\s*name: customvolume$/) |
112 | 120 | } |
113 | 121 | end |
114 | 122 |
|
|
156 | 164 | 'apiserver_crt' => 'foo', |
157 | 165 | 'apiserver_key' => 'foo', |
158 | 166 | 'apiserver_extra_arguments' => ['--some-extra-arg=foo'], |
| 167 | + 'apiserver_extra_volumes' => [{ |
| 168 | + 'name' => 'customvolume', |
| 169 | + 'hostPath' => '/path/on/host', |
| 170 | + 'mountPath' => '/path/in/container', |
| 171 | + 'readOnly' => true, |
| 172 | + }], |
159 | 173 | 'kubernetes_fqdn' => 'kube.foo.dev', |
160 | 174 | 'ca_crt' => 'foo', |
161 | 175 | 'ca_key' => 'foo', |
|
0 commit comments