(name string, path string, hostPathType *corev1.HostPathType)
| 89 | } |
| 90 | |
| 91 | func (d Daemonset) WithHostPathVolume(name string, path string, hostPathType *corev1.HostPathType) Daemonset { |
| 92 | volume := corev1.Volume{ |
| 93 | Name: name, |
| 94 | VolumeSource: corev1.VolumeSource{ |
| 95 | HostPath: &corev1.HostPathVolumeSource{ |
| 96 | Path: path, |
| 97 | Type: hostPathType, |
| 98 | }, |
| 99 | }, |
| 100 | } |
| 101 | d.Spec.Template.Spec.Volumes = append(d.Spec.Template.Spec.Volumes, volume) |
| 102 | return d |
| 103 | } |
| 104 | |
| 105 | func (d Daemonset) WithConfigMapVolume(name string, configMapName string, defaultMode int32) Daemonset { |
| 106 | volume := corev1.Volume{ |
no outgoing calls
no test coverage detected