apply necessary transforms if a custom host root path is configured
(obj *appsv1.DaemonSet, hostRoot string)
| 835 | |
| 836 | // apply necessary transforms if a custom host root path is configured |
| 837 | func transformForHostRoot(obj *appsv1.DaemonSet, hostRoot string) { |
| 838 | if hostRoot == "" || hostRoot == "/" { |
| 839 | return |
| 840 | } |
| 841 | |
| 842 | transformHostRootVolume(obj, hostRoot) |
| 843 | transformHostDevCharVolume(obj, hostRoot) |
| 844 | } |
| 845 | |
| 846 | func transformHostRootVolume(obj *appsv1.DaemonSet, hostRoot string) { |
| 847 | containsHostRootVolume := false |