Skip to content

Commit c94174c

Browse files
committed
Provide a writable location for flexvolume plugins
Fix tests and add a note about how to update testdata
1 parent f9ca131 commit c94174c

File tree

19 files changed

+73
-0
lines changed

19 files changed

+73
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Updating test data after making changes to original
2+
3+
test data templates can be updated via:
4+
5+
```
6+
go test ./pkg/controller/template/... -u
7+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
contents:
2+
source: data:,
3+
verification: {}
4+
filesystem: root
5+
mode: 493
6+
path: /etc/kubernetes/kubelet-plugins/volume/exec/.dummy
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
contents:
2+
source: data:,
3+
verification: {}
4+
filesystem: root
5+
mode: 493
6+
path: /etc/kubernetes/kubelet-plugins/volume/exec/.dummy
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
contents:
2+
source: data:,
3+
verification: {}
4+
filesystem: root
5+
mode: 493
6+
path: /etc/kubernetes/kubelet-plugins/volume/exec/.dummy
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
contents:
2+
source: data:,
3+
verification: {}
4+
filesystem: root
5+
mode: 493
6+
path: /etc/kubernetes/kubelet-plugins/volume/exec/.dummy

pkg/controller/template/test_data/templates/master/01-master-kubelet/aws/units/kubelet.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ contents: |
2222
--minimum-container-ttl-duration=6m0s \
2323
--client-ca-file=/etc/kubernetes/ca.crt \
2424
--cloud-provider=aws \
25+
--volume-plugin-dir=/etc/kubernetes/kubelet-plugins/volume/exec \
2526
\
2627
--anonymous-auth=false \
2728
--register-with-taints=node-role.kubernetes.io/master=:NoSchedule \

pkg/controller/template/test_data/templates/master/01-master-kubelet/libvirt/units/kubelet.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ contents: |
2222
--minimum-container-ttl-duration=6m0s \
2323
--client-ca-file=/etc/kubernetes/ca.crt \
2424
--cloud-provider= \
25+
--volume-plugin-dir=/etc/kubernetes/kubelet-plugins/volume/exec \
2526
\
2627
--anonymous-auth=false \
2728
--register-with-taints=node-role.kubernetes.io/master=:NoSchedule \

pkg/controller/template/test_data/templates/master/01-master-kubelet/none/units/kubelet.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ contents: |
2222
--minimum-container-ttl-duration=6m0s \
2323
--client-ca-file=/etc/kubernetes/ca.crt \
2424
--cloud-provider= \
25+
--volume-plugin-dir=/etc/kubernetes/kubelet-plugins/volume/exec \
2526
\
2627
--anonymous-auth=false \
2728
--register-with-taints=node-role.kubernetes.io/master=:NoSchedule \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
contents:
2+
source: data:,
3+
verification: {}
4+
filesystem: root
5+
mode: 493
6+
path: /etc/kubernetes/kubelet-plugins/volume/exec/.dummy
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
contents:
2+
source: data:,
3+
verification: {}
4+
filesystem: root
5+
mode: 493
6+
path: /etc/kubernetes/kubelet-plugins/volume/exec/.dummy

0 commit comments

Comments
 (0)